Repository navigation
Auto-apply milestone labels in the Skia sync workflow - #4327
Merged
Merged
Conversation
The mono/SkiaSharp sync PR is created by .github/scripts/skia-sync-push-prs.sh, not the gh-aw safe-output, so it never received the type/milestone-bump label automatically. Now every skia-sync PR gets type/milestone-sync, and milestone-number bumps (the case that changes the libSkiaSharp milestone line in scripts/VERSIONS.txt) additionally get type/milestone-bump. Applied on both the create and update paths so re-runs on an existing PR ensure the labels are set. Co-authored-by: Copilot App <[email protected]>
Contributor
📦 Try the packages from this PRWarning Do not run these scripts without first reviewing the code in this PR. Step 1 — Download the packages bash / macOS / Linux: curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4327PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4327"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4327/packages --name skiasharp-pr-4327More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4327 |
Contributor
|
📖 Documentation Preview The documentation for this PR has been deployed and is available at: 🔗 View Staging Site This preview will be updated automatically when you push new commits to this PR. This comment is automatically updated by the documentation staging workflow. |
mattleibow
added a commit
that referenced
this pull request
Jul 3, 2026
Auto-apply milestone labels to the mono/skia sync PR too (#4329) Fixes: #4317 Context: #4327 (the mono/SkiaSharp side of the same fix) The skia-sync workflow opens a companion PR in mono/skia (push_skia in .github/scripts/skia-sync-push-prs.sh) alongside the mono/SkiaSharp PR, but only the parent PR was being labeled. #4327 fixed labeling for the parent; this applies the same taxonomy to the mono/skia PR so both stay in sync. * Every skia-sync PR now gets type/milestone-sync. * Milestone-number bumps additionally get type/milestone-bump. On the mono/skia side a "bump" is a merge that advances SK_MILESTONE in include/core/SkMilestone.h (the analog of scripts/VERSIONS.txt on the parent). * Renamed the shared flag SS_IS_MILESTONE_BUMP -> IS_MILESTONE_BUMP, since it now drives labels for both PRs, and applied labels on the create and update paths. Also created both labels in mono/skia (colors matching mono/SkiaSharp: bump #6f42c1, sync #a371f7) and backfilled every merged sync PR by inspecting the actual SK_MILESTONE change at each merge commit: * bump + sync (10): #122 (m116), #138 (m117), #139 (m118), #148 (m119), #171 (m132), #179 (m133), #184 (m147), #250 (m148), #253 (m150), #274 (m151) * sync only (5): #242 (m147), #255 (m150 Tizen backport), #259 (m150), #268 (m148), #278 (m151) Scope starts at m116 because no mono/skia PR set m115 (it was a direct push), mirroring the parent side; the 2016 m53 PRs (#15, #17) predate modern milestone tracking and were left out. The script is copied and run directly by the workflow, so no .lock.yml regeneration is needed (bash -n passes). Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot App <[email protected]>
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.
Fixes #4317.
What
The
mono/SkiaSharpsync PR is created by.github/scripts/skia-sync-push-prs.sh(usingSKIASHARP_AUTOBUMP_TOKEN), not the gh-awcreate-pull-requestsafe-output — so it never picked up thetype/milestone-bumplabel automatically and it had to be applied by hand each milestone.This wires labeling into that script and introduces a companion label so all sync PRs are findable, not just bumps:
type/milestone-sync— applied to every skia-sync PR (milestone bump, same-milestone bug-fix re-sync, and tip sync).type/milestone-bump— applied additionally to the one case that changes thelibSkiaSharp milestoneline inscripts/VERSIONS.txt(an actual milestone-number bump).Labels are set on both the create and update paths, so re-runs on an existing PR still ensure they're present.
Backfill
Applied the labels retroactively to every merged sync PR:
milestone-bumpmilestone-syncThe four pre-m119 bumps (#2547/m115, #2829/m116, #3047/m117, #3048/m118) were missing the label entirely and are now covered. Final counts: 11
type/milestone-bump, 16type/milestone-sync.Notes
gh pr create --label/gh pr edit --add-labelrequire the labels to already exist — they do now.cp'd and run directly by the workflow (not inlined intoauto-skia-sync.lock.yml), so no lock-file regeneration is needed.bash -nsyntax check passes.Co-authored-by: Copilot App [email protected]