Skip to content

Commit 005ab77

Browse files
feat: added auto assign assignee to the PR workflow
1 parent 94fa995 commit 005ab77

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Above example is just a simple example to call workflow from github shared workf
5353
3. [Docker Workflow](https://github.com/clouddrove/github-shared-workflows/blob/master/docs/docker.md)
5454
* [Example for scan and push docker image on Dockerhub](https://github.com/clouddrove/github-shared-workflows/blob/master/docs/docker.md#example-for-scan-and-push-docker-image-on-dockerhub)
5555
* [Example for scan and push docker image on ECR](https://github.com/clouddrove/github-shared-workflows/blob/master/docs/docker.md#example-for-scan-and-push-docker-image-on-ecr)
56+
4. [Auto Assign Assignee Workflow](https://github.com/clouddrove/github-shared-workflows/blob/master/.github/workflows/auto-assignee.yml)
5657
5758
## Feedback
5859
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/github-shared-workflows/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).

docs/auto-assignee.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## [Auto Assign Assignee Workflow](https://github.com/clouddrove/github-shared-workflows/blob/master/.github/workflows/auto-assignee.yml)
2+
3+
This workflow automates process for assigning assignees to the PR which would opened or reopened from a users list. Workflows have been added in `.github/workflows/auto-assignee-caller.yml`
4+
5+
#### Usage
6+
Below workflow can be used to automatically assign the assignee to a pull request (PR) when the request is opened or reopened from the specified branch. If we provide a list of users, it will randomly select one user and assign as assignee to the PR.
7+
8+
#### Example
9+
```yaml
10+
name: Auto Assign PRs
11+
12+
on:
13+
pull_request:
14+
types: [opened, reopened]
15+
16+
workflow_dispatch:
17+
jobs:
18+
assign-pr:
19+
uses: clouddrove/github-shared-workflows/.github/workflows/auto-assignee.yml@master
20+
secrets:
21+
GITHUB: ${{ secrets.TOKEN_GITHUB }}
22+
with:
23+
assignees: #list of usernames of assignees
24+
```

0 commit comments

Comments
 (0)