Skip to content

Commit 245fa84

Browse files
ci: adding auto assignee (#4174)
* feat: add automatic assignee assignment for pull requests * fix: exclude specific bots from automatic assignee assignment in pull requests * chore: adding changelog file 4174.miscellaneous.md [dependabot-skip] * fix: update condition for adding assignee in pull requests to handle empty assignees correctly * fix: update condition for checking empty assignees in pull requests * chore: empty commit to trigger CICD and see not new assignments * chore: adding changelog file 4174.miscellaneous.md [dependabot-skip] --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 44d9719 commit 245fa84

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ permissions:
4545

4646
jobs:
4747

48+
add_labels:
49+
name: Adding assignee if there is none.
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions-ecosystem/action-add-assignees@v1
53+
if: |
54+
(
55+
github.event_name == 'pull_request' &&
56+
github.actor != 'dependabot[bot]' &&
57+
github.actor != 'pyansys-ci-bot' &&
58+
toJson(github.event.pull_request.assignees) == '[]'
59+
)
60+
with:
61+
github_token: ${{ secrets.github_token }}
62+
assignees: ${{ github.actor }}
63+
4864
update-changelog:
4965
name: "Update CHANGELOG (on release)"
5066
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ci: adding auto assignee

0 commit comments

Comments
 (0)