forked from axieinfinity/ronin-dpos-contracts
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from axieinfinity/setup
feat: separate the Bridge smart contracts from DPOS smart contracts
- Loading branch information
Showing
521 changed files
with
1,690 additions
and
34,684 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
### Description | ||
PR to merge from [{{ .fromBranch }}](/axieinfinity/rns-contracts/tree/{{ .fromBranch }}) to [{{ .toBranch }}](/axieinfinity/rns-contracts/tree/{{ .toBranch }}). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Create Pull Request From Implement To Feature | ||
on: | ||
push: | ||
branches: | ||
- 'implement-feature/**' | ||
- 'implement-feature/**/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
HEAD_BRANCH: ${{ github.head_ref || github.ref_name }} | ||
|
||
jobs: | ||
createPullRequest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "FEATURE_NAME=$(echo ${HEAD_BRANCH} | cut -d'/' -f2)" >> $GITHUB_ENV | ||
echo "FEATURE_BRANCH=feature/$(echo ${HEAD_BRANCH} | cut -d'/' -f2)" >> $GITHUB_ENV | ||
echo "IMPLEMENT_NAME=$(echo ${HEAD_BRANCH} | cut -d'/' -f3)" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{env.FEATURE_BRANCH}} | ||
|
||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: ${{ env.FEATURE_BRANCH }} | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
branch: ${{ env.HEAD_BRANCH }} | ||
base: ${{env.FEATURE_BRANCH}} | ||
labels: automated PR | ||
team-reviewers: axieinfinity/smart-contract | ||
title: 'feat(${{env.FEATURE_NAME}}): implement `${{env.IMPLEMENT_NAME}}`' | ||
body: ${{ steps.template.outputs.result }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,245 @@ | ||
name: Create Pull Request From Release to Feature | ||
on: | ||
push: | ||
branches: | ||
- 'release/*' | ||
- 'release*/*' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
HEAD_BRANCH: ${{ github.head_ref || github.ref_name }} | ||
|
||
jobs: | ||
mergeRelease2FeatureRnsUnified: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/rns-unified" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/rns-unified | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/rns-unified | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
team-reviewers: axieinfinity/smart-contract | ||
delete-branch: true | ||
title: 'chore(rns-unified): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeatureController: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/controller" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/controller | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/controller | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
team-reviewers: axieinfinity/smart-contract | ||
delete-branch: true | ||
title: 'chore(controller): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeatureDomainPrice: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/domain-price" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/domain-price | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/domain-price | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
team-reviewers: axieinfinity/smart-contract | ||
delete-branch: true | ||
title: 'chore(domain-price): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeatureAuction: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/auction" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/auction | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/auction | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
team-reviewers: axieinfinity/smart-contract | ||
delete-branch: true | ||
title: 'chore(auction): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeaturePublicResolver: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/public-resolver" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/public-resolver | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/public-resolver | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
team-reviewers: axieinfinity/smart-contract | ||
delete-branch: true | ||
title: 'chore(public-resolver): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeatureCI: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/ci" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/ci | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/ci | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
team-reviewers: axieinfinity/smart-contract | ||
delete-branch: true | ||
title: 'chore(ci): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} | ||
|
||
mergeRelease2FeatureReverseRegistrar: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env | ||
run: | | ||
echo "PR_BRANCH=merge/${HEAD_BRANCH}-feature/reverse-registrar" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: feature/reverse-registrar | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin ${HEAD_BRANCH}:${HEAD_BRANCH} | ||
git reset --hard ${HEAD_BRANCH} | ||
- name: Render template | ||
id: template | ||
uses: chuhlomin/[email protected] | ||
with: | ||
template: .github/template/create-pull-request.md | ||
vars: | | ||
fromBranch: ${{env.HEAD_BRANCH}} | ||
toBranch: feature/reverse-registrar | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
labels: automated PR | ||
team-reviewers: axieinfinity/smart-contract | ||
delete-branch: true | ||
title: 'chore(reverse-registrar): merge from `${{env.HEAD_BRANCH}}`' | ||
body: ${{ steps.template.outputs.result }} | ||
branch: ${{env.PR_BRANCH}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.