https://github.com/nvtkaszpir/python-github-create-issue
This small python script allows to create issue in github for given project.
https://github.com/nvtkaszpir/python-github-create-issue
github issue-tracker issues pull-requests python python-script
Last synced: 3 months ago
JSON representation
This small python script allows to create issue in github for given project.
- Host: GitHub
- URL: https://github.com/nvtkaszpir/python-github-create-issue
- Owner: nvtkaszpir
- License: gpl-3.0
- Created: 2017-08-02T07:07:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T05:26:46.000Z (over 7 years ago)
- Last Synced: 2025-03-03T05:30:00.535Z (about 1 year ago)
- Topics: github, issue-tracker, issues, pull-requests, python, python-script
- Language: Python
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
This small python script allows to create issue in GitHub for given project.
Why?
- [PyGithub](https://github.com/PyGithub/PyGithub) is sometimes an overkill
- [Jenkins Github Issues](https://wiki.jenkins.io/display/JENKINS/GitHub+Issues+Plugin) 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](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) how.
# Usage:
Make file executable and see help:
```bash
chmod +x github_create_issue.py
./github_create_issue.py -h
```
# Example
First, export env vars:
```bash
export GITHUB_USER=nvtkaszpir
export GITHUB_PASS=
export REPO_OWNER=nvtkaszpir
export REPO_NAME=vagrant-killingfloorstats
```
Create example issue with title, body and apply two labels:
```bash
./github_create_issue.py --title="Test" --body="Hello And Die" -l bug -l jenkins
```
# Contributing
Feel free to fork and pull a request.