Skip to content

Commit a0ef7aa

Browse files
fix(ci): fix changelog check by fetching correct ref (#23241)
* Revert "Remove base branch fetching" This reverts commit ad73fd1. * changelog: remove pull_request job * Add changelog * Use BASE_BRANCH in check_changelog_fragments.sh * Revert "Use BASE_BRANCH in check_changelog_fragments.sh" This reverts commit 88c12f6. * Fetch correct sha * Revert "Revert "Use BASE_BRANCH in check_changelog_fragments.sh"" This reverts commit 14d9bf6. * Use ref instead of sha * Revert "Revert "Revert "Use BASE_BRANCH in check_changelog_fragments.sh""" This reverts commit d9d5cf8. * Remove BASE_BRANCH entirely * Go back to sha * Temporarily add pull_request back * Revert "Temporarily add pull_request back" This reverts commit 690b5cf. * Revert "Add changelog" This reverts commit 165ade2.
1 parent ba2b75b commit a0ef7aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/changelog.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
name: Changelog
1010

1111
on:
12-
pull_request:
13-
types: [opened, synchronize, reopened, labeled, unlabeled]
14-
1512
pull_request_target:
1613
types: [opened, synchronize, reopened, labeled, unlabeled]
1714

@@ -34,6 +31,8 @@ jobs:
3431
if: ${{ github.event_name != 'merge_group' }}
3532
with:
3633
fetch-depth: 0
34+
repository: ${{ github.event.pull_request.head.repo.full_name }}
35+
ref: ${{ github.event.pull_request.head.sha }}
3736

3837
- name: Bypass when no‑changelog label is present
3938
if: env.PR_HAS_LABEL == 'true'

0 commit comments

Comments
 (0)