{"id":28344421,"url":"https://github.com/ouzi-dev/needs-retitle","last_synced_at":"2026-05-17T11:33:10.040Z","repository":{"id":53064971,"uuid":"276879942","full_name":"ouzi-dev/needs-retitle","owner":"ouzi-dev","description":"needs-retitle is an external plugin for Prow","archived":false,"fork":false,"pushed_at":"2022-08-17T15:51:14.000Z","size":435,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-05T10:41:36.150Z","etag":null,"topics":["kubernetes","needs-retitle","prow","prow-components","prow-plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ouzi-dev.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-07-03T11:06:48.000Z","updated_at":"2022-10-31T13:32:26.000Z","dependencies_parsed_at":"2022-09-11T09:53:13.738Z","dependency_job_id":null,"html_url":"https://github.com/ouzi-dev/needs-retitle","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ouzi-dev/needs-retitle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ouzi-dev%2Fneeds-retitle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ouzi-dev%2Fneeds-retitle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ouzi-dev%2Fneeds-retitle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ouzi-dev%2Fneeds-retitle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ouzi-dev","download_url":"https://codeload.github.com/ouzi-dev/needs-retitle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ouzi-dev%2Fneeds-retitle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33136746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["kubernetes","needs-retitle","prow","prow-components","prow-plugin"],"created_at":"2025-05-27T10:20:49.532Z","updated_at":"2026-05-17T11:33:10.035Z","avatar_url":"https://github.com/ouzi-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# needs-retitle \u003c!-- omit in toc --\u003e\n\n- [Overview](#overview)\n- [Configuration](#configuration)\n- [Build](#build)\n- [Deploy](#deploy)\n\n## Overview\n\n`needs-retitle` is an external plugin for [prow](https://github.com/kubernetes/test-infra/tree/master/prow) to avoid merging PRs when the title doesn't match a provided regular expression.\n\nIt is based on the [needs-rebase](https://github.com/kubernetes/test-infra/tree/master/prow/external-plugins/needs-rebase) plugin, so the code is more or less the same.\n\nThe plugin will check pull requests in the enabled repos and will add a tag `needs-retitle` to the pull requests whose titles don't match the provided regular expression.\n\nThe plugin will run every time a pull request is created, edited or new commits are added. It will also run periodically checking open pull requests.\n\n## Configuration\n\nYou'll need to add new things to your prow `plugins.yaml` file:\n\n* The plugin configuration: you need to provide a regular expression (**required**), and an optional error message. The message will be added as a comment when the plugin detects a pull request with a title that doesn't match the regular expression. If no error message is provided the plugin will add a default message. Example:\n\n    ```\n    needs_retitle:\n      regexp: \"^(fix:|feat:|major:).*$\"\n      error_message: |\n        Invalid title for the PR, the title needs to be like:\n\n        fix: this is a fix commit\n        feat: this is a feature commit\n        major: this is a major commit\n    ```\n\n* The settings to enable it as external plugin for prow, for example:\n\n  ```\n  external_plugins:\n    org-foo/repo-bar:\n    - name: needs-retitle\n      # No endpoint specified implies \"http://{{name}}\".\n      events:\n      - pull_request\n      # Dispatching issue_comment events to the needs-retitle plugin is optional. If enabled, this may cost up to two token per comment on a PR. If `ghproxy`\n      # is in use, these two tokens are only needed if the PR or its mergeability changed.\n      - issue_comment\n  ```\n\n* Add the new label to `missingLabels` in the tide settings (in prow usually in `config.yaml`), that way the label `needs-retitle` will stop tide from merging the pull requests, example:\n\n  ```\n  tide:\n    sync_period: 1m\n    merge_method:\n      my-org: squash\n    pr_status_base_urls:\n      \"*\": https://prow.my-host.com/pr\n    blocker_label: tide/merge-blocker\n    squash_label: tide/merge-method-squash\n    rebase_label: tide/merge-method-rebase\n    merge_label: tide/merge-method-merge\n    context_options:\n      from-branch-protection: true\n      skip-unknown-contexts: false\n    queries:\n      - orgs:\n          - my-org\n        labels:\n          - lgtm\n          - approved\n        missingLabels:\n          - do-not-merge\n          - do-not-merge/hold\n          - do-not-merge/work-in-progress\n          - needs-rebase\n          - do-not-merge/invalid-owners-file\n          - needs-retitle\n  ```\n\n## Build \n\n* To make just the binary run: `make build`\n* To build an specific version run: `VERSION=v0.1.0 make build`\n* To run the tests run: `make test`\n* To build the docker image run: `make docker-build`\n\n## Deploy\n\nYou can find manifest to use as example to deploy the plugin in [deploy](./deploy)\n\n__Remember to change the version, the manifests are using as version `canary`__","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fouzi-dev%2Fneeds-retitle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fouzi-dev%2Fneeds-retitle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fouzi-dev%2Fneeds-retitle/lists"}