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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9dee8662b3f59ea5f375d5c0dac6c774dc7b7202ca88e3457344fef3ae0cdce9
4
- data.tar.gz: bb1c5b9605b13f3ca64d3ea31f915a38980532c8a2f21b215979f5475562b2bb
3
+ metadata.gz: e192c17c03b702b370cf76636a3c78674c719ecb4244ba779549301fa3564f0f
4
+ data.tar.gz: 72c7f78fe5cb5140f25aa50d0f4312a9e4cb3c704eb7f3d7b996a3da90f3298d
5
5
  SHA512:
6
- metadata.gz: a5de52e709279bcd53d54244cd04cb01041c4f81c84d857dec19b6970925ca7bf91321494dd6dd21ce9fb8deb09e8a2ed7c41a6d5c3b95b6aa9095e1628c2adb
7
- data.tar.gz: dc945ebe5c2a391dbacd4e530637430a4f3ee65eb07a8de23d162af13cc1da9d376ad056f6f1ca081c1ae5c41bce076ec8e36348e0afdb4a066eee3fdf83c01c
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.21.0
1
+ 2.23.0
@@ -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(
@@ -1162,11 +1162,23 @@ module Carson
1162
1162
  audit_status = onboard_run_audit!
1163
1163
 
1164
1164
  puts_line ""
1165
- puts_line "Carson is ready. Workflow: #{config.workflow_style}"
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
 
@@ -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 )}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carson
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.21.0
4
+ version: 2.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hailei Wang