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 Source

hacktoberfest_issue_label-0.1.0-py3-none-any.whl (3.1 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