@ucm-kit/cli 0.1.47 → 0.1.48
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/README.md +4 -4
- package/package.json +1 -1
- package/src/init.mjs +14 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ matches them.
|
|
|
16
16
|
Requires Node 20 or later. At the root of the repository:
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
19
|
+
npx --yes @ucm-kit/cli@0.1.48 init
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
1. Commit and push the files `init` wrote.
|
|
@@ -27,7 +27,7 @@ npx --yes @ucm-kit/cli@0.1.47 init
|
|
|
27
27
|
To run the check locally:
|
|
28
28
|
|
|
29
29
|
```sh
|
|
30
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
30
|
+
npx --yes @ucm-kit/cli@0.1.48 check --report ci-report.md
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
`--yes` skips the npx confirmation prompt. Pin an exact version, without `^`:
|
|
@@ -78,7 +78,7 @@ contract would resolve to the same file. A repository that does not write React
|
|
|
78
78
|
states its own extension:
|
|
79
79
|
|
|
80
80
|
```sh
|
|
81
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
81
|
+
npx --yes @ucm-kit/cli@0.1.48 init --components Sources/DesignSystem --implementation '{dir}/{id}.swift'
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
The three path options act only on a first install. `ucm init` never overwrites
|
|
@@ -188,7 +188,7 @@ directory. It writes a minimal report when the check stopped before writing
|
|
|
188
188
|
one, then posts the report:
|
|
189
189
|
|
|
190
190
|
```sh
|
|
191
|
-
npx --yes @ucm-kit/cli@0.1.
|
|
191
|
+
npx --yes @ucm-kit/cli@0.1.48 rapport-gitlab --projet "$CI_PROJECT_ID" --merge-request "$CI_MERGE_REQUEST_IID" --fichier "$CI_PROJECT_DIR/ci-report.md" --api "$CI_API_V4_URL"
|
|
192
192
|
```
|
|
193
193
|
|
|
194
194
|
| Option | Effect |
|
package/package.json
CHANGED
package/src/init.mjs
CHANGED
|
@@ -530,8 +530,21 @@ function workflow(version) {
|
|
|
530
530
|
" # rapport ne demande aucun geste : une demande de fusion étrangère à UCM",
|
|
531
531
|
" # reste vierge, et une demande dont le refus est corrigé voit son verdict",
|
|
532
532
|
" # remplacé plutôt que laissé périmé.",
|
|
533
|
+
" #",
|
|
534
|
+
" # `GITHUB_TOKEN` est un jeton d'intégration, auquel `GET /user` répond",
|
|
535
|
+
" # 403 : le compte se replie alors sur `github-actions[bot]`, l'auteur",
|
|
536
|
+
" # des commentaires qu'il écrit. Un jeton personnel garde son propre",
|
|
537
|
+
" # compte. Le repli reste hors de la substitution : en échec, `gh` écrit",
|
|
538
|
+
" # le corps de l'erreur sur la sortie standard, qui serait capturé avec.",
|
|
539
|
+
" #",
|
|
540
|
+
" # `pipefail` fait échouer l'étape quand la recherche échoue. Sans lui,",
|
|
541
|
+
" # `tail` rendait son propre code, et une recherche en échec passait",
|
|
542
|
+
" # pour une pull request sans commentaire.",
|
|
533
543
|
" run: |",
|
|
534
|
-
|
|
544
|
+
" set -o pipefail",
|
|
545
|
+
" if ! COMPTE=\"$(gh api user --jq .login 2>/dev/null)\"; then",
|
|
546
|
+
" COMPTE='github-actions[bot]'",
|
|
547
|
+
" fi",
|
|
535
548
|
' NOTE="$(gh api "repos/$GITHUB_REPOSITORY/issues/$NUMERO/comments" --paginate \\',
|
|
536
549
|
` --jq ".[] | select(.user.login == \\\"$COMPTE\\\") | select(.body | startswith(\\\"${MARQUEUR_RAPPORT}\\\")) | .id" | tail -n 1)"`,
|
|
537
550
|
' if [ -n "$NOTE" ]; then',
|