Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/always-on-guards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ jobs:

gh label create variation-light-cap-reached \
--description "Lane ayant deja merge une LIGHT aujourd'hui (cap G-VAR-2 atteint)" \
--color B60205 --force 2>/dev/null || true
--color B60205 --force || true

if [ "$CAP" = "True" ]; then
gh pr edit "$PR_NUMBER" --add-label variation-light-cap-reached 2>/dev/null || true
Expand Down Expand Up @@ -542,7 +542,7 @@ jobs:
else
SIGVAL="${!SIGVAR:-False}"
fi
gh label create "$LABEL" --description "$DESC" --color "$COLOR" --force 2>/dev/null || true
gh label create "$LABEL" --description "$DESC" --color "$COLOR" --force || true
# #10341 : les signaux agreges ne labelisent pas une candidate
# innocente ; la branche else retire aussi un label pose avant
# que la lane ne croise le cap (idempotence symetrique).
Expand Down Expand Up @@ -647,7 +647,7 @@ jobs:
# en silence (check=False historique) -- longueur epinglee en dur ici.
gh label create trivial-diff-advisory \
--description "Diff trivial : grain META mecanique sans fournee ni exception ecrite (#15740)" \
--color C2A76D --force 2>/dev/null || true
--color C2A76D --force || true
gh pr edit "$PR_NUMBER" --add-label trivial-diff-advisory 2>/dev/null || true

MARK="<!-- trivial-diff-15740 -->"
Expand Down Expand Up @@ -704,7 +704,7 @@ jobs:
fi

mk_label() {
gh label create "$1" --description "$2" --color "$3" --force 2>/dev/null || true
gh label create "$1" --description "$2" --color "$3" --force || true
}
mk_label "lane-claim-absent" "Closing issue carries no claim at all (#10223)" "fbca04"

Expand Down Expand Up @@ -1029,8 +1029,8 @@ jobs:

# Label advisory pour l'adjacence DEEP/MED (jugement coord).
gh label create variation-adjacency-deep-med \
--description "Adjacence de genre DEEP/MED (hors liste LIGHT) : §2 l'autorise si substance distincte -- jugement au coordinateur" \
--color FEF2C0 --force 2>/dev/null || true
--description "Adjacence DEEP/MED hors LIGHT : §2 l'autorise si substance distincte (coordinateur)" \
--color FEF2C0 --force || true
if [ "$ADJACENT" = "True" ]; then
gh pr edit "$PR_NUMBER" --add-label variation-adjacency-deep-med 2>/dev/null || true
else
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/always-on-metadata-guards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ jobs:
fi
echo "::warning::Base is ${AGE_DAYS}d behind main (${BEHIND} commits)"
gh pr comment "$PR_NUMBER" --body "## Base Branch Stale Warning - ${AGE_DAYS}d behind main (${BEHIND} commits). Consider rebasing." 2>/dev/null || true
gh label create "base-stale-14d" --description "PR base >14d behind main" --color "FFA500" --force 2>/dev/null || true
gh label create "base-stale-14d" --description "PR base >14d behind main" --color "FFA500" --force || true
gh pr edit "$PR_NUMBER" --add-label "base-stale-14d" 2>/dev/null || true

# ------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cjk-residue-advisory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
echo "::notice::CJK residue in THIS PR ($PR_LEAKS leak line(s)): $FILES -- see the '$LABEL' label (#8826/#8428)."
gh label create "$LABEL" \
--description "CJK residue: a Chinese/Japanese word soldered into Latin prose (#8428/#8826)" \
--color "D93F0B" --force 2>/dev/null || true
--color "D93F0B" --force || true
gh pr edit "$PR_NUMBER" --add-label "$LABEL" || true
fi
else
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/consecutive-code-cells-advisory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:

# Helper: ensure a label exists (idempotent), then add/remove it.
ensure_label() {
gh label create "$1" --description "$2" --color "$3" --force 2>/dev/null || true
gh label create "$1" --description "$2" --color "$3" --force || true
}
set_label() { gh pr edit "$PR_NUMBER" --add-label "$1" || true; }
unset_label() { gh pr edit "$PR_NUMBER" --remove-label "$1" 2>/dev/null || true; }
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
# when its count > 0 and cleared otherwise (a stale label from an
# earlier push must not stick).
ensure_label "$LABEL_CONSECUTIVE" \
"A modified notebook has a run of >=2 consecutive code cells (opportunity for an intermediate markdown cell, or a merge pattern) (#12797)" "C4A64C"
"Modified notebook has >=2 consecutive code cells (#12797)" "C4A64C"
ensure_label "$LABEL_UNMEASURED" \
"A modified notebook could not be measured -- NOT verified (#8819)" "BFD4F2"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-nuget-block-advisory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:

