repowarden 4.1.0 → 4.1.1-next.4
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/hooks/lib/i18n/en.sh +1 -0
- package/hooks/lib/i18n/fr.sh +1 -0
- package/hooks/lib/tickets.sh +5 -0
- package/package.json +1 -1
package/hooks/lib/i18n/en.sh
CHANGED
|
@@ -363,6 +363,7 @@ _msg_en() {
|
|
|
363
363
|
tk.merged) _M="Merged by PR #%s into %s: in pre-production, available in the next pre-release." ;;
|
|
364
364
|
tk.branch_created) _M="Ticket validated: its branch \`%s\` is created from \`%s\`.\n\nTo work on it:\n\n\`\`\`bash\nrepowarden ticket %s\n\`\`\`\n\n(or \`git fetch && git switch %s\`). The first push opens the draft PR." ;;
|
|
365
365
|
tk.branch_notice) _M="Branch %s created for ticket #%s" ;;
|
|
366
|
+
tk.reopened) _M="Reopened: closed by GitHub when #%s was merged into \`%s\`, which is not production yet. In pre-production; it will be closed at the release." ;;
|
|
366
367
|
tk.sync.ready) _M="Ticket #%s assigned: local branch %s ready (repowarden ticket %s)." ;;
|
|
367
368
|
tk.sync.not_validated) _M="Ticket #%s assigned but not validated yet: no branch for now." ;;
|
|
368
369
|
tk.sync.failed) _M="Ticket #%s: branch not created (rights on the repository?)." ;;
|
package/hooks/lib/i18n/fr.sh
CHANGED
|
@@ -363,6 +363,7 @@ _msg_fr() {
|
|
|
363
363
|
tk.merged) _M="Mergé par la PR #%s dans %s : en préprod, disponible dans la prochaine préversion." ;;
|
|
364
364
|
tk.branch_created) _M="Ticket validé : sa branche \`%s\` est créée depuis \`%s\`.\n\nPour y travailler :\n\n\`\`\`bash\nrepowarden ticket %s\n\`\`\`\n\n(ou \`git fetch && git switch %s\`). Le premier push ouvre la PR en brouillon." ;;
|
|
365
365
|
tk.branch_notice) _M="Branche %s créée pour le ticket #%s" ;;
|
|
366
|
+
tk.reopened) _M="Rouvert : fermé par GitHub au merge de #%s dans \`%s\`, ce n'est pas encore la production. En préprod ; il sera fermé à la release." ;;
|
|
366
367
|
tk.sync.ready) _M="Ticket #%s assigné : branche locale %s prête (repowarden ticket %s)." ;;
|
|
367
368
|
tk.sync.not_validated) _M="Ticket #%s assigné mais pas encore validé : pas de branche pour l'instant." ;;
|
|
368
369
|
tk.sync.failed) _M="Ticket #%s : branche non créée (droits sur le dépôt ?)." ;;
|
package/hooks/lib/tickets.sh
CHANGED
|
@@ -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