achedon12/regraft
Keep a repo made from a GitHub template up to date with it: graft the template's new commits, and open the pull requests.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | Version of regraft to run (npm semver range, or "latest"). | no | latest |
| from | Start from this template commit instead of the recorded one. | no | — |
| limit | Graft at most this many commits (strategy: single). For a long backlog. | no | — |
| working-directory | Directory to run in, for a repo that is not at the root. | no | . |
| create-pull-request | Open pull requests. Set false to only report drift in the job summary. | no | true |
| strategy | How the pending commits are split into pull requests. single one pull request containing every pending commit per-commit one pull request per template commit, Dependabot-style | no | single |
| open-pull-requests-limit | With strategy=per-commit, the most pull requests to have open at once. | no | 5 |
| branch-prefix | Prefix for the branches this action creates. | no | regraft |
| base | Branch the pull requests target. Defaults to the checked-out branch. | no | — |
| title-prefix | Put in front of every pull request title, e.g. "chore(template): ". | no | "" |
| labels | Comma-separated labels for the pull requests. | no | template-sync |
| reviewers | Comma-separated users or teams to request a review from. | no | — |
| assignees | Comma-separated users to assign. | no | — |
| draft | Open the pull requests as drafts. | no | false |
| auto-merge | Enable auto-merge (squash). Ignored, with a warning, if the repo forbids it. | no | false |
| token | Token used to push branches and open pull requests. | no | ${{ github.token }} |
| git-name | Committer name for the graft commits. | no | github-actions[bot] |
| git-email | Committer email for the graft commits. | no | 41898282+github-actions[bot]@users.noreply.github.com |
Outputs
| name | description |
|---|---|
| behind | Template commits this repo was missing before the run. |
| applied | Commits actually grafted. |
| pull-requests | JSON array of the pull request URLs opened or updated. |
| pull-request-url | The first pull request URL, for the common single-PR case. |