Waiting for actions...
Instructions
What it is:
This utility allows you to fetch standard repository governance files from a centralized source and automatically deploy them to your target repositories via Pull Requests.
How it works:
- The script connects directly to the GitHub REST API from your browser.
- It reads the contents of the
.github and trigger action directories from the main branch of the source repository.
- It replicates the file structure in all specified target repositories.
- It generates a new commit with the fetched files, creates a new branch, and opens a Pull Request for each repository.
Nuances and Requirements:
- Token Scope: The GitHub Personal Access Token (PAT) must have the
repo scope to read the source and write to the target repositories.
- Local Storage: Your token and target repositories list are cached in your browser's local storage for convenience.
- Client-Side Execution: All operations are performed directly between your browser and the GitHub API. No intermediate servers are involved.
- Target Repository State: The target repositories must not be completely empty; they require an initialized default branch to branch off from.