# Helper: ensure a label exists (idempotent), then add/remove it.
ensure_label() {
gh label create "$1" --description "$2" --color "$3" --force 2>/dev/null || true
gh label create "$1" --description "$2" --color "$3" --force || true
}
set_label() { gh pr edit "$PR_NUMBER" --add-label "$1" || true; }
unset_label() { gh pr edit "$PR_NUMBER" --remove-label "$1" 2>/dev/null || true; }
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/exercises-advisory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:

# Helper: ensure a label exists (idempotent), then add/remove it.
ensure_label() {
gh label create "$1" --description "$2" --color "$3" --force 2>/dev/null || true
gh label create "$1" --description "$2" --color "$3" --force || true
}
set_label() { gh pr edit "$PR_NUMBER" --add-label "$1" || true; }
unset_label() { gh pr edit "$PR_NUMBER" --remove-label "$1" 2>/dev/null || true; }
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/h1-hygiene-advisory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ jobs:
fi
gh label create "h1-hygiene-advisory" \
--description "Added notebook(s) carry H1 markdown/emoji/'Notebook:' prefix (#11840, advisory)" \
--color "D4AC0D" --force 2>/dev/null || true
--color "D4AC0D" --force || true
gh pr edit "$PR_NUMBER" --add-label "h1-hygiene-advisory" 2>/dev/null || true
echo "::warning::H1 hygiene advisory: see scan output above (#11840)"
2 changes: 1 addition & 1 deletion .github/workflows/lane-claim-guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ jobs:
# travail passe comme marqueurs historiques; aucun nouveau n'est
# pose par ce job.
mk_label() {
gh label create "$1" --description "$2" --color "$3" --force 2>/dev/null || true
gh label create "$1" --description "$2" --color "$3" --force || true
}
mk_label "lane-claim-absent" "Closing issue carries no claim at all (#10223)" "fbca04"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lean-visibility-advisory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
set -uo pipefail

ensure_label() {
gh label create "$1" --description "$2" --color "$3" --force 2>/dev/null || true
gh label create "$1" --description "$2" --color "$3" --force || true
}
set_label() { gh pr edit "$PR_NUMBER" --add-label "$1" || true; }
unset_label() { gh pr edit "$PR_NUMBER" --remove-label "$1" 2>/dev/null || true; }
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/markdown-deaccent-advisory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
fi

ensure_label() {
gh label create "$1" --description "$2" --color "$3" --force 2>/dev/null || true
gh label create "$1" --description "$2" --color "$3" --force || true
}
set_label() { gh pr edit "$PR_NUMBER" --add-label "$1" || true; }
unset_label() { gh pr edit "$PR_NUMBER" --remove-label "$1" 2>/dev/null || true; }
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mermaid-fill-color-advisory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:

# Helper: ensure a label exists (idempotent), then add/remove it.
ensure_label() {
gh label create "$1" --description "$2" --color "$3" --force 2>/dev/null || true
gh label create "$1" --description "$2" --color "$3" --force || true
}
set_label() { gh pr edit "$PR_NUMBER" --add-label "$1" || true; }
unset_label() { gh pr edit "$PR_NUMBER" --remove-label "$1" 2>/dev/null || true; }
Expand Down Expand Up @@ -139,9 +139,9 @@ jobs:
# is > 0 and cleared otherwise (a stale label from an earlier push
# must not stick).
ensure_label "$LABEL_FINDING" \
"A modified .md or .ipynb carries a mermaid style/classDef rule with fill: but no color: -- light-on-light label risk in dark theme (#15022 founding incident, #15502 fix + guard)" "E99695"
"Mermaid rule with fill: but no color: -- dark-theme label risk (#15022)" "E99695"
ensure_label "$LABEL_UNMEASURED" \
"A modified .md or .ipynb could not be measured by the mermaid fill-color detector -- NOT verified (#8819)" "BFD4F2"
"Not measured by the mermaid fill-color detector -- NOT verified (#8819)" "BFD4F2"

# The #8819 guard: if the detector died, FIND/UNM are not integers
# (FIND defaults to -1 on unreadable payload). With only `set -uo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/paragraph-length-advisory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
echo "Modified *.md in this PR: $COUNT"

ensure_label() {
gh label create "$1" --description "$2" --color "$3" --force 2>/dev/null || true
gh label create "$1" --description "$2" --color "$3" --force || true
}
set_label() { gh pr edit "$PR_NUMBER" --add-label "$1" || true; }
unset_label() { gh pr edit "$PR_NUMBER" --remove-label "$1" 2>/dev/null || true; }
Expand Down Expand Up @@ -128,9 +128,9 @@ jobs:
echo "Flagged files: $FLAG_COUNT"

ensure_label "$LABEL_OVERSIZED" \
"A modified markdown file carries a paragraph > 2000 chars (wall-of-text, see #15405 incident). Resorb before merge." "FBCA04"
"Paragraph > 2000 chars (wall-of-text, #15405). Resorb before merge." "FBCA04"
ensure_label "$LABEL_UNMEASURED" \
"A modified markdown file could not be measured by detect_paragraph_length.py -- NOT verified (#8819)." "BFD4F2"
"Not measured by detect_paragraph_length.py -- NOT verified (#8819)" "BFD4F2"

# #8819 guard: if the payload is unreadable, never claim green.
if [ "${OVERSZ_COUNT:-0}" = "UNREADABLE" ] 2>/dev/null; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pedagogy-density-advisory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:

# Helper: ensure a label exists (idempotent), then add/remove it.
ensure_label() {
gh label create "$1" --description "$2" --color "$3" --force 2>/dev/null || true
gh label create "$1" --description "$2" --color "$3" --force || true
}
set_label() { gh pr edit "$PR_NUMBER" --add-label "$1" || true; }
unset_label() { gh pr edit "$PR_NUMBER" --remove-label "$1" 2>/dev/null || true; }
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/slides-build-advisory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ jobs:
if [ "$FAILURES" -gt 0 ]; then
gh label create "$LABEL" \
--description "A Slidev deck impacted by this PR does not construct (#8807)" \
--color "D93F0B" --force 2>/dev/null || true
--color "D93F0B" --force || true
if [ "$NOCTURNE" -eq 1 ]; then
echo "::warning::$FAILURES deck(s) impacted by the last-24h window failed to build. Failed:$FAILED_LIST"
exit 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale-base-warning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ jobs:
fi
echo "::warning::Base is ${AGE_DAYS}d behind main (${BEHIND} commits)"
gh pr comment "$PR_NUMBER" --body "## Base Branch Stale Warning - ${AGE_DAYS}d behind main (${BEHIND} commits). Consider rebasing." 2>/dev/null || true
gh label create "base-stale-14d" --description "PR base >14d behind main" --color "FFA500" --force 2>/dev/null || true
gh label create "base-stale-14d" --description "PR base >14d behind main" --color "FFA500" --force || true
gh pr edit "$PR_NUMBER" --add-label "base-stale-14d" 2>/dev/null || true
2 changes: 1 addition & 1 deletion .github/workflows/variation-light-genre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ jobs:
# initialisee ; on en reste a SIGVAL=False sans crasher.
SIGVAL="${!SIGVAR:-False}"
fi
gh label create "$LABEL" --description "$DESC" --color "$COLOR" --force 2>/dev/null || true
gh label create "$LABEL" --description "$DESC" --color "$COLOR" --force || true
# #10341 -- aggregate signals (MAY_LABEL_INNOCENT="no") must not
# label an innocent CONTENT candidate. The lane-day signal stays
# real (surfaced in the diagnostic comment below), but the LABEL
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/variation-tag-guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ jobs:
# donc create/add/remove tolerent l'echec sans tuer le job (|| true).
gh label create variation-light-cap-reached \
--description "Lane ayant deja merge une LIGHT aujourd'hui (cap G-VAR-2 atteint)" \
--color B60205 --force 2>/dev/null || true
--color B60205 --force || true

if [ "$CAP" = "True" ]; then
gh pr edit "$PR_NUMBER" --add-label variation-light-cap-reached 2>/dev/null || true
Expand Down Expand Up @@ -907,8 +907,8 @@ jobs:
# Advisory label for DEEP/MED adjacency (guard_pass stays true, the
# job passes; the label surfaces the §2 judgment for the coordinator).
gh label create variation-adjacency-deep-med \
--description "Adjacence de genre DEEP/MED (hors liste LIGHT) : §2 l'autorise si substance distincte -- jugement au coordinateur" \
--color FEF2C0 --force 2>/dev/null || true
--description "Adjacence DEEP/MED hors LIGHT : §2 l'autorise si substance distincte (coordinateur)" \
--color FEF2C0 --force || true
if [ "$ADJACENT" = "True" ]; then
gh pr edit "$PR_NUMBER" --add-label variation-adjacency-deep-med 2>/dev/null || true
else
Expand Down
Loading