-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actions: Create issues from dependabot pull requests workflow
Created create-dependabot-issues.yml
- Loading branch information
1 parent
e838f75
commit d873fd0
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Create Dependabot Issues # from pull requests | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
branches: [main] | ||
|
||
jobs: | ||
create-issue: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | ||
steps: | ||
- name: Create issue | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'create-issue' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
title: ${{ github.event.pull_request.title }} | ||
body: | | ||
### Dependabot opened a pull request to update a dependency. Please review it: ${{ github.event.pull_request.html_url }} | ||
- [ ] Comment on this issue tagging Chayn staff (@kyleecodes) to be assigned as a reviewer on the PR. | ||
- [ ] Review the pull request. See GitHub Docs below for guidance. Check the files changed, dependency review, and workflow test runs. | ||
- [ ] Verify tests and happy paths are functional by cloning the dependabot branch and running locally. | ||
- [ ] If pull request does not pass tests, suggest changes or write comments in the review. | ||
- [ ] When tests pass, approve changes to complete the review, then notify us in issue discussions so we can get this merged. | ||
### Resources | ||
GitHub Docs - Reviewing Pull Requests with Dependency Updates: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-dependency-changes-in-a-pull-request | ||
labels: 'dependencies' |