Skip to content
Open
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
7 changes: 6 additions & 1 deletion .github/workflows/openaev-auto-label.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: "[OpenAEV] Auto Label"
# Runs on `pull_request`, not `pull_request_target`: GitHub blocks the latter by default on
# public repositories. Fork PRs get a read-only token and cannot be labeled, so they are skipped.
# A PR with a merge conflict starts no `pull_request` run: one opened or reopened in that state
# is not labeled. Add the label by hand.
on:
pull_request_target:
pull_request:
branches: [main]
types: [opened, reopened]
permissions:
contents: read
pull-requests: write
jobs:
auto-label:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- name: "Auto Label"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/openaev-check-signed-commit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: "[OpenAEV] Check Signed Commits in PR"
# Runs on `pull_request`, not `pull_request_target`: GitHub blocks the latter by default on
# public repositories. On fork PRs the token is read-only, so the check still fails on an unsigned
# commit but cannot post its explanatory comment. The merge itself is enforced by the ruleset.
on:
pull_request_target:
pull_request:
branches: [main]
permissions:
contents: read
Expand Down
Loading