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 repository via a Pull Request.
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 your target repository.
- It generates a new commit with the fetched files, creates a new branch, and opens a Pull Request with predefined descriptions and formatting.
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 repository.
- Local Storage: Your token and target repository name are cached in your browser's local storage for convenience. Clear your browser data to remove them.
- 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 repository must not be completely empty; it requires an initialized default branch to branch off from.