{"id":48007681,"url":"https://github.com/knadh/approve-pr-creation-from-issue","last_synced_at":"2026-04-04T13:25:37.719Z","repository":{"id":339446650,"uuid":"1161914545","full_name":"knadh/approve-pr-creation-from-issue","owner":"knadh","description":"A GitHub Action that forces potential contributors to receive an explicit approval from an Issue discussion before they can raise a PR.","archived":false,"fork":false,"pushed_at":"2026-02-19T18:06:40.000Z","size":244,"stargazers_count":24,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-28T16:43:24.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knadh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-19T17:00:44.000Z","updated_at":"2026-03-19T10:32:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/knadh/approve-pr-creation-from-issue","commit_stats":null,"previous_names":["knadh/approve-pr-creation-from-issue"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/knadh/approve-pr-creation-from-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knadh%2Fapprove-pr-creation-from-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knadh%2Fapprove-pr-creation-from-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knadh%2Fapprove-pr-creation-from-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knadh%2Fapprove-pr-creation-from-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knadh","download_url":"https://codeload.github.com/knadh/approve-pr-creation-from-issue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knadh%2Fapprove-pr-creation-from-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-04T13:25:37.227Z","updated_at":"2026-04-04T13:25:37.709Z","avatar_url":"https://github.com/knadh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Approve PR creation from GitHub Issue\n\nThis is a GitHub workflow Action that enforces PR authors to first open an issue, discuss, and get explicit approval from repo maintainers via an issue comment before opening a PR. The PR must include a reference to that approval comment in the body, otherwise the PR is auto-closed. The goal is to reduce the burden on repo maintainers by preventing unsolicited or undesirable PRs.\n\n## How it works\n\n1. A potential contributor opens an Issue proposing changes. A discussion happens.\n2. A maintainer (with write/admin access) allows creation of a PR by commenting on the issue (e.g., `/pr-welcome @contributor`).\n3. The contributor opens a PR and includes the approval comment URL in the PR body (e.g., `/pr-clearance https://github.com/owner/repo/issues/42#issuecomment-123456`).\n4. The action validates the approval. Any PR that doesn't link to a valid approval is auto-closed.\n\n\n## Config\n\n| Input                       | Default                  | Description                                                                                                 |\n| --------------------------- | ------------------------ | ----------------------------------------------------------------------------------------------------------- |\n| `approval_str`              | `/pr-welcome {user}`     | Approval comment string to look for in the issue comment. Must include `{user}`.                            |\n| `reference_str`             | `/pr-clearance {url}`    | Reference string in PR body pointing to the approval comment. Must include exactly one `{url}` placeholder. |\n| `pr_autoclose_message`      | Built-in message         | Comment posted on the PR on auto-close/rejection.                                                           |\n| `exclude_past_contributors` | `false`                  | Skip checks for users who have previously contributed commits to the repo.                                  |\n| `github_token`              | `${{ github.token }}`    | GitHub token for API calls.                                                                                 |\n| `min_diff_files`            | `0`                      | Min number of changed files in the PR to apply checks. 0 always checks.                                     |\n| `min_diff_lines`            | `0`                      | Min number of changed lines in the PR to apply checks. 0 always checks.                                     |\n\nSee the default values in [actions.yml](https://github.com/knadh/approve-pr-creation-from-issue/blob/master/action.yml)\n\n## Usage\n\n```yaml\nname: Approve PR from Issue\non:\n  pull_request:\n    types: [opened, edited, reopened]\n\npermissions:\n  pull-requests: write\n  issues: read\n\njobs:\n  check-approval:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: knadh/approve-pr-from-issue@v1\n        with:\n          exclude_past_contributors: 'true'\n          # approval_str: ''\n          # reference_str: ''\n          # pr_autoclose_message: ''\n          # min_diff_files: ''\n          # min_diff_lines: ''\n```\n\n## License\nLicensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknadh%2Fapprove-pr-creation-from-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknadh%2Fapprove-pr-creation-from-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknadh%2Fapprove-pr-creation-from-issue/lists"}