Skip to main content

Add Hacktoberfest issue label on Github

Project description

Hacktoberfest Label

Add Hacktoberfest to Github issues

By default, this script will add the issue label Hacktoberfest to any issue with the label good first issue on https://github.com/conan-io/conan. However, you can customize the repository and issue label by arguments.

Usage

usage: hacktoberfest.py [-h] [--token TOKEN] [--repository REPOSITORY] [--issue ISSUE] [--label LABEL]

Apply Hacktoberfest label to Github issues.

optional arguments:
  -h, --help            show this help message and exit
  --token TOKEN         Github API Token
  --repository REPOSITORY
                        Github organization/repository name
  --issue ISSUE, -i ISSUE
                        Update only one Github issue
  --label LABEL, -l LABEL
                        Update ALL issues based on label name

Authentication

The script consumes the developer tokens for authentication. It can be passed by the argument --token, or by the environment variable GITHUB_OAUTH_TOKEN.

Examples

  • Add Hacktoberfest issue label to https://github.com/conan-io/conan, to all issues with good first issue (Default behavior)

    python hacktoberfest.py

  • Add Hacktoberfest issue label to https://github.com/foo/bar issue #5

    python hacktoberfest.py --repository=foo/bar --issue=5

  • Add 'Hacktoberfest' issue label to issue label to all issues with bug

    python hacktoberfest.py --label=bug

LICENSE

MIT

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

hacktoberfest_issue_label-0.1.0.tar.gz (3.6 kB view hashes)

Uploaded source

Built Distributions

hacktoberfest_issue_label-0.1.0-py3.8.egg (2.0 kB view hashes)

Uploaded 3 8

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page