feat(workflow): enhance auto-labeling for closed PRs with version han…#126
Merged
LittleLittleCloud merged 1 commit intomainfrom Nov 16, 2025
Merged
feat(workflow): enhance auto-labeling for closed PRs with version han…#126LittleLittleCloud merged 1 commit intomainfrom
LittleLittleCloud merged 1 commit intomainfrom
Conversation
…dling and fork support
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the auto-labeling workflow to improve handling of merged PRs from forks by switching from pull_request to pull_request_target trigger, updating GitHub API endpoint syntax, and adding better verification for milestone assignments.
Key Changes:
- Switches workflow trigger from
pull_requesttopull_request_targetto ensure proper permissions for fork PRs - Updates GitHub API endpoints from legacy
:owner/:reposyntax to explicit${{ github.repository }}references - Improves milestone assignment verification by checking the actual API response instead of relying on exit codes
Comment on lines
+50
to
+52
| IS_FORK="false" | ||
| if [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]; then | ||
| IS_FORK="true" |
There was a problem hiding this comment.
The IS_FORK variable is set but never used in the subsequent logic. Either utilize this variable to conditionally handle fork PRs differently, or remove the variable and keep only the informational logging if fork detection is purely for diagnostic purposes.
Suggested change
| IS_FORK="false" | |
| if [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]; then | |
| IS_FORK="true" | |
| if [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…dling and fork support