github-delivery-os 1.0.0 → 1.0.1
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/package.json +1 -1
- package/src/install.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-delivery-os",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A GitHub-native Delivery Governance Framework for structured sprint execution, QA review, and collaborative production release control.",
|
|
5
5
|
"main": "src/install.js",
|
|
6
6
|
"bin": {
|
package/src/install.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const fs = require('fs');
|
|
3
|
-
const {
|
|
3
|
+
const { execFileSync } = require('child_process');
|
|
4
4
|
|
|
5
5
|
const WORKFLOWS = [
|
|
6
6
|
'sprint-child-creator',
|
|
@@ -141,7 +141,7 @@ function runInstall(options) {
|
|
|
141
141
|
console.log(' [dry-run] Labels would be created (skipped)');
|
|
142
142
|
} else {
|
|
143
143
|
try {
|
|
144
|
-
|
|
144
|
+
execFileSync('gh', ['--version'], { stdio: 'ignore' });
|
|
145
145
|
} catch {
|
|
146
146
|
labelsSkipReason = 'gh CLI not installed. Install from https://cli.github.com/';
|
|
147
147
|
console.log(` Skipped labels: ${labelsSkipReason}`);
|
|
@@ -154,7 +154,7 @@ function runInstall(options) {
|
|
|
154
154
|
|
|
155
155
|
if (!labelsSkipReason) {
|
|
156
156
|
try {
|
|
157
|
-
|
|
157
|
+
execFileSync('gh', ['auth', 'status'], { cwd: targetAbs, stdio: 'ignore' });
|
|
158
158
|
} catch {
|
|
159
159
|
labelsSkipReason = 'gh CLI not authenticated. Run: gh auth login';
|
|
160
160
|
console.log(` Skipped labels: ${labelsSkipReason}`);
|
|
@@ -163,7 +163,7 @@ function runInstall(options) {
|
|
|
163
163
|
|
|
164
164
|
if (!labelsSkipReason) {
|
|
165
165
|
try {
|
|
166
|
-
|
|
166
|
+
execFileSync('gh', ['repo', 'view'], { cwd: targetAbs, stdio: 'ignore' });
|
|
167
167
|
} catch {
|
|
168
168
|
labelsSkipReason = 'Target repo not on GitHub or no push access.';
|
|
169
169
|
console.log(` Skipped labels: ${labelsSkipReason}`);
|
|
@@ -173,7 +173,7 @@ function runInstall(options) {
|
|
|
173
173
|
if (!labelsSkipReason) {
|
|
174
174
|
for (const [name, color] of LABELS) {
|
|
175
175
|
try {
|
|
176
|
-
|
|
176
|
+
execFileSync('gh', ['label', 'create', name, '--color', color], {
|
|
177
177
|
cwd: targetAbs,
|
|
178
178
|
stdio: 'pipe',
|
|
179
179
|
});
|