@simplysf/simply-gitlab 0.10.0 → 0.12.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.
@@ -40,11 +40,11 @@ Every command reads its connection settings from environment variables, from fla
40
40
  `.env` file passed with `-e/--env-file`:
41
41
 
42
42
  ```
43
- GITLAB_TOKEN=glpat-...
44
- GITLAB_URL=https://gitlab.example.com # omit entirely for gitlab.com
43
+ SIMPLY_GITLAB_TOKEN=glpat-...
44
+ SIMPLY_GITLAB_URL=https://gitlab.example.com # omit entirely for gitlab.com
45
45
  ```
46
46
 
47
- `GITLAB_URL` defaults to `https://gitlab.com`, so a gitlab.com user needs only the token. See
47
+ `SIMPLY_GITLAB_URL` defaults to `https://gitlab.com`, so a gitlab.com user needs only the token. See
48
48
  [Credentials](/guides/credentials/) for precedence between flags, environment, and file, and for
49
49
  trusting an internal certificate authority.
50
50
 
@@ -70,13 +70,13 @@ simply gitlab mr list --project group/subgroup/project
70
70
  ```
71
71
 
72
72
  The path is URL-encoded for you — do not encode it yourself. If you work in one project most of
73
- the time, set `GITLAB_PROJECT` and drop the flag.
73
+ the time, set `SIMPLY_GITLAB_PROJECT` and drop the flag.
74
74
 
75
75
  ## Where to go next
76
76
 
77
77
  - The [Command Reference](/reference/) lists every command by topic, with its flags and examples.
78
78
  - [Credentials](/guides/credentials/) covers tokens, precedence, and certificates.
79
- - [Write safety](/guides/write-safety/) explains `--dry-run`, `GITLAB_READ_ONLY`, and why a
79
+ - [Write safety](/guides/write-safety/) explains `--dry-run`, `SIMPLY_GITLAB_READ_ONLY`, and why a
80
80
  `read_api` token is the only one of those that actually binds.
81
81
  - [Scripts and agents](/guides/scripting/) covers the `--json` contract and exit codes.
82
82
  - [MCP server](/guides/mcp-server/) gives an AI agent the same capabilities as tools, read-only by
@@ -143,7 +143,7 @@ guarantee rather than an approximation. A second run against a converged project
143
143
  at all.
144
144
 
145
145
  Sections are applied in a fixed order: settings, protected branches, protected tags, approval
146
- settings, approval rules, push rules. That order exists because an approval rule scoped to `main`
146
+ settings, approval rules, push rules, badges. That order exists because an approval rule scoped to `main`
147
147
  needs `main` protected before it can reference it.
148
148
 
149
149
  One project failing does not abandon the other forty-nine. There is no transaction across GitLab
@@ -165,7 +165,7 @@ where it stopped, and `plan` afterwards shows what is left.
165
165
  }
166
166
  ```
167
167
 
168
- Lists merge by a natural key — `name` for branches, tags, and rules; `key` plus `environment_scope`
168
+ Lists merge by a natural key — `name` for branches, tags, rules, and badges; `key` plus `environment_scope`
169
169
  for variables — so an override adjusts one entry rather than restating the array. The rule above
170
170
  changes one number and inherits the usernames from the baseline.
171
171
 
@@ -202,6 +202,29 @@ over time:
202
202
  simply gitlab config plan --config ./baseline.json --json | jq '.summary'
203
203
  ```
204
204
 
205
+ ## Badges
206
+
207
+ `badges` declares a project's own badges by name. GitLab's placeholders work in both URLs, so one
208
+ entry fits every project in the baseline:
209
+
210
+ ```json
211
+ "badges": [
212
+ {
213
+ "name": "Pipeline",
214
+ "link_url": "https://gitlab.example.com/%{project_path}/-/pipelines",
215
+ "image_url": "https://gitlab.example.com/%{project_path}/badges/%{default_branch}/pipeline.svg"
216
+ }
217
+ ]
218
+ ```
219
+
220
+ A new badge needs both URLs; `plan` reports the project as failed if one is missing.
221
+
222
+ Badges inherited from a parent group are ignored, because they belong to the group. A badge with no
223
+ name is left out of an export, since a baseline matches badges by name. If it is still on a project,
224
+ `plan` shows it as `(unnamed badge <id>)`, and turning on `prune` removes it.
225
+
226
+ If two badges on a project share a name, only the last one GitLab lists is compared.
227
+
205
228
  ## CI/CD variables are reported, not written
206
229
 
207
230
  The config can declare which variables must exist and what flags they carry. `plan` reports the ones
@@ -8,13 +8,26 @@ Connection settings come from environment variables, from flags, or from a `.env
8
8
  ignored.
