-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add label management support #2
Comments
Regarding label synchronisation, I've been using Here is an example: labels=$(ghi label -l)
# Rename default github labels:
if $(echo "$labels" | grep -q "bug"); then
ghi label "bug" -r "Type: bug"
fi
if $(echo "$labels" | grep -q "enhancement"); then
ghi label "enhancement" -r "Type: enhancement"
fi
if $(echo "$labels" | grep -q "question"); then
ghi label "question" -r "Type: discussion"
fi
if $(echo "$labels" | grep -q "help wanted"); then
ghi label "help wanted" -r "Lane: help wanted"
fi
if $(echo "$labels" | grep -q "duplicate"); then
ghi label "duplicate" -r "Status: duplicate"
fi
if $(echo "$labels" | grep -q "invalid"); then
ghi label "invalid" -r "Status: invalid"
fi
if $(echo "$labels" | grep -q "wontfix"); then
ghi label "wontfix" -r "Status: wontfix"
fi
# Rename old Invenio labels:
if $(echo "$labels" | grep -q "in_work"); then
ghi label "in_work" -r "Status: in work"
fi
if $(echo "$labels" | grep -q "in_review"); then
ghi label "in_review" -r "Status: in review"
fi
if $(echo "$labels" | grep -q "in_integration"); then
ghi label "in_integration" -r "Status: in integration"
fi
# Type:
ghi label "Type: bug" -c ff2a00
ghi label "Type: enhancement" -c ff5500
ghi label "Type: new feature" -c ff5500
ghi label "Type: discussion" -c ffaa00
ghi label "Type: RFC" -c ffaa00
# Status:
ghi label "Status: ready for work" -c 149414
ghi label "Status: in work" -c 38a828
ghi label "Status: in review" -c 3cbc3c
ghi label "Status: duplicate" -c e6e6e6
ghi label "Status: invalid" -c e6e6e6
ghi label "Status: wontfix" -c e6e6e6
# Priority lanes:
ghi label "Lane: fast" -c ffa868
ghi label "Lane: help wanted" -c ffd090
# Size:
ghi label "Size: beginner-friendly" -c 8646c6
ghi label "Size: easy" -c bc3cbc
ghi label "Size: hard" -c a828a8
ghi label "Size: wizard" -c 941494
# Needs:
ghi label "Need: information" -c 719caa
ghi label "Need: documentation" -c 99C4D2
ghi label "Need: work" -c 8fbac8
ghi label "Need: tests" -c 84b0be
## Hacktoberfest
# ghi label "Hacktoberfest" -c b0581d
# Services:
#ghi label "Service: CDS" -c 207de5
#ghi label "Service: INSPIRE" -c 207de5
#ghi label "Service: B2SHARE" -c 207de5
#ghi label "Service: IAEA" -c 207de5
#ghi label "Service: SCOAP3" -c 207de5
#ghi label "Service: TIND" -c 207de5
#ghi label "Service: ZENODO" -c 207de5
#ghi label "Service: CAP" -c 207de5
#ghi label "Service: COD" -c 207de5 |
Nice! though it would be nicer to integrate so we only have the yaml as configuration file (in inspire we have different set of labels). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So all the labels are created and synced between repos.
The text was updated successfully, but these errors were encountered: