Skip to content

This python module enables you to automate basic GitHub tasks with python3. You need an SSH key and auth application token.

License

Notifications You must be signed in to change notification settings

linaro-marketing/github_automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github_automation

The GitHubManager class allows you to automate basic GitHub tasks, like creating a pull request. This was written for the ConnectAutomation project. See the ConnectAutomation Docker container repo here.

Getting Started

Clone this repo and cd into the directory you've cloned it to. Setup a Python virtualenv using:

$ virtualenv -p python3 venv
$ source venv/bin/activate

Install the requirements:

$ pip install -r requirements.txt

Currently pip doesn't support freezing a module that has been installed from a GitHub repo. So if using the Linaro Vault, you will have to manually install the vault_auth module using:

$ pip install git+https://github.com/linaro-its/vault_auth.git

Modify the examples/test.py with your parameters:

ghm = GitHubManager(
            "https://github.com/linaro/connect", path_to_working_directory, app_directory, full_path_to_ssh_key, auth_token, github_reviewers)

Now run the example with:

python examples/test.py

For a more detailed example please the implementation in the ConnectAutomation container: ConnectAutomation.

About

This python module enables you to automate basic GitHub tasks with python3. You need an SSH key and auth application token.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages