Skip to content

Instantly share code, notes, and snippets.

@simonewebdesign
Last active October 9, 2018 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonewebdesign/d74d097abb49b4333e442061418dee71 to your computer and use it in GitHub Desktop.
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
#!/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