Skip to content

ci: make auto-approve workflow support fork PRs - #1163

Open
hari2353 wants to merge 1 commit into
genezhang:mainfrom
hari2353:fix/auto-approve-fork-prs
Open

hari2353 wants to merge 1 commit into
genezhang:mainfrom
hari2353:fix/auto-approve-fork-prs

Conversation

@hari2353

Copy link
Copy Markdown

Summary\n\nFix the documentation/configuration auto-approve workflow for pull requests opened from forks.\n\n## Problem\n\nThe workflow checked out the base repository only. On fork PRs, j-actions/changed-files could not resolve the head commit and failed with Similar commit hashes detected, blocking the required check.\n\n## Fix\n\nCheckout the pull request head repository and SHA when running under pull_request_target, while retaining a fallback for non-PR events.\n\n## Verification\n\nReviewed the generated workflow diff and validated that only the checkout inputs changed. This is a CI-only change and does not affect application code.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant