{"id":16455309,"url":"https://github.com/cchantep/probot-pr-status-label","last_synced_at":"2025-03-23T10:32:40.195Z","repository":{"id":48313836,"uuid":"182852261","full_name":"cchantep/probot-pr-status-label","owner":"cchantep","description":"🤖 Probot app that sets pull request statuses according labels","archived":false,"fork":false,"pushed_at":"2021-08-02T05:58:30.000Z","size":27770,"stargazers_count":7,"open_issues_count":11,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T19:51:53.836Z","etag":null,"topics":["github-action","probot-app","pull-request","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/pr-status-label","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cchantep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-22T19:16:08.000Z","updated_at":"2021-08-31T19:27:46.000Z","dependencies_parsed_at":"2023-01-11T17:23:04.968Z","dependency_job_id":null,"html_url":"https://github.com/cchantep/probot-pr-status-label","commit_stats":{"total_commits":21,"total_committers":3,"mean_commits":7.0,"dds":0.5714285714285714,"last_synced_commit":"db0e52301c132366a89d0a089c223c1b368fd273"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchantep%2Fprobot-pr-status-label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchantep%2Fprobot-pr-status-label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchantep%2Fprobot-pr-status-label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cchantep%2Fprobot-pr-status-label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cchantep","download_url":"https://codeload.github.com/cchantep/probot-pr-status-label/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245090844,"owners_count":20559296,"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":["github-action","probot-app","pull-request","typescript"],"created_at":"2024-10-11T10:21:55.880Z","updated_at":"2025-03-23T10:32:39.701Z","avatar_url":"https://github.com/cchantep.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pr-status-label\n\nA GitHub App built with [Probot](https://github.com/probot/probot) that sets pull request statuses according labels.\n\n## Usage\n\nAdd a label matching a status expression (see [*Configuration*](#configuration); e.g. ':ok_hand: review:ok').\n\n![Usage](./docs/usage.gif)\n\n### Configuration\n\nOn repository for which the application is installed,\na file named [`pr-status-label.json`](./src/resources/pr-status-label.json) can be defined on the base branches, in a `.github` directory at root. Default:\n\n```json\n{\n  \"requiredStatusRegex\": \"^:[^:]+: ([^:]+):required$\",\n  \"pendingStatusRegex\": \"^:[^:]+: ([^:]+):pending$\",\n  \"successStatusRegex\": \"^:[^:]+: ([^:]+):(?:ok|success)$\",\n  \"errorStatusRegex\": \"^:[^:]+: ([^:]+):(ko|error)$\"\n}\n```\n\n- `requiredStatusRegex\": Detects a label as a required status (like `pending` but before any action).\n- `pendingStatusRegex`: Detects a label as a pending status (e.g. `:eyes: review:pending`).\n- `successStatusRegex`: Detects a label as a success status; Starts with an emoji code, followed after a space by a status (capture group), and finally after a `:` separator either `ok` or `success` (e.g. `:ok_hand: review:ok`).\n- `errorStatusRegex`: Detects a label as an error (e.g. `:flushed: review:ko`)\n\n### GitHub Actions\n\nTo use this bot with [GitHub Actions](https://github.com/features/actions), the following workflow can be defined as `.github/workflows/pr-status-label.yml` in your repository.\n\n```\nname: PR status label\n\non\n  pull_request:\n    types: ['labeled', 'synchronize']\n\njobs:\n  check_pr_milestone:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: cchantep/probot-pr-status-label@ghaction-1.0.x\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Build\n\n```sh\n# Install dependencies\nnpm install\n\n# Run typescript\nnpm run build\n\n# Run the bot\nnpm start\n```\n\n[![CircleCI](https://circleci.com/gh/cchantep/probot-pr-status-label.svg?style=svg)](https://circleci.com/gh/cchantep/probot-pr-status-label)\n\n## Contributing\n\nIf you have suggestions for how pr-status-label could be improved, or want to report a bug, open an issue! We'd love all and any contributions.\n\nFor more, check out the [Contributing Guide](CONTRIBUTING.md).\n\n## License\n\n[ISC](LICENSE) © 2019 [Cédric Chantepie](https://github.com/cchantep/probot-pr-status-label)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcchantep%2Fprobot-pr-status-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcchantep%2Fprobot-pr-status-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcchantep%2Fprobot-pr-status-label/lists"}