{"id":15896743,"url":"https://github.com/msutkowski/action-pr-title","last_synced_at":"2026-01-20T20:33:45.975Z","repository":{"id":57287213,"uuid":"526963596","full_name":"msutkowski/action-pr-title","owner":"msutkowski","description":"GitHub Action to enforce PR titles with regex","archived":false,"fork":false,"pushed_at":"2023-03-07T11:07:17.000Z","size":834,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T06:58:33.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/msutkowski.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-20T15:21:40.000Z","updated_at":"2023-03-09T02:53:01.000Z","dependencies_parsed_at":"2024-10-27T16:19:36.065Z","dependency_job_id":null,"html_url":"https://github.com/msutkowski/action-pr-title","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"94ce7b43c14d00fca8594a4b55f82455947d293d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/msutkowski/action-pr-title","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Faction-pr-title","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Faction-pr-title/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Faction-pr-title/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Faction-pr-title/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msutkowski","download_url":"https://codeload.github.com/msutkowski/action-pr-title/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Faction-pr-title/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28612973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2024-10-06T09:22:06.252Z","updated_at":"2026-01-20T20:33:45.959Z","avatar_url":"https://github.com/msutkowski.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Usage\n\n```yaml\nsteps:\n  - uses: msutkowski/action-pr-title@v1\n    with:\n      regex: '([a-z])+\\/([a-z])+' # Regex to test the PR title against\n      max_length: 20 # Max length of the title\n      hint: 'PR titles should match a format like: fix: [ABC-1234] some description' # A hint for the desired format\n      github_token: ${{ github.token }} # Default: ${{ github.token }}\n```\n\n### Note:\n\nEnsure to add `types` to the Pull requests webhook event as by default workflows are triggered only\nfor `opened`, `synchronize`, or `reopened` pull request events. Read more about\nit [here](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request).\n\n```yaml\nname: PR title check\n\non:\n  pull_request:\n    types: [opened, edited, synchronize, reopened]\n\njobs:\n  check_title:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Enforce PR naming convention\n        uses: msutkowski/action-pr-title@v1\n        with:\n          regex: '^(fix|feat|chore|(fix|feat|chore)\\(\\w.*\\)):\\s(\\[\\w{1,8}-\\d{1,8}\\]|.*).*'\n          hint: |\n            You can pass the following formats:\n\n            fix: [OR-123] some title of the PR\n            fix(scope): [OR-123] some title of the PR\n            feat: [OR-1234] some title of the PR\n            chore: update some action\n```\n\n## Code in Main\n\n\u003e First, you'll need to have a reasonably modern version of `node` handy. This won't work with versions older than 9, for instance.\n\nInstall the dependencies\n\n```bash\n$ npm install\n```\n\nBuild the typescript and package it for distribution\n\n```bash\n$ npm run build \u0026\u0026 npm run package\n```\n\n...\n\n````\n\nSee the [toolkit documentation](https://github.com/actions/toolkit/blob/master/README.md#packages) for the various packages.\n\n## Publish to a distribution branch\n\nActions are run from GitHub repos so we will checkin the packed dist folder.\n\nThen run [ncc](https://github.com/zeit/ncc) and push the results:\n\n```bash\n$ npm run package\n$ git add dist\n$ git commit -a -m \"prod dependencies\"\n$ git push origin releases/v1\n````\n\nNote: We recommend using the `--license` option for ncc, which will create a license file for all of the production node modules used in your project.\n\nYour action is now published! :rocket:\n\nSee the [versioning documentation](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md)\n\n## Usage:\n\nAfter testing you can [create a v1 tag](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md) to reference the stable and latest V1 action\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsutkowski%2Faction-pr-title","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsutkowski%2Faction-pr-title","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsutkowski%2Faction-pr-title/lists"}