diff --git a/.agents/skills/backport/SKILL.md b/.agents/skills/backport/SKILL.md index e6173c25..098ff612 100644 --- a/.agents/skills/backport/SKILL.md +++ b/.agents/skills/backport/SKILL.md @@ -37,6 +37,12 @@ identify which branches already have an open or merged backport PR — skip those. Sort the remaining branches **newest first** (e.g. `stable/2025.1` before `stable/2024.2` before `stable/zed`). +Also record whether the original PR has labels that the automated workflow +would copy to backport PRs. Mirror `.github/workflows/backports.yaml` +`copy_labels_pattern`; currently, copy `skip-release-notes` when it exists on +the original PR so reno checks do not require a release note for note-exempt +changes. + ### 3. Process branches one by one (cascade strategy) Use a **cascade strategy**: cherry-pick onto the newest branch first, fix any @@ -109,6 +115,16 @@ backported changes before pushing. ### 7. Push and open a PR +If the original PR has `skip-release-notes`, pass that label to every backport +PR: + +```bash +COPY_LABEL_ARGS=() +if gh pr view --repo vexxhost/atmosphere --json labels --jq '.labels[].name' | grep -qx 'skip-release-notes'; then + COPY_LABEL_ARGS+=(--label skip-release-notes) +fi +``` + ```bash git push origin backport--to- @@ -117,7 +133,8 @@ gh pr create \ --base \ --head backport--to- \ --title "[Backport ] " \ - --body "# Description\nBackport of # to \`\`." + --body "# Description\nBackport of # to \`\`." \ + "${COPY_LABEL_ARGS[@]}" ``` ### 8. Clean up