Skip to content

Commit 9f06647

Browse files
authored
Actions: Create issues from dependabot pull requests
Create create-dependabot-issues.yml
1 parent e37b4ac commit 9f06647

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Create Dependabot Issues # from pull requests
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
create-issue:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
13+
steps:
14+
- name: Create issue
15+
uses: actions-cool/issues-helper@v3
16+
with:
17+
actions: 'create-issue'
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
title: ${{ github.event.pull_request.title }}
20+
body: |
21+
Dependabot opened a pull request to update a dependency. Please review it: ${{ github.event.pull_request.html_url }}
22+
23+
- [ ] View the pull request linked in this issue. Check the commits, workflow checks, and files changed.
24+
- [ ] Ensure the pull request passes tests. To do this, clone the dependabot branch and run it locally on your computer. Run unit tests, integration tests, and check happy paths.
25+
- [ ] If pull request does not pass tests, troubleshoot to find a solution or open another issue.
26+
labels: 'dependencies'

0 commit comments

Comments
 (0)