Skip to content

Commit

Permalink
Updating example with most probable config for running action (#38)
Browse files Browse the repository at this point in the history
The default example snippet for action.yml runs the action on every new commit added to the PR and hence keeps adding +1 reviewer everytime. But I think the most possible usecase would be to add reviewer when PR is first opened or when a draft PR is marked as ready.

Accordingly updated the example
  • Loading branch information
siwalikm-plivo authored Apr 10, 2021
1 parent 249bca9 commit 8278502
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Create a workflow (e.g. `.github/workflows/action.yml` For more detail, refer to

```yml
name: 'Auto Assign'
on: pull_request
on:
pull_request
types: [opened, ready_for_review]

jobs:
add-reviews:
Expand Down

0 comments on commit 8278502

Please sign in to comment.