9
9
 
10
10
  ```
11
- GITLAB_TOKEN=glpat-...
12
- GITLAB_URL=https://gitlab.example.com # omit entirely for gitlab.com
11
+ SIMPLY_GITLAB_TOKEN=glpat-...
12
+ SIMPLY_GITLAB_URL=https://gitlab.example.com # omit entirely for gitlab.com
13
13
  ```
14
14
 
15
- There are only two settings, and one of them has a default — `GITLAB_URL` is `https://gitlab.com`
15
+ There are only two settings, and one of them has a default — `SIMPLY_GITLAB_URL` is `https://gitlab.com`
16
16
  unless you say otherwise. A gitlab.com user needs the token and nothing else.
17
17
 
18
+ ## Renamed variables
19
+
20
+ Every variable now starts with `SIMPLY_`. The unprefixed names — `GITLAB_URL`, `GITLAB_TOKEN`,
21
+ `GITLAB_SSL_VERIFY`, `GITLAB_READ_ONLY`, and `GITLAB_PROJECT` — are shared with other GitLab tools
22
+ such as `glab` and most GitLab MCP servers, so a shell set up for one of those quietly configured
23
+ this CLI as well.
24
+
25
+ The old names are deprecated, not yet removed. Each still works while its `SIMPLY_` name is unset,
26
+ and a command that relies on one prints a warning to stderr naming the rename. Once both are set the
27
+ `SIMPLY_` name wins and the old one is ignored without comment, so another tool can keep its own
28
+ `GITLAB_TOKEN`. The unprefixed names will stop working in a future major release; rename them, in
29
+ your shell and in any `.env` file, by adding the prefix.
30
+
18
31
  ## Tokens and scopes
19
32
 
20
33
  The token is a personal access token (**Preferences › Access tokens**), a project access token, or
@@ -44,16 +57,16 @@ simply gitlab mr list -e ~/gitlab.env --project group/project
44
57
  simply gitlab mr update -e ~/gitlab-write.env --project group/project --mr 42 --state close
45
58
  ```
46
59
 
47
- A variable exported as an empty string does not outrank the file. `export GITLAB_TOKEN=` in a
60
+ A variable exported as an empty string does not outrank the file. `export SIMPLY_GITLAB_TOKEN=` in a
48
61
  wrapper script would otherwise discard the real token and fail as though nothing were configured.
49
62
 
50
63
  ## Naming a project
51
64
 
52
- Not a credential, but it belongs in the same shell profile. `GITLAB_PROJECT` sets the default for
65
+ Not a credential, but it belongs in the same shell profile. `SIMPLY_GITLAB_PROJECT` sets the default for
53
66
  `-p/--project`:
54
67
 
55
68
  ```sh
56
- export GITLAB_PROJECT=group/subgroup/project
69
+ export SIMPLY_GITLAB_PROJECT=group/subgroup/project
57
70
  simply gitlab mr list
58
71
  ```
59
72
 
@@ -61,11 +74,11 @@ A project is named by numeric id or full path, and the path is URL-encoded for y
61
74
 
62
75
  ## Self-managed instances
63
76
 
64
- Set `GITLAB_URL` to the instance origin. A subpath is kept, because self-managed instances are
77
+ Set `SIMPLY_GITLAB_URL` to the instance origin. A subpath is kept, because self-managed instances are
65
78
  routinely served from one:
66
79
 
67
80
  ```
