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
10 changes: 5 additions & 5 deletions .github/workflows/pr-metadata-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
with:
# For merge_group there is no pull_request payload; the default ref is
# already the queued candidate, so leave it alone in that case. For
# pull_request_target, read the current base branch by name rather than
# the event's base SHA: old PRs keep the SHA from the base they were
# opened against, which can predate this validator and leave a newly-
# required check permanently red after a body edit.
ref: ${{ github.event.pull_request.base.ref || '' }}
# pull_request_target, read the base repository's default branch rather
# than the PR's base ref/SHA: stacked PRs often target feature branches
# created before this gate existed, so reading that base can miss the
# validator and leave a newly-required check permanently red.
ref: ${{ github.event.pull_request.base.repo.default_branch || '' }}
# Only the template and the validator are read. No history needed.
fetch-depth: 1

Expand Down
Loading