This application is designed to manage the files inside your github repository from a source of truth repository.
A good usecase for this is if you want a standardised TESTING.md file across all you repos labeled cookbook you can put that file in a source repo and this script will open pull requests on any repository which does not conform to the standard.
Github has a rate limiter, do not run this script continously you will get rate limited and then the script will fail
Below are a list of variables, what they mean and example values
| Name | Type | Required | Description |
|---|---|---|---|
| GITHUB_TOKEN | String | Yes | Token to access the github api with, see Creating a token |
| GFM_SOURCE_REPO_OWNER | String | Yes | The Owner of the repository whoch holds the standardised files |
| GFM_SOURCE_REPO_NAME | String | Yes | The name of the repository which holds the standardised files |
| GFM_SOURCE_REPO_PATH | String | Yes | The folder inside the Source Repo to find the files you wish to have standardised |
| GFM_DESTINATION_REPO_OWNER | String | Yes | The owner of the destination repositories you wish to update |
| GFM_DESTINATION_REPO_TOPICS | String | Yes | The topics that the destination repositories are tagged with to search for, Takes a csv, eg: chef-cookbook,vscode |
| GFM_BRANCH_NAME | String | Yes | The name of the branch to create if changes are required |
| GFM_PULL_REQUEST_TITLE | String | Yes | The title to apply to the Pull Request |
| GFM_PULL_REQUEST_BODY | String | Yes | The body text to apply to the Pull Request |
| GFM_PULL_REQUEST_LABELS | String | No | The labels to apply to the Pull Request, Takes a csv, eg: tech-debt,automated |
| GFM_GIT_NAME | String | No | The Name to use when creating the git commits |
| GFM_GIT_EMAIL | String | No | The E-mail address to use when creating the git commits |
We use the GITHUB_TOKEN environment variable to also authenticate against git, github allows this to be used instead of username and password
Content type
Image
Digest
sha256:3a20899bf…
Size
173.3 MB
Last updated
over 3 years ago
docker pull xorima/github-file-manager