Skip to content

Commit

Permalink
ci: use gh cli apis
Browse files Browse the repository at this point in the history
  • Loading branch information
maliroteh-sf committed Jan 8, 2025
1 parent 42d9d29 commit 39b9cae
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@ jobs:
}
- name: Auto-Merge PR
uses: actions/github-script@v6
with:
script: |
const { pull_request } = context.payload;
await github.rest.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pull_request.number,
merge_method: "squash", // other options are "merge" or "rebase"
});
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}

0 comments on commit 39b9cae

Please sign in to comment.