As part of the Pagure migration process, per-repo labels were created to match Pagure's labels, priorities and statuses. But in Forgejo we also have similar quality org-wide labels templated from instance-wide labels, which is confusing and redundant. This script runs on a Forgejo repo and removes the per-repo priority labels, replacing them with the templated priority labels. It also replaces 'bug' with 'Work Item/Bug' and 'task' with 'Work Item/Task', since they seem pretty good equivalents. We use color to distinguish between the per-repo and templated priority labels as they actually have the exact same names. The colors for the 'bug' and 'task' labels seem pretty consistent from repo to repo, except one outlier where the 'task' color was different. We make the replacements mapping an external file that can be swapped out, so it can easily be adapted to different organizations and repositories. Fixes #1 Signed-off-by: Adam Williamson <awilliam@redhat.com>
34 lines
603 B
JSON
34 lines
603 B
JSON
{
|
|
"priority/critical": {
|
|
"color": "ff00ff",
|
|
"id": 2058
|
|
},
|
|
"priority/high": {
|
|
"color": "ff00ff",
|
|
"id": 1136
|
|
},
|
|
"priority/medium": {
|
|
"color": "ff00ff",
|
|
"id": 1137
|
|
},
|
|
"priority/normal": {
|
|
"color": "ff00ff",
|
|
"id": 1137
|
|
},
|
|
"priority/low": {
|
|
"color": "ff00ff",
|
|
"id": 1138
|
|
},
|
|
"priority/wishlist": {
|
|
"color": "ff00ff",
|
|
"id": 1138
|
|
},
|
|
"bug": {
|
|
"color": "ff0000",
|
|
"id": 1120
|
|
},
|
|
"task": {
|
|
"color": "f0c000",
|
|
"id": 1119
|
|
}
|
|
}
|