Skip to content

Auto-apply milestone labels in the Skia sync workflow - #4327

Merged
mattleibow merged 1 commit into
mainfrom
mattleibow-milestone-bump-label-workflow
Jul 3, 2026
Merged

mattleibow merged 1 commit into
mainfrom
mattleibow-milestone-bump-label-workflow

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Fixes #4317.

What

The mono/SkiaSharp sync PR is created by .github/scripts/skia-sync-push-prs.sh (using SKIASHARP_AUTOBUMP_TOKEN), not the gh-aw create-pull-request safe-output — so it never picked up the type/milestone-bump label 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 the libSkiaSharp milestone line in scripts/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.

type/milestone-sync was created in the repo (color #a371f7) as part of this work.

Backfill

Applied the labels retroactively to every merged sync PR:

Kind PRs milestone-bump milestone-sync
Bumps (m115–m151) #2547, #2829, #3047, #3048, #3062, #3560, #3660, #3702, #4125, #4146, #4294 ✅ (11) ✅
Bug-fix re-syncs #4044, #4081, #4262, #4190, #4312 — ✅

The 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, 16 type/milestone-sync.

Notes

  • gh pr create --label / gh pr edit --add-label require the labels to already exist — they do now.
  • The script is cp'd and run directly by the workflow (not inlined into auto-skia-sync.lock.yml), so no lock-file regeneration is needed.
  • bash -n syntax check passes.

Co-authored-by: Copilot App [email protected]

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]>
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

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 -- 4327

PowerShell / 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-4327
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-4327

@mattleibow mattleibow changed the title Auto-apply milestone labels in the Skia sync workflow (#4317) Auto-apply milestone labels in the Skia sync workflow Jul 3, 2026
@mattleibow
mattleibow merged commit 9d89c5e into main Jul 3, 2026
3 checks passed
@mattleibow
mattleibow deleted the mattleibow-milestone-bump-label-workflow branch July 3, 2026 15:17
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

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]>
@mattleibow mattleibow added this to the 4.151.0-preview.2 milestone Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Auto-apply the type/milestone-bump label in the Skia sync workflow

1 participant