knadh/Approve PR creation from Issue
Mandate PR creation to require an explicit approval comment from a repo maintainer on an Issue discussion
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| approval_str | Approval comment string to look for in the issue comment. Must include `{user}` which is substituted with the PR author's username. | no | /pr-welcome {user} |
| reference_str | Reference string in PR body pointing to the approval comment. Must include exactly one `{url}` placeholder. | no | /pr-clearance {url} |
| pr_autoclose_message | Comment posted on the PR on auto-close/rejection. | no | This PR was automatically closed because the reference to approval (issue) could not be found. Please open an issue first, get clearance from the maintainer, and reference the approval comment URL in your PR body in the format `/pr-clearance {url}`. |
| exclude_past_contributors | Skip checks for users who have previously contributed commits to the repo. | no | false |
| github_token | GitHub token for API calls. | no | ${{ github.token }} |
| min_diff_files | Min number of changed files in the PR to apply checks. 0 always checks. | no | 0 |
| min_diff_lines | Min number of changed lines in the PR to apply checks. 0 always checks. | no | 0 |
Outputs
no outputs