{"id":20942545,"url":"https://github.com/wow-actions/pr-triage","last_synced_at":"2025-05-13T23:33:09.139Z","repository":{"id":38836092,"uuid":"315810758","full_name":"wow-actions/pr-triage","owner":"wow-actions","description":"🏷️ Automatically labelling PR depending on the PR's status","archived":false,"fork":false,"pushed_at":"2022-12-16T07:56:23.000Z","size":466,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T19:08:29.622Z","etag":null,"topics":["actions","github-actions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/wow-actions.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}},"created_at":"2020-11-25T02:48:02.000Z","updated_at":"2025-04-14T17:52:20.000Z","dependencies_parsed_at":"2023-01-29T11:16:28.936Z","dependency_job_id":null,"html_url":"https://github.com/wow-actions/pr-triage","commit_stats":{"total_commits":43,"total_committers":5,"mean_commits":8.6,"dds":"0.32558139534883723","last_synced_commit":"0e9ee3b09d8f3b85c6cf3413f37df77fe41d7dda"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wow-actions%2Fpr-triage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wow-actions%2Fpr-triage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wow-actions%2Fpr-triage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wow-actions%2Fpr-triage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wow-actions","download_url":"https://codeload.github.com/wow-actions/pr-triage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043218,"owners_count":22004912,"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":["actions","github-actions"],"created_at":"2024-11-18T23:28:07.381Z","updated_at":"2025-05-13T23:33:04.116Z","avatar_url":"https://github.com/wow-actions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ePull Request Triage\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/wow-actions/pr-triage/actions/workflows/release.yml\"\u003e\u003cimg alt=\"build\" src=\"https://img.shields.io/github/actions/workflow/status/wow-actions/pr-triage/release.yml?branch=master\u0026logo=github\u0026style=flat-square\" \u003e\u003c/a\u003e\n  \u003ca href=\"/wow-actions/pr-triage/blob/master/LICENSE\"\u003e\u003cimg alt=\"MIT License\" src=\"https://img.shields.io/github/license/wow-actions/pr-triage?style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.typescriptlang.org\" rel=\"nofollow\"\u003e\u003cimg alt=\"Language\" src=\"https://img.shields.io/badge/language-TypeScript-blue.svg?style=flat-square\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/wow-actions/pr-triage/pulls\"\u003e\u003cimg alt=\"PRs Welcome\" src=\"https://img.shields.io/badge/PRs-Welcome-brightgreen.svg?style=flat-square\" \u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/marketplace/actions/pr-triage\" rel=\"nofollow\"\u003e\u003cimg alt=\"website\" src=\"https://img.shields.io/static/v1?label=\u0026labelColor=505050\u0026message=Marketplace\u0026color=0076D6\u0026style=flat-square\u0026logo=google-chrome\u0026logoColor=0076D6\" \u003e\u003c/a\u003e\n  \u003ca href=\"https://lgtm.com/projects/g/wow-actions/pr-triage/context:javascript\" rel=\"nofollow\"\u003e\u003cimg alt=\"Language grade: JavaScript\" src=\"https://img.shields.io/lgtm/grade/javascript/g/wow-actions/pr-triage.svg?logo=lgtm\u0026style=flat-square\" \u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eAutomatically labelling PR depending on the PR's status\u003c/strong\u003e\n\u003c/p\u003e\n\n\n\n\n\n## Usage\n\nStep 1. Create a `.github/workflows/pr-triage-dummy.yml` file in you repository.\n\n\u003e Github actions can not access secrets in `pull_request_review` event, so we need to create a dryrun workflow to triggers a `workflow_run`. Then we can process the event in Step 2.\n\u003e\n\u003e @see [How to use secret in pull_request_review similar to pull_request_target?](https://stackoverflow.com/questions/67247752/how-to-use-secret-in-pull-request-review-similar-to-pull-request-target)\n\n```yml\nname: PR Triage Dummy\non:\n  pull_request_review:\n    types: [submitted, dismissed]\njobs:\n  dummy:\n    runs-on: ubuntu-latest\n    steps:\n      - run: echo \"this is a dummy workflow that triggers a workflow_run; it's necessary because otherwise the repo secrets will not be in scope for externally forked pull requests\"\n```\n\nStep 2. Create a `.github/workflows/pr-triage.yml` file in you repository.\n\n```yml\nname: PR Triage\non:\n  pull_request_target:\n    types: [opened, closed, edited, reopened, synchronize, ready_for_review]\n  workflow_run:\n    workflows: ['PR Triage Dummy'] # the workflow in step 1\n    types: [requested]\njobs:\n  triage:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: wow-actions/pr-triage@v1\n        with:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN  }}\n          WORKFLOW_ID: ${{ github.event.workflow_run.id }}\n```\n\n## How it works\n\n![workflow](screenshots/workflow.png)\n\nOnly watching the most recent commit :eyes::\n\n- Do nothing when the PR's title starts from `WIP`, `[WIP]` or `WIP:`.\n- Add the `PR: unreviewed` label when the PR does not have any reviews.\n- Add the `PR: reviewed-changes-requested` label when the PR has reviewed and got `Change request` event.\n- Add the `PR: review-approved` label when the PR has reviewed and got `Approve` event.\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwow-actions%2Fpr-triage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwow-actions%2Fpr-triage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwow-actions%2Fpr-triage/lists"}