Skip to main content
https://travis-ci.org/jacquerie/github-file.svg?branch=master https://coveralls.io/repos/github/jacquerie/github-file/badge.svg?branch=master

About

Configure your GitHub repository from a file, without having to click around in the UI.

Install

github-file is on PyPI, so all you have to do is:

$ pip install github-file

Usage

First, you will need to provide your GitHub credentials through the environment. Since github-file uses python-dotenv you can do so by creating a .env file with the following contents:

GITHUB_USER=your_username
GITHUB_PASS=your_password

Next, you will need to create a valid Githubfile. Here’s an example of one:

[core]
owner = jacquerie
repo = github-file
description = Configure your GitHub repository from a file,
    without having to click around in the UI.
topics = github, configuration, file

[features]
has_issues = true
has_projects = false
has_wiki = false

[merges]
allow_squash_merge = false
allow_merge_commit = false
allow_rebase_merge = true

The meaning of these options is explained in GitHub’s API documentation, although not all the options are currently supported (in particular you currently can’t archive the repository or configure the default branch.)

Finally, running

$ github-file update -f Githubfile

will update the configuration of your GitHub repository so that it matches what is described in the file. Note that if you don’t provide a filename it will look by default in .github/Githubfile.

Author

Jacopo Notarstefano (@Jaconotar)

License

MIT

Release files for github-file 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for github-file 0.5.2
File Size Uploaded
github-file-0.5.2.tar.gz 4.3 kB Details

Release files / github-file-0.5.2.tar.gz

Download URL github-file-0.5.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
22dcb17c4c9a76c6b781e9ee92029bdc4a79368e1c1ff252a80aedb85a03346d
BLAKE2b-256 checksum
How to use checksums
cc487b7614d57275083ec9f4a1e3a8288d6f72fbbb3b42ff477698a65d4dbe5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

Release history Release notifications | RSS feed

This release

0.5.2 This release

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page