https://github.com/torxed/github-autorun
Approves runners automatically based on conditions and checks
https://github.com/torxed/github-autorun
Last synced: about 2 months ago
JSON representation
Approves runners automatically based on conditions and checks
- Host: GitHub
- URL: https://github.com/torxed/github-autorun
- Owner: Torxed
- License: agpl-3.0
- Created: 2024-05-17T06:36:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-06T15:39:15.000Z (12 months ago)
- Last Synced: 2025-01-25T16:55:19.852Z (4 months ago)
- Language: Python
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-autorun
Approves runners automatically in PR's if `.github/workflows` are untouched.
# Install & Run
1. Log-on to [GitHub](#)
2. Go to `Personal/Repo settings`
3. Go to `Developer Settings`
4. Setup a `Personal access tokens`/`Fine-grained tokens`.
5. Add the token to `github-autorun.toml` and define the repo:
```toml
[github]
access_token = "github_pat_..."
repository = "Torxed/github-autorun"
```
6. Go to `https://github.com///settings/hooks`
7. `Add webhook` with:
- `Payload URL` to where `github-autorun` will listen
- `Content type` set to `application/json`
- Configure a `Secret` that will be configured in `github-autorun.toml`:
```toml
[github]
secret = "..."
```
- Select `Let me select individual events` to not spam the webhook too much:
* `Pull requests`
* `Workflow jobs`After that is done, you should be able to start:
```bash
$ python -m autorun
```