Skip to content
Merged
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
6 changes: 5 additions & 1 deletion .github/workflows/factory-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,15 @@ jobs:
allowed_bots: factory-droid
show_full_output: "false"

# Adding a missing label creates it.
- name: Mark the PR as reviewed
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
try {
await github.rest.issues.createLabel({ ...context.repo, name: 'droid-reviewed', color: '5319e7' });
} catch (error) {
if (error.status !== 422) throw error; // 422: the label already exists
}
await github.rest.issues.addLabels({
...context.repo,
issue_number: context.payload.pull_request.number,
Expand Down