Skip to content

Add label input to backport workflow#16575

Merged
akoeplinger merged 1 commit intodotnet:mainfrom
MiYanni:LabelsForBackport
Mar 9, 2026
Merged

Add label input to backport workflow#16575
akoeplinger merged 1 commit intodotnet:mainfrom
MiYanni:LabelsForBackport

Conversation

@MiYanni
Copy link
Copy Markdown
Member

@MiYanni MiYanni commented Mar 9, 2026

Summary

This adds the ability to provide a list of labels to add to PRs created by the backport workflow. The scenario is that I'd like to label backport PRs in the SDK repo with backport. This allows for better querying when performing weekly build duty. I've used Copilot to create these changes. This is what our SDK repo workflow would look like with these changes:

name: Backport PR to branch
on:
  issue_comment:
    types: [created]

permissions:
  contents: write
  issues: write
  pull-requests: write
  actions: write

jobs:
  backport:
    uses: dotnet/arcade/.github/workflows/backport-base.yml@main
    with:
        pr_labels: backport
        pr_description_template: |
          Backport of #%source_pr_number% to %target_branch%

          /cc %cc_users%

@akoeplinger akoeplinger merged commit 3a872e7 into dotnet:main Mar 9, 2026
2 of 4 checks passed
@akoeplinger
Copy link
Copy Markdown
Member

please try it out and let me know if it works, testing the workflow is easiest in production :)

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.

2 participants