68
- GITLAB_URL=https://example.com/gitlab
81
+ SIMPLY_GITLAB_URL=https://example.com/gitlab
69
82
  ```
70
83
 
71
84
  One thing to watch: pasting a **project** URL from gitlab.com — `https://gitlab.com/group/project`
@@ -82,7 +95,7 @@ authority, trust that CA rather than disabling verification:
82
95
  NODE_EXTRA_CA_CERTS=/path/to/ca.pem simply gitlab project list
83
96
  ```
84
97
 
85
- A `GITLAB_SSL_VERIFY=false` carried over from other GitLab tooling is rejected with an error rather
98
+ A `SIMPLY_GITLAB_SSL_VERIFY=false` carried over from other GitLab tooling is rejected with an error rather
86
99
  than silently ignored, so nobody ends up believing verification is off when it is on, or the
87
100
  reverse.
88
101
 
@@ -55,7 +55,7 @@ simply gitlab file update --project group/project --path README.md --branch main
55
55
 
56
56
  Without it, the last writer silently wins.
57
57
 
58
- ## `GITLAB_READ_ONLY`
58
+ ## `SIMPLY_GITLAB_READ_ONLY`
59
59
 
60
60
  Set it to `1`, `true`, `yes`, or `on` and every write command refuses before making any request.
61
61
  Reads are unaffected. This guards against misconfiguration: the wrong credential file, the wrong
@@ -90,6 +90,10 @@
90
90
  "type": "object",
91
91
  "description": "Push rules (Premium/Ultimate)."
92
92
  },
93
+ "badges": {
94
+ "$ref": "#/$defs/section",
95
+ "description": "The project's own badges, keyed by name. link_url and image_url are required for a new badge and accept GitLab's placeholders, such as %{project_path}. Badges inherited from a group are ignored."
96
+ },
93
97
  "variables": {
94
98
  "$ref": "#/$defs/section",
95
99
  "description": "CI/CD variable metadata, keyed by key + environment_scope. Reported only, never written: creating or updating a variable requires its value, and this file holds none."
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import process from 'node:process';
17
17
  import { Command, Flags } from '@oclif/core';
18
- import { assertWritesAllowed, AuthError, CliError, collectSecrets, GitLabClient, HttpError, loadEnvFile, redactSecrets, resolveGitLabConfig, sanitiseDeep, SECRET_ENV, stripControl, } from '@simplysf/simply-gitlab-core';
18
+ import { assertWritesAllowed, AuthError, CliError, collectSecrets, deprecatedEnvWarning, LEGACY_ENV, GitLabClient, HttpError, loadEnvFile, redactSecrets, resolveGitLabConfig, sanitiseDeep, SECRET_ENV, stripControl, } from '@simplysf/simply-gitlab-core';
19
19
  /**
20
20
  * Splits a comma-separated flag value, dropping blanks. `--labels ''` and `--labels 'a,'` would
21
21
  * otherwise yield an empty label, which GitLab stores as one.
@@ -78,9 +78,26 @@ export const projectFlag = {
78
78
  char: 'p',
79
79
  summary: 'Project id, or its full path such as group/subgroup/project.',
80
80
  required: true,
81
- env: 'GITLAB_PROJECT',
81
+ env: 'SIMPLY_GITLAB_PROJECT',
82
82
  }),
83
83
  };
84
+ /**
85
+ * `--project` with its environment binding pointed at the deprecated `GITLAB_PROJECT` when that is
86
+ * the only one set. oclif binds a flag to exactly one variable and rejects a missing required flag
87
+ * during parsing, before any fallback of ours could run, so the deprecated name has to be offered to
88
+ * the parser itself. A copy is returned; the shared flag definition is never modified.
89
+ */
90
+ function withLegacyProjectEnv(flags) {
91
+ const project = flags?.project;
92
+ if (project === undefined)
93
+ return flags;
94
+ // Only when the deprecated name is what would supply the value: the prefixed name always wins.
95
+ const current = process.env.SIMPLY_GITLAB_PROJECT;
96
+ const legacy = process.env[LEGACY_ENV.SIMPLY_GITLAB_PROJECT];
97
+ if ((current !== undefined && current !== '') || !legacy)
98
+ return flags;
99
+ return { ...flags, project: { ...project, env: LEGACY_ENV.SIMPLY_GITLAB_PROJECT } };
100
+ }
84
101
  /** The paging ceiling, worded once so every list command reads the same. */
85
102
  export function limitFlag(fallback, what) {
86
103
  return {
@@ -96,8 +113,9 @@ const envFileFlag = {
96
113
  char: 'e',
97
114
  summary: 'Path to a .env file holding connection settings.',
98
115
  description: 'Loaded before anything else. Variables already present in the environment win, so the ' +
99
- 'file never overrides an explicit export, and only GitLab connection variables are read ' +
100
- 'from it. A path that cannot be read is an error.',
116
+ 'file never overrides an explicit export, and only GitLab connection variables ' +
117
+ '(SIMPLY_GITLAB_URL, SIMPLY_GITLAB_TOKEN, SIMPLY_GITLAB_SSL_VERIFY, SIMPLY_GITLAB_READ_ONLY, and ' +
118
+ 'their deprecated unprefixed names) are read from it. A path that cannot be read is an error.',
101
119
  helpGroup: 'CONNECTION',
102
120
  }),
103
121
  };
@@ -105,12 +123,12 @@ const gitlabFlags = {
105
123
  ...envFileFlag,
106
124
  'gitlab-url': Flags.string({
107
125
  summary: 'Base URL of the GitLab instance. Defaults to https://gitlab.com.',
108
- env: 'GITLAB_URL',
126
+ env: 'SIMPLY_GITLAB_URL',
109
127
  helpGroup: 'CONNECTION',
110
128
  }),
111
129
  'gitlab-token': Flags.string({
112
130
  summary: 'Personal, project, or group access token.',
113
- env: 'GITLAB_TOKEN',
131
+ env: 'SIMPLY_GITLAB_TOKEN',
114
132
  helpGroup: 'CONNECTION',
115
133
  }),
116
134
  };
@@ -140,7 +158,7 @@ export class GitLabCommand extends Command {
140
158
  await super.init();
141
159
  const { args, flags } = await this.parse({
142
160
  baseFlags: this.constructor.baseFlags,
143
- flags: this.ctor.flags,
161
+ flags: withLegacyProjectEnv(this.ctor.flags),
144
162
  enableJsonFlag: this.ctor.enableJsonFlag,
145
163
  args: this.ctor.args,
146
164
  strict: this.ctor.strict,
@@ -151,6 +169,11 @@ export class GitLabCommand extends Command {
151
169
  const envFile = this.rawFlags['env-file'];
152
170
  if (typeof envFile === 'string')
153
171
  loadEnvFile(envFile);
172
+ // After the env file, so a deprecated name carried in one is reported too. `warn` goes to
173
+ // stderr and is silent under --json, so it never reaches a machine reader's stdout.
174
+ const deprecation = deprecatedEnvWarning(process.env);
175
+ if (deprecation !== undefined)
176
+ this.warn(deprecation);
154
177
  // After the env file, so a read-only guard carried in a credential file is honoured, and
155
178
  // before run(), so no write command can issue a request first.
156
179
  if (this.constructor.isWrite)
@@ -1 +1 @@
1
- {"version":3,"file":"base-command.js","sourceRoot":"","sources":["../../src/shared/base-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAmB,MAAM,aAAa,CAAC;AAC9D,OAAO,EACL,mBAAmB,EACnB,SAAS,EACT,QAAQ,EACR,cAAc,EAEd,YAAY,EAEZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,UAAU,EACV,YAAY,GACb,MAAM,8BAA8B,CAAC;AAEtC;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,KAAyB;IACjD,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,MAAM,KAAK,GAAG,KAAK;SAChB,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SAC1B,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACjC,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;AAChD,CAAC;AAED,+FAA+F;AAC/F,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;AAE/C;;;;;GAKG;AACH,SAAS,OAAO;IACd,MAAM,MAAM,GAA8B,EAAE,CAAC;IAC7C,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAC1B,KAAK,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;QA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