Skip to content

This small python script allows to create issue in github for given project.

License

Notifications You must be signed in to change notification settings

nvtkaszpir/python-github-create-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

This small python script allows to create issue in GitHub for given project.

Why?

  • PyGithub is sometimes an overkill
  • Jenkins Github Issues plugin is not fully mature yet (not to mention it's groovy specific)
  • other packages - forcing yourself to install ruby or nodejs is .... eh.
  • bash - yeah I could make a curl with some input file but integration might be more problematic in certain areas.

Based on https://gist.github.com/JeffPaine/3145490 with tweaks.

Requrements

Standard python-2.7 provided with any decent Linux distribution should be sufficient, using standard packages.

You need to create GitHub API token to send issues - see here how.

Usage:

Make file executable and see help:

chmod +x github_create_issue.py
./github_create_issue.py -h

Example

First, export env vars:

export GITHUB_USER=nvtkaszpir
export GITHUB_PASS=<token>
export REPO_OWNER=nvtkaszpir
export REPO_NAME=vagrant-killingfloorstats

Create example issue with title, body and apply two labels:

./github_create_issue.py --title="Test" --body="Hello And Die" -l bug -l jenkins

Contributing

Feel free to fork and pull a request.

About

This small python script allows to create issue in github for given project.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages