carson 2.21.0 → 2.23.0
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.
- checksums.yaml +4 -4
- data/RELEASE.md +13 -0
- data/VERSION +1 -1
- data/lib/carson/runtime/audit.rb +6 -0
- data/lib/carson/runtime/local.rb +14 -2
- data/lib/carson/runtime/setup.rb +16 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e192c17c03b702b370cf76636a3c78674c719ecb4244ba779549301fa3564f0f
|
|
4
|
+
data.tar.gz: 72c7f78fe5cb5140f25aa50d0f4312a9e4cb3c704eb7f3d7b996a3da90f3298d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9cad7952c709755faba1df36e1b247dea7ea21885c7d7987ec4c8aa42a4f2c1e2eb139ca02d8ff392129b61d4d821eeb57c2f768431aab73ec45b199d69c77c2
|
|
7
|
+
data.tar.gz: 6e95e4916ed3635bb1fb502d3e8068b02cd737803304ea1d54c5b8205c0d85b31700baf6bc2d00c76bdf66f5e27ab1ba11b9bc5d7e8522faa7791e003aad6f4e
|
data/RELEASE.md
CHANGED
|
@@ -5,6 +5,19 @@ Release-note scope rule:
|
|
|
5
5
|
- `RELEASE.md` records only version deltas, breaking changes, and migration actions.
|
|
6
6
|
- Operational usage guides live in `MANUAL.md` and `API.md`.
|
|
7
7
|
|
|
8
|
+
## 2.23.0 — Warm Onboard Welcome Guide
|
|
9
|
+
|
|
10
|
+
### What changed
|
|
11
|
+
|
|
12
|
+
- **`carson onboard` closing block rewritten as a warm next-step guide.** Replaces the terse "Carson is ready" message with a concierge-style welcome that explains what Carson placed in `.github/`, why it matters, and what to do before the first push.
|
|
13
|
+
|
|
14
|
+
## 2.22.0 — Setup Prompts for Canonical Templates
|
|
15
|
+
|
|
16
|
+
### What changed
|
|
17
|
+
|
|
18
|
+
- **`carson setup` now prompts for canonical template directory.** The interactive setup flow includes a new prompt to configure `template.canonical`, the directory of `.github/` files synced across governed repos. Shows the current value when one is already set.
|
|
19
|
+
- **Audit hints when canonical templates are not configured.** `carson audit` now emits a hint when `template.canonical` is unset, guiding users to run `carson setup`.
|
|
20
|
+
|
|
8
21
|
## 2.21.0 — Review Sweep Skips Bot Authors
|
|
9
22
|
|
|
10
23
|
### What changed
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.23.0
|
data/lib/carson/runtime/audit.rb
CHANGED
|
@@ -100,6 +100,12 @@ module Carson
|
|
|
100
100
|
else
|
|
101
101
|
audit_concise_problems << "Scope: unmatched paths — classify via scope.path_groups."
|
|
102
102
|
end
|
|
103
|
+
end
|
|
104
|
+
if config.template_canonical.nil? || config.template_canonical.to_s.empty?
|
|
105
|
+
puts_verbose ""
|
|
106
|
+
puts_verbose "[Canonical Templates]"
|
|
107
|
+
puts_verbose "HINT: canonical templates not configured — run carson setup to enable."
|
|
108
|
+
audit_concise_problems << "Hint: canonical templates not configured — run carson setup to enable."
|
|
103
109
|
end
|
|
104
110
|
write_and_print_pr_monitor_report(
|
|
105
111
|
report: monitor_report.merge(
|
data/lib/carson/runtime/local.rb
CHANGED
|
@@ -1162,11 +1162,23 @@ module Carson
|
|
|
1162
1162
|
audit_status = onboard_run_audit!
|
|
1163
1163
|
|
|
1164
1164
|
puts_line ""
|
|
1165
|
-
puts_line "Carson
|
|
1166
|
-
puts_line "Reconfigure anytime: carson setup"
|
|
1165
|
+
puts_line "Carson at your service."
|
|
1167
1166
|
|
|
1168
1167
|
prompt_govern_registration! if self.in.respond_to?( :tty? ) && self.in.tty?
|
|
1169
1168
|
|
|
1169
|
+
puts_line ""
|
|
1170
|
+
puts_line "Your repository is set up. Carson has placed files in your"
|
|
1171
|
+
puts_line "project's .github/ directory — pull request templates,"
|
|
1172
|
+
puts_line "guidelines for AI coding assistants, and any CI or lint"
|
|
1173
|
+
puts_line "rules you've configured. Once pushed to GitHub, they'll"
|
|
1174
|
+
puts_line "ensure every pull request follows a consistent standard"
|
|
1175
|
+
puts_line "and all checks run automatically."
|
|
1176
|
+
puts_line ""
|
|
1177
|
+
puts_line "Before your first push, have a look through .github/ to"
|
|
1178
|
+
puts_line "make sure everything is to your liking."
|
|
1179
|
+
puts_line ""
|
|
1180
|
+
puts_line "To adjust any setting: carson setup"
|
|
1181
|
+
|
|
1170
1182
|
audit_status
|
|
1171
1183
|
end
|
|
1172
1184
|
|
data/lib/carson/runtime/setup.rb
CHANGED
|
@@ -39,6 +39,8 @@ module Carson
|
|
|
39
39
|
merge_choice = prompt_merge_method
|
|
40
40
|
choices[ "govern.merge.method" ] = merge_choice unless merge_choice.nil?
|
|
41
41
|
|
|
42
|
+
canonical_choice = prompt_canonical_template
|
|
43
|
+
choices[ "template.canonical" ] = canonical_choice unless canonical_choice.nil?
|
|
42
44
|
|
|
43
45
|
write_setup_config( choices: choices )
|
|
44
46
|
end
|
|
@@ -143,6 +145,20 @@ module Carson
|
|
|
143
145
|
prompt_choice( options: options, default: 0 )
|
|
144
146
|
end
|
|
145
147
|
|
|
148
|
+
def prompt_canonical_template
|
|
149
|
+
puts_line ""
|
|
150
|
+
puts_line "Canonical template directory"
|
|
151
|
+
current = config.template_canonical
|
|
152
|
+
if current && !current.empty?
|
|
153
|
+
puts_line " Currently set to: #{current}"
|
|
154
|
+
puts_line " Leave blank to keep current value."
|
|
155
|
+
else
|
|
156
|
+
puts_line " A directory of .github/ files to sync across governed repos."
|
|
157
|
+
puts_line " Leave blank to skip for now."
|
|
158
|
+
end
|
|
159
|
+
prompt_custom_value( label: "Path" )
|
|
160
|
+
end
|
|
161
|
+
|
|
146
162
|
def prompt_choice( options:, default: )
|
|
147
163
|
options.each_with_index do |option, index|
|
|
148
164
|
puts_line " #{index + 1}) #{option.fetch( :label )}"
|