Skip to main content

Command line tool to use Github API to automate some works.

Project description

githubot

Command line tool to use Github's API to automate some works:

  • create release with assets
  • TODO

Installation

pip install githubot

Usage

Usage: run.py [OPTIONS] [ASSETS]...

Options:
  --token TEXT      Github access token  [required]
  -r, --repo TEXT   Repo full name like: <owner>/<repo>  [required]
  -t, --tag TEXT    Tag name for the release. If the tag does not
                    exist it will be created on default branch.  [required]
  --title TEXT      Title for the release
  --message TEXT    Message for the release
  --assets PATH...  Files to be uploaded as assets.
  --help            Show this message and exit.

For example:

githubot \
--token <my_github_token> \
--repo Wqyjh/test \
-t test_tag \
--title "This is an test title" \
--message "This release contains xxx" \
--assets assets/*

Only regular files are supported for the --assets option, directories are not supported. You can specify files in the following manner:

--assets file1 file2
--assets path/*

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

githubot-0.1.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

githubot-0.1.0-py3-none-any.whl (3.7 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