{"id":18036086,"url":"https://github.com/kjuly/close-pr-from-issue","last_synced_at":"2025-04-04T23:26:11.023Z","repository":{"id":244606557,"uuid":"806569653","full_name":"Kjuly/close-pr-from-issue","owner":"Kjuly","description":"Github Action to close the PR when the related issue is closed.","archived":false,"fork":false,"pushed_at":"2024-06-16T01:48:25.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T08:13:11.607Z","etag":null,"topics":["auto-close","ci","github-action","issue","pull-request","workflow"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Kjuly.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}},"created_at":"2024-05-27T12:57:22.000Z","updated_at":"2024-06-16T01:45:16.000Z","dependencies_parsed_at":"2024-06-16T02:58:28.486Z","dependency_job_id":"80c5dfa6-dd5b-47de-aa82-5c25d5c78b97","html_url":"https://github.com/Kjuly/close-pr-from-issue","commit_stats":null,"previous_names":["kjuly/close-pr-from-issue"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Fclose-pr-from-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Fclose-pr-from-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Fclose-pr-from-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Fclose-pr-from-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kjuly","download_url":"https://codeload.github.com/Kjuly/close-pr-from-issue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247264274,"owners_count":20910562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["auto-close","ci","github-action","issue","pull-request","workflow"],"created_at":"2024-10-30T12:11:31.899Z","updated_at":"2025-04-04T23:26:10.999Z","avatar_url":"https://github.com/Kjuly.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# close-pr-from-issue\nGithub Action to close the PR when the related issue is closed.\n\n## Usage\n\n```yaml\non:\n  issues:\n    types: [closed]\n\n# See the \"Workflow Permissions\" section below for details.\npermissions:\n  contents: write\n  issues: write\n  pull-requests: write\n\njobs:\n  close-pr-from-issue:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Close PR from Issue\n        uses: kjuly/close-pr-from-issue@main\n```\n\n## Optional Inputs\n\n| Options (with) | Default | Description\n| :--- | :--- | :--- |\n| issue_comment_key | 'tracked at PR #' | The key string of relevant comments that mention the PR.\n| delete_branch | 'true' | Whether to delete the branch after closing, default: 'true'.\n| leave_comment_on_issue | 'true' | Whether to comment on the issue after the relevant PR is closed.\n| skip_checkout | 'false' | Whether caller workflow repo checkout should be skipped. If you've done this in the caller workflow, set this to 'true' to skip duplicate work.\n| token | ${{github.token}} | Github token or PAT. Only required if you need to access a private repo under the same user/org scope.\n\n## Workflow Permissions\n\n| Scope | Permission | Description\n| :--- | :--- | :---\n| contents | read | Checkout the repo.\n| contents | write | Delete the branch to merge, required when `delete_branch = 'true'`.\n| issues | write | Leave a comment on the issue, required when `leave_comment_on_issue = 'true'`.\n| pull-requests | write | Close PR, required.\n\nPermissions setting is only needed if your repo has restricted permissions on the `GITHUB_TOKEN`.\n\nYou can confirm your repo's workflow permissions in \n\n\u003e Settings \u003e Code and automation \u003e Actions \u003e General \u003e Workflow permissions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjuly%2Fclose-pr-from-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkjuly%2Fclose-pr-from-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjuly%2Fclose-pr-from-issue/lists"}