repowarden 4.1.1-next.2 → 4.1.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.
@@ -13,6 +13,10 @@ S_RELECTURE="statut: en relecture"
13
13
  S_PREPROD="statut: préprod"
14
14
  S_DONE="statut: done"
15
15
 
16
+ # Vrai si les étiquettes $1 (une par ligne) disent le travail terminé : mergé
17
+ # (préprod) ou en production (done). Un tel ticket n'a plus de branche à créer.
18
+ travail_termine() { grep -qxF -e "$S_PREPROD" -e "$S_DONE" <<<"$1"; }
19
+
16
20
  # REPLY = numéro du ticket porté par la branche $1 (type/12-sujet, type/12),
17
21
  # vide sinon
18
22
  branch_ticket_r() {
@@ -151,6 +155,7 @@ tickets_sync() {
151
155
  [ -n "$n" ] || continue
152
156
  miens="$miens$n "
153
157
  etiquettes="${etiquettes//\\n/$'\n'}"
158
+ travail_termine "$etiquettes" && continue
154
159
  ticket_remote_branch_r "$n"
155
160
  branche="$REPLY"
156
161
  if [ -z "$branche" ]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repowarden",
3
- "version": "4.1.1-next.2",
3
+ "version": "4.1.1",
4
4
  "description": "Hooks git et CI multi-langages : messages de commit, nommage des branches, secrets, formatage, tests ciblés, code mort, releases.",
5
5
  "keywords": [
6
6
  "git-hooks",