-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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,28 @@ | ||
name: Sync PRs between Repos | ||
|
||
on: | ||
pull_request: | ||
# types: [closed] | ||
|
||
jobs: | ||
sync_pr: | ||
# if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Create PR in Repo Subnet-EVM | ||
run: | | ||
# Get the body of the original PR | ||
original_body=$(gh pr view ${GITHUB_REPOSITORY} --json body --jq '.body') | ||
gh pr create \ | ||
--repo ava-labs/subnet-evm \ | ||
--title "${{ github.event.pull_request.title }}" \ | ||
--body "This PR was automatically created to sync changes from Coreth.\n\nOriginal PR: ${{ github.event.pull_request.html_url }}\n\n---\n\n${original_body}" \ | ||
--base "${{ github.event.pull_request.base.ref }}" \ | ||
--head "${{ github.event.pull_request.head.ref }}" \ | ||
--assignee "${{ github.event.pull_request.user.login }}" \ | ||
--draft=false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |