Skip to content

Commit

Permalink
Extends GH token permissions and uses squash merge
Browse files Browse the repository at this point in the history
  • Loading branch information
saltiyazan authored Mar 12, 2024
1 parent 5b7cd39 commit e567ee5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/dependabot_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

permissions:
pull-requests: write
contents: write

jobs:
auto-merge:
Expand All @@ -19,7 +20,7 @@ jobs:
# This step will allow Github to auto-merge the PR if branch protection rules are satisfied.
# Branch protection rules should require status checks to pass before merging including all required workflows.
- name: Enable auto-merge
run: gh pr merge --auto --merge "$PR_URL"
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit e567ee5

Please sign in to comment.