No project description provided
Project description
GH Issues
GH Issues is a wrapper for the GitHub API Issues Endpoint that makes it easy to work with a Github Issue's body as a Python object.
Installation
pip install gh-issues
Usage
from gh_issues import Repo, Issue
repo = Repo(
owner="python-community-news", repo="gh-issues"
)
issue = Issue(repo=repo, issue_number=1)
If the issue text is
# Issue Header
This is some text
the issue would be represented as
issue.issue_header
>>> "This is some text"
Nested Issues
Nested issues are supported. If the issue text is
# Issue Header
This is some text referencing issue #2
You can access the issue referenced by the issue
for issue in Issue.get_content_issues('issue_header'):
print(issue.issue_header)
>>> <Issue - #2: This is the issue #2 Title by @user>
Contributing
Review the Contributing Guidelines for information on how to contribute to this project.
License
This project is licensed under the terms of the MIT License.
Code of Conduct
This project is governed by the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to kjaymiller@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gh_issues-0.0.3.dev16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b266525a3d298ab96f70c3ecf42ce73c1cb45a56e4be6449d6a4b8496acc5a01 |
|
MD5 | ef2ca2a47fa18c9fd7fbe8eaf43ac29d |
|
BLAKE2b-256 | 5c10b6d6fb8620812be38f8495285e2367e958d6224a5a8c6dd901ad6c5ab78b |