carson 2.21.0 → 2.22.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: 92af4bd3b6c18b621be3b43b6172fa4ec8ca0a67969be2a4bc1bdc86c9d047ef
4
+ data.tar.gz: a1a03fa58f49cbb72d25fd8c67c7fccb9904e79109aeaa71074929996b81bd5d
5
5
  SHA512:
6
- metadata.gz: a5de52e709279bcd53d54244cd04cb01041c4f81c84d857dec19b6970925ca7bf91321494dd6dd21ce9fb8deb09e8a2ed7c41a6d5c3b95b6aa9095e1628c2adb
7
- data.tar.gz: dc945ebe5c2a391dbacd4e530637430a4f3ee65eb07a8de23d162af13cc1da9d376ad056f6f1ca081c1ae5c41bce076ec8e36348e0afdb4a066eee3fdf83c01c
6
+ metadata.gz: 5065b58d24c4a9326ea127bb764f521d6466108126e374a3662ae4feb86a2bfb41a5e70dd970338247d5f25f5765dd0958f329afdde41c73b0792faf08b5880e
7
+ data.tar.gz: c1d9619069ea00bb4d427897adfbe37374828153888ee5c3b279ea6af647ed12828d5109542a33bbdf77771efe651f9f1244d4c2cbcf56f11014ae259ae6df6b
data/RELEASE.md CHANGED
@@ -5,6 +5,13 @@ 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.22.0 — Setup Prompts for Canonical Templates
9
+
10
+ ### What changed
11
+
12
+ - **`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.
13
+ - **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`.
14
+
8
15
  ## 2.21.0 — Review Sweep Skips Bot Authors
9
16
 
10
17
  ### What changed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.21.0
1
+ 2.22.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(
@@ -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.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hailei Wang