Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gh_issues-0.0.3.dev16.tar.gz (12.9 kB view hashes)

Uploaded Source

Built Distribution

gh_issues-0.0.3.dev16-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page