Skip to content

Commit ad2f78c

Browse files
authored
feat(ci/cd): Add GitHub Action for auto-assigning PRs (#3144)
* feat(ci/cd): Add GitHub Action for auto-assigning PRs out of the recipes from https://github.com/actions-ecosystem/recipes this sounded very interesting. As we're sometimes forgetting to set ourselves as the assignee after opening a PR, this action would be very helpful. * Add condition to skip assignee for dependabot
1 parent abcda55 commit ad2f78c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/auto-assign.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Auto Assign
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
7+
on:
8+
pull_request:
9+
types:
10+
- opened
11+
- reopened
12+
13+
jobs:
14+
add_labels:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions-ecosystem/action-add-assignees@v1
18+
if: ${{ github.actor != 'dependabot[bot]' }}
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
assignees: ${{ github.actor }}

0 commit comments

Comments
 (0)