-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Peter Zhu <[email protected]>
- Loading branch information
1 parent
baff2e2
commit 22c5b08
Showing
8 changed files
with
12 additions
and
143 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Empty file.
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 |
---|---|---|
|
@@ -34,17 +34,20 @@ jobs: | |
# opensearch-trigger-bot installation ID | ||
installation_id: 22958780 | ||
|
||
- name: Backport | ||
uses: VachaShah/[email protected] | ||
with: | ||
github_token: ${{ steps.github_app_token.outputs.token }} | ||
head_template: backport/backport-<%= number %>-to-<%= base %> | ||
# - name: Backport | ||
# uses: VachaShah/[email protected] | ||
# with: | ||
# github_token: ${{ steps.github_app_token.outputs.token }} | ||
# head_template: backport/backport-<%= number %>-to-<%= base %> | ||
|
||
- name: Label new backport PR with backport-automerge label | ||
- name: Label new backport PR with backport-automerge label and approve | ||
run: | | ||
PR_REPO="opensearch-project/documentation-website" | ||
PR_BRANCH=backport/backport-${{ github.event.pull_request.number }}-to-`echo ${{ github.event.label.name }} | cut -d ' ' -f2` | ||
PR_NUMBER=`gh pr list -R opensearch-project/documentation-website --json "number,headRefName" --state open | jq -r ".[] | select(.headRefName == \"$PR_BRANCH\") | .number"` | ||
PR_NUMBER=`gh pr list -R $PR_REPO --json "number,headRefName" --state open | jq -r ".[] | select(.headRefName == \"$PR_BRANCH\") | .number"` | ||
echo "Update Backport PR '#$PR_NUMBER' on branch '$PR_BRANCH' with 'backport-automerge' label" | ||
gh issue edit -R opensearch-project/documentation-website $PR_NUMBER --add-label backport-automerge | ||
gh issue edit -R $PR_REPO $PR_NUMBER --add-label backport-automerge | ||
echo "Auto approve $PR_REPO PR #$PR_NUMBE with opensearch-trigger-bot" | ||
gh pr review -R $PR_REPO $PR_NUMBER --approve | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_TOKEN: ${{ steps.github_app_token.outputs.token }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.