Skip to content

Commit

Permalink
Added new hlt-integration label plus some cleanup
Browse files Browse the repository at this point in the history
- Added `hlt-integration` type label (with `hlt-int` as short)
- cleanup (define label colors in one place)
  • Loading branch information
smuzaffar authored Mar 19, 2024
1 parent 4175998 commit 14a16d9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions githublabels.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ def get_dpg_pog():
"rejected": "e11d21",
"info": "0000ff",
"doc": "257fdb",
"urgent": "cc317c",
"performance": "5b9ee3",
"bug": "b8860b",
}

LABEL_TYPES = {
Expand All @@ -27,12 +30,13 @@ def get_dpg_pog():
# type: only apply the last comment
# mtype: accomulate all comments]
TYPE_COMMANDS = {
"bug-fix": ["b8860b", "bug(-fix|fix|)", "type"],
"bug-fix": [LABEL_COLORS["bug"], "bug(-fix|fix|)", "type"],
"new-feature": [LABEL_COLORS["info"], "(new-|)(feature|idea)", "type"],
"root": [LABEL_COLORS["info"], "root", "mtype"],
"documentation": [LABEL_COLORS["doc"], "doc(umentation|)", "mtype"],
"hlt-integration": [LABEL_COLORS["doc"], "hlt-int(egration|)", "mtype"],
"performance-improvements": [
"5b9ee3",
LABEL_COLORS["performance"],
"performance|improvements|performance-improvements",
"mtype",
],
Expand All @@ -53,7 +57,7 @@ def get_dpg_pog():
"new-package-pending": LABEL_COLORS["rejected"],
"backport": LABEL_COLORS["info"],
"backport-ok": LABEL_COLORS["approved"],
"urgent": "cc317c",
"urgent": LABEL_COLORS["urgent"]
"process-complete": LABEL_COLORS["approved"],
"hold": LABEL_COLORS["hold"],
"compilation-warnings": LABEL_COLORS["hold"],
Expand Down

0 comments on commit 14a16d9

Please sign in to comment.