@orderful/droid 0.55.1 → 0.55.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/tools/release/skills/release/SKILL.md +3 -3
- package/dist/tools/release/skills/release/references/templates.md +2 -2
- package/dist/tools/release/skills/release/references/workflows.md +7 -5
- package/package.json +1 -1
- package/src/tools/release/skills/release/SKILL.md +3 -3
- package/src/tools/release/skills/release/references/templates.md +2 -2
- package/src/tools/release/skills/release/references/workflows.md +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @orderful/droid
|
|
2
2
|
|
|
3
|
+
## 0.55.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#335](https://github.com/Orderful/droid/pull/335) [`92b08af`](https://github.com/Orderful/droid/commit/92b08afeab65ad2e33c0e2b6735deff95927c2a1) Thanks [@frytyler](https://github.com/frytyler)! - release: only auto-lock branch on high-risk releases. Low-risk releases no longer attempt to lock the branch by default. Use `--lock` flag or select High Risk to trigger auto-lock.
|
|
8
|
+
|
|
3
9
|
## 0.55.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -27,7 +27,7 @@ Automate dev → master release ceremonies: create release PRs, lock branches du
|
|
|
27
27
|
|
|
28
28
|
1. **`gh` CLI** — authenticated with access to target repos
|
|
29
29
|
2. **Slack integration** — `droid integrations slack post` configured (optional, falls back to terminal)
|
|
30
|
-
3. **`branch-lock.yml`** — GitHub Action deployed to target repo (required for auto-lock
|
|
30
|
+
3. **`branch-lock.yml`** — GitHub Action deployed to target repo (required for high-risk auto-lock + lock/unlock commands)
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
33
33
|
|
|
@@ -47,7 +47,7 @@ If no repos have `release_branch` set, tell user:
|
|
|
47
47
|
|
|
48
48
|
## Custom Instructions
|
|
49
49
|
|
|
50
|
-
Any command accepts a ` -- {instruction}` suffix. Split on the **first** ` -- ` (space-dash-dash-space): left is the command and its args, right is additional context or instruction to carry through the entire execution. Note: flag-style `--
|
|
50
|
+
Any command accepts a ` -- {instruction}` suffix. Split on the **first** ` -- ` (space-dash-dash-space): left is the command and its args, right is additional context or instruction to carry through the entire execution. Note: flag-style `--lock` uses `--flag` syntax (no surrounding spaces) and is distinct from this separator.
|
|
51
51
|
|
|
52
52
|
Example: `/release start -- notify #releases-eng channel instead of the default`
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ Example: `/release start -- notify #releases-eng channel instead of the default`
|
|
|
55
55
|
|
|
56
56
|
| Command | Action |
|
|
57
57
|
|---------|--------|
|
|
58
|
-
| `/release start [repo] [--
|
|
58
|
+
| `/release start [repo] [--lock]` | Create release PR + notify Slack (auto-locks on high-risk or `--lock`) |
|
|
59
59
|
| `/release merge [repo]` | Merge release PR (only if checks pass) + notify Slack |
|
|
60
60
|
| `/release lock [repo]` | Lock release branch (confirms first) |
|
|
61
61
|
| `/release unlock [repo]` | Unlock release branch |
|
|
@@ -21,7 +21,7 @@ All Slack messages are posted via `droid integrations slack post`. Format as Sla
|
|
|
21
21
|
Posted with :droid:
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Only include the lock line if the branch was actually locked (high-risk release, high-risk PRs detected, or `--lock` flag). Omit it for low-risk releases without locking.
|
|
25
25
|
|
|
26
26
|
If `HIGH_RISK_PRS` is non-empty, append the following block after `{pr_summary}` (before `Posted with :droid:`):
|
|
27
27
|
```
|
|
@@ -135,7 +135,7 @@ Release open for review — {repo_name}
|
|
|
135
135
|
Lock: {release_branch} locked (no merges until release completes)
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
Only include the Lock line if the branch was actually locked. Omit it for low-risk releases without locking.
|
|
139
139
|
|
|
140
140
|
If `HIGH_RISK_PRS` is non-empty, append:
|
|
141
141
|
```
|
|
@@ -25,11 +25,11 @@ git -C {repo_path} remote get-url origin
|
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
28
|
-
## `/release start [repo] [--
|
|
28
|
+
## `/release start [repo] [--lock]`
|
|
29
29
|
|
|
30
|
-
Create a release PR
|
|
30
|
+
Create a release PR and notify Slack.
|
|
31
31
|
|
|
32
|
-
**Auto-lock is
|
|
32
|
+
**Auto-lock is off by default.** The branch is only locked automatically for **high-risk** releases (user selects "High Risk" at the risk prompt, or `HIGH_RISK_PRS` are detected). Pass `--lock` (or natural language like "start and lock") to force locking on any release.
|
|
33
33
|
|
|
34
34
|
### Steps
|
|
35
35
|
|
|
@@ -82,7 +82,7 @@ Create a release PR, auto-lock the release branch, and notify Slack.
|
|
|
82
82
|
|
|
83
83
|
See `templates.md` for the PR body template.
|
|
84
84
|
|
|
85
|
-
6. **Auto-lock branch** (
|
|
85
|
+
6. **Auto-lock branch** (only if risk is **High Risk**, `HIGH_RISK_PRS` is non-empty, or `--lock` was passed):
|
|
86
86
|
```bash
|
|
87
87
|
gh workflow run branch-lock.yml \
|
|
88
88
|
-f action=lock \
|
|
@@ -97,6 +97,8 @@ Create a release PR, auto-lock the release branch, and notify Slack.
|
|
|
97
97
|
If `branch-lock.yml` is not found in the repo, warn but don't fail:
|
|
98
98
|
"Could not auto-lock — `branch-lock.yml` not found in `{repo_name}`. Use `/release lock` manually after adding the workflow."
|
|
99
99
|
|
|
100
|
+
**Skip this step entirely for low-risk releases without `--lock`.**
|
|
101
|
+
|
|
100
102
|
7. **Post to Slack:**
|
|
101
103
|
```bash
|
|
102
104
|
node -e 'process.stdout.write(JSON.stringify({
|
|
@@ -150,7 +152,7 @@ Merge the release PR if all checks are green, then notify Slack.
|
|
|
150
152
|
|
|
151
153
|
## `/release lock [repo]`
|
|
152
154
|
|
|
153
|
-
Manually lock the release branch. Use when you need to lock outside of `/release start
|
|
155
|
+
Manually lock the release branch. Use when you need to lock a low-risk release, or lock outside of `/release start`.
|
|
154
156
|
|
|
155
157
|
### Steps
|
|
156
158
|
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ Automate dev → master release ceremonies: create release PRs, lock branches du
|
|
|
27
27
|
|
|
28
28
|
1. **`gh` CLI** — authenticated with access to target repos
|
|
29
29
|
2. **Slack integration** — `droid integrations slack post` configured (optional, falls back to terminal)
|
|
30
|
-
3. **`branch-lock.yml`** — GitHub Action deployed to target repo (required for auto-lock
|
|
30
|
+
3. **`branch-lock.yml`** — GitHub Action deployed to target repo (required for high-risk auto-lock + lock/unlock commands)
|
|
31
31
|
|
|
32
32
|
## Configuration
|
|
33
33
|
|
|
@@ -47,7 +47,7 @@ If no repos have `release_branch` set, tell user:
|
|
|
47
47
|
|
|
48
48
|
## Custom Instructions
|
|
49
49
|
|
|
50
|
-
Any command accepts a ` -- {instruction}` suffix. Split on the **first** ` -- ` (space-dash-dash-space): left is the command and its args, right is additional context or instruction to carry through the entire execution. Note: flag-style `--
|
|
50
|
+
Any command accepts a ` -- {instruction}` suffix. Split on the **first** ` -- ` (space-dash-dash-space): left is the command and its args, right is additional context or instruction to carry through the entire execution. Note: flag-style `--lock` uses `--flag` syntax (no surrounding spaces) and is distinct from this separator.
|
|
51
51
|
|
|
52
52
|
Example: `/release start -- notify #releases-eng channel instead of the default`
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ Example: `/release start -- notify #releases-eng channel instead of the default`
|
|
|
55
55
|
|
|
56
56
|
| Command | Action |
|
|
57
57
|
|---------|--------|
|
|
58
|
-
| `/release start [repo] [--
|
|
58
|
+
| `/release start [repo] [--lock]` | Create release PR + notify Slack (auto-locks on high-risk or `--lock`) |
|
|
59
59
|
| `/release merge [repo]` | Merge release PR (only if checks pass) + notify Slack |
|
|
60
60
|
| `/release lock [repo]` | Lock release branch (confirms first) |
|
|
61
61
|
| `/release unlock [repo]` | Unlock release branch |
|
|
@@ -21,7 +21,7 @@ All Slack messages are posted via `droid integrations slack post`. Format as Sla
|
|
|
21
21
|
Posted with :droid:
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Only include the lock line if the branch was actually locked (high-risk release, high-risk PRs detected, or `--lock` flag). Omit it for low-risk releases without locking.
|
|
25
25
|
|
|
26
26
|
If `HIGH_RISK_PRS` is non-empty, append the following block after `{pr_summary}` (before `Posted with :droid:`):
|
|
27
27
|
```
|
|
@@ -135,7 +135,7 @@ Release open for review — {repo_name}
|
|
|
135
135
|
Lock: {release_branch} locked (no merges until release completes)
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
Only include the Lock line if the branch was actually locked. Omit it for low-risk releases without locking.
|
|
139
139
|
|
|
140
140
|
If `HIGH_RISK_PRS` is non-empty, append:
|
|
141
141
|
```
|
|
@@ -25,11 +25,11 @@ git -C {repo_path} remote get-url origin
|
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
28
|
-
## `/release start [repo] [--
|
|
28
|
+
## `/release start [repo] [--lock]`
|
|
29
29
|
|
|
30
|
-
Create a release PR
|
|
30
|
+
Create a release PR and notify Slack.
|
|
31
31
|
|
|
32
|
-
**Auto-lock is
|
|
32
|
+
**Auto-lock is off by default.** The branch is only locked automatically for **high-risk** releases (user selects "High Risk" at the risk prompt, or `HIGH_RISK_PRS` are detected). Pass `--lock` (or natural language like "start and lock") to force locking on any release.
|
|
33
33
|
|
|
34
34
|
### Steps
|
|
35
35
|
|
|
@@ -82,7 +82,7 @@ Create a release PR, auto-lock the release branch, and notify Slack.
|
|
|
82
82
|
|
|
83
83
|
See `templates.md` for the PR body template.
|
|
84
84
|
|
|
85
|
-
6. **Auto-lock branch** (
|
|
85
|
+
6. **Auto-lock branch** (only if risk is **High Risk**, `HIGH_RISK_PRS` is non-empty, or `--lock` was passed):
|
|
86
86
|
```bash
|
|
87
87
|
gh workflow run branch-lock.yml \
|
|
88
88
|
-f action=lock \
|
|
@@ -97,6 +97,8 @@ Create a release PR, auto-lock the release branch, and notify Slack.
|
|
|
97
97
|
If `branch-lock.yml` is not found in the repo, warn but don't fail:
|
|
98
98
|
"Could not auto-lock — `branch-lock.yml` not found in `{repo_name}`. Use `/release lock` manually after adding the workflow."
|
|
99
99
|
|
|
100
|
+
**Skip this step entirely for low-risk releases without `--lock`.**
|
|
101
|
+
|
|
100
102
|
7. **Post to Slack:**
|
|
101
103
|
```bash
|
|
102
104
|
node -e 'process.stdout.write(JSON.stringify({
|
|
@@ -150,7 +152,7 @@ Merge the release PR if all checks are green, then notify Slack.
|
|
|
150
152
|
|
|
151
153
|
## `/release lock [repo]`
|
|
152
154
|
|
|
153
|
-
Manually lock the release branch. Use when you need to lock outside of `/release start
|
|
155
|
+
Manually lock the release branch. Use when you need to lock a low-risk release, or lock outside of `/release start`.
|
|
154
156
|
|
|
155
157
|
### Steps
|
|
156
158
|
|