Last active
October 9, 2018 15:58
-
-
Save simonewebdesign/d74d097abb49b4333e442061418dee71 to your computer and use it in GitHub Desktop.
Add one or more labels to a GitHub pull request or issue, using GitHub API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This program adds one or more labels to a GitHub issue/PR | |
username= | |
owner= | |
repo= | |
issue_or_pr_number= | |
curl -s https://api.github.com/repos/$owner/$repo/issues/$issue_or_pr_number/labels \ | |
-u $username \ | |
-d '["enhancement", "help wanted"]' # your label(s) here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment