forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (21 loc) · 904 Bytes
/
label-pull-requests.yml
File metadata and controls
25 lines (21 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Pull request labeler
# FIXME: Consider adding the `issue_comment` event to change labels based on generic, non-review pull request comments.
# Consider the trade off of how spammy it can be (one CI run per comment) and how useful it would be to have.
# Consider alternatives to `issue_comment`.
on:
pull_request_target:
types: [opened, reopened, converted_to_draft, ready_for_review, synchronize, edited, review_requested, closed]
pull_request_review:
types: [submitted, edited, dismissed]
jobs:
label_pull_request:
runs-on: ubuntu-24.04
if: always() && github.repository == 'SerenityOS/serenity'
steps:
- uses: actions/checkout@v6.0.1
- name: Label pull request
uses: actions/github-script@v8
with:
script: |
const script = require('./Meta/label-pull-requests.js')
script({github, context})