Skip to content

Commit 98467a7

Browse files
authored
dependabot auto merge (#357)
1 parent 8405cba commit 98467a7

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Describe the use case and detail of the change. If this PR addresses an issue on
44
### Checklist
55
Before creating a PR, run through this checklist and mark each as complete.
66

7-
- [ ] I have read the [CONTRIBUTING](https://github.com/nginxinc/nginx-ingress-operator/blob/master/CONTRIBUTING.md) doc
7+
- [ ] I have read the [CONTRIBUTING](https://github.com/nginxinc/nginx-ingress-operator/blob/main/CONTRIBUTING.md) doc
88
- [ ] I have added tests that prove my fix is effective or that my feature works
99
- [ ] I have checked that all unit tests pass after adding my changes
1010
- [ ] I have updated necessary documentation
11-
- [ ] I have rebased my branch onto master
12-
- [ ] I will ensure my PR is targeting the master branch and pulling from my branch from my own fork
11+
- [ ] I have rebased my branch onto main
12+
- [ ] I will ensure my PR is targeting the main branch and pulling from my branch from my own fork
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Dependabot auto-merge
2+
on: pull_request_target
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
dependabot:
9+
runs-on: ubuntu-22.04
10+
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
11+
permissions:
12+
pull-requests: write
13+
contents: write
14+
steps:
15+
- name: Dependabot metadata
16+
id: dependabot-metadata
17+
uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0
18+
19+
- name: Enable auto-merge for Dependabot PRs
20+
run: gh pr merge --auto --squash "$PR_URL"
21+
env:
22+
PR_URL: ${{ github.event.pull_request.html_url }}
23+
GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}

0 commit comments

Comments
 (0)