Skip to content

Commit

Permalink
Add more
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Apr 3, 2024
1 parent baff2e2 commit 22c5b08
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 143 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/add-untriaged.yml

This file was deleted.

Empty file added .github/workflows/automerge.yml
Empty file.
21 changes: 12 additions & 9 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
22 changes: 0 additions & 22 deletions .github/workflows/delete_merged_branch.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/encoding-check.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/jekyll-build.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/link-checker.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/vale.yml

This file was deleted.

0 comments on commit 22c5b08

Please sign in to comment.