Skip to content

Commit 2fe34fc

Browse files
authored
chore(ci): add "docs: skip" label to automated dependency PRs (#323)
1 parent 8629351 commit 2fe34fc

3 files changed

Lines changed: 21 additions & 4 deletions

File tree

.claude/skills/create-pr/SKILL.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: create-pr
33
description: Create a GitHub pull request following lstk conventions with proper title, description, and ticket references.
44
argument-hint: [base-branch]
55
disable-model-invocation: true
6-
allowed-tools: Bash(git log *), Bash(git diff *), Bash(git branch *), Bash(git push -u origin HEAD), Bash(gh pr create *), mcp__plugin_linear_linear__get_issue
6+
allowed-tools: Bash(git log *), Bash(git diff *), Bash(git branch *), Bash(git push -u origin HEAD), Bash(gh pr create *), Bash(gh label list *), mcp__plugin_linear_linear__get_issue
77
---
88

99
# Create Pull Request
@@ -69,15 +69,29 @@ Rules:
6969
- Omit Todo section if there are no follow-up items
7070
- Don't over-explain; the diff speaks for itself
7171

72-
## Step 5: Commit and push
72+
## Step 5: Choose labels
73+
74+
Always apply two labels, based on the size and nature of the change:
75+
76+
1. A semver label reflecting the impact of the change:
77+
- `semver: patch` — bug fixes, dependency/toolchain bumps, internal refactors, and other backward-compatible changes with no new user-facing behavior.
78+
- `semver: minor` — new backward-compatible functionality (e.g. a new command or flag).
79+
- `semver: major` — breaking changes to existing behavior or interfaces.
80+
2. A docs label reflecting whether documentation needs updating:
81+
- `docs: skip` — no user-facing documentation change is required (most dependency/toolchain upgrades, internal refactors).
82+
- `docs: needed` — the change adds or alters user-facing behavior that requires documentation updates.
83+
84+
This applies to automated PRs too (dependency and toolchain upgrades), which are almost always `semver: patch` + `docs: skip`.
85+
86+
## Step 6: Commit and push
7387

7488
If there are uncommitted changes, commit them with a concise message. Do NOT add `Co-Authored-By: Claude` unless the user explicitly asks for it.
7589

76-
Then push and create the PR:
90+
Then push and create the PR with the chosen labels:
7791

7892
```
7993
git push -u origin HEAD
80-
gh pr create --draft --title "<title>" --body "<body>" --base <base-branch>
94+
gh pr create --draft --title "<title>" --body "<body>" --base <base-branch> --label "<semver-label>" --label "<docs-label>"
8195
```
8296

8397
Return the PR URL when done.

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ updates:
99
open-pull-requests-limit: 10
1010
labels:
1111
- "semver: patch"
12+
- "docs: skip"
1213

1314
- package-ecosystem: "github-actions"
1415
directory: "/"
@@ -19,3 +20,4 @@ updates:
1920
open-pull-requests-limit: 10
2021
labels:
2122
- "semver: patch"
23+
- "docs: skip"

.github/workflows/weekly-go-upgrade.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ jobs:
4747
labels: |
4848
dependencies
4949
semver: patch
50+
docs: skip
5051
token: ${{ secrets.PRO_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)