Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,21 @@ jobs:
repo: context.repo.repo,
labels: ['New contributor']
})

# Add 'Needs Review' label to newly opened, non-draft PRs
add_needs_review_label:
if: github.event.action == 'opened' && !github.event.pull_request.draft
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v8
with:
script: |
await github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['Needs Review']
})
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ If you feel your PR is no longer reviewable because it requires significant work
#### Label guide

* **No label**
* Please ping a maintainer to add a '**Needs Review**' label
* PRs should not be unlabeled, please ping a maintainer if this occurs.
* **[Needs Author Reply](https://github.com/ankidroid/Anki-Android/labels/Needs%20Author%20Reply)**
* The PR will unlikely be looked at until requested changes are made.
* **[Has Conflicts](https://github.com/ankidroid/Anki-Android/labels/Has%20Conflicts)**
Expand Down