{"id":21273274,"url":"https://github.com/sclorg/auto-merger","last_synced_at":"2026-03-11T21:36:58.003Z","repository":{"id":258563864,"uuid":"868904128","full_name":"sclorg/auto-merger","owner":"sclorg","description":"The project checks pull request and automatically merges commits","archived":false,"fork":false,"pushed_at":"2025-06-12T10:59:37.000Z","size":151,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-12T11:55:06.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/sclorg.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,"zenodo":null}},"created_at":"2024-10-07T11:42:39.000Z","updated_at":"2025-06-12T10:59:41.000Z","dependencies_parsed_at":"2024-10-19T15:30:14.431Z","dependency_job_id":"608bdc19-b71d-4f1c-9b2f-2e0c570ad9ea","html_url":"https://github.com/sclorg/auto-merger","commit_stats":null,"previous_names":["sclorg/auto-merger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sclorg/auto-merger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fauto-merger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fauto-merger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fauto-merger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fauto-merger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sclorg","download_url":"https://codeload.github.com/sclorg/auto-merger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fauto-merger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017784,"owners_count":26086145,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-21T09:13:16.921Z","updated_at":"2025-10-14T03:46:00.482Z","avatar_url":"https://github.com/sclorg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## auto-merger\n\nThe auto-merger is tool for analysis pull request and provide feedback maintainers\nwhat is missing in each pull request. User can specify in `.automerger.yaml` configuration file\nwhat labels block the pull request for merging.\n\nThe auto-merger does not count pull request that are marked as `Draft`\n\nThe auto-merger provides two options, that are described below.\n\nBefore running `auto-merger` you have to export GH_TOKEN, that is mandatory for command `gh` that\nis used for work in GitHub.\n\n# Configuration file\n\nThe configuration file should be present in `$HOME` directory where the automerger is running.\n\nThe full example configuration file looks like:\n\n```yaml\ngithub:\n  namespace: \"sclorg\"\n  repos:\n    - valkey-container\n  # How many approvals should have PR - default is 2\n  approvals: 2\n  # How many days, PR should be opened - default is 1 day\n  pr_lifetime: 1\n  # Labels that blockes merges\n  blocker_labels:\n    - \"pr/failing-ci\"\n    - \"pr/missing-review\"\n  # Labels that should be present in pull request before merging\n  approval_labels:\n    - \"READY-to-MERGE\"\n```\nwhere keys mean:\n* `github` - specifies everything related to https://github.com/ pull request.\n* `namespace` - specifies `namespace` in https://github.com where the pull requests will be analysed\n* `repos` - specifies repositories that will be used for analysis\n* `approvals` - how many approvals do you need before merging. Default is `2`\n* `pr_lifetime` - how many `days` corresponding pull request should be opened. Default is `1`\n* `blocker_labels` - specifies GitHub labels, that blocks pull request against merging\n* `approval_labels` - specifies GitHub labels, that allows pull request merging\n\n# Pull Request checker\n\nThis option is used for analysation pull request in the specific namespace and repositories mentioned\nin configuration file. At the end `auto-merger` provides the output into command line.\n\n```bash\n$ auto-merger pr-checker --help\nUsage: auto-merger pr-checker [OPTIONS]\n\nOptions:\n  --send-email TEXT  Specify email addresses to which the mail will be sent.\n  --help             Show this message and exit.\n\n```\n\nThe real output from `auto-merger pr-checker` could be:\n```bash\ns2i-ruby-container\n------\n\nhttps://github.com/sclorg/s2i-ruby-container/pull/570 pr/missing-review pr/failing-ci\nhttps://github.com/sclorg/s2i-ruby-container/pull/569 dependencies ruby pr/missing-review\n\ns2i-nodejs-container\n------\n\nhttps://github.com/sclorg/s2i-nodejs-container/pull/463 pr/missing-review pr/failing-ci\nhttps://github.com/sclorg/s2i-nodejs-container/pull/236 pr/missing-review\n\n\nPull requests that can be merged or missing 2 approvals\nhttps://github.com/sclorg/s2i-python-container/pull/574 - Missing 2 APPROVAL\n```\n\nIn case user specifies `--send-email`, multipletimes, and the system where is auto-merger running\nthe email service is configured, then the results are send to corresponding emails.\n\n# Automatic pull request merger\n\nThis option is used for analyzation pull request in the specific namespace and repositories mentioned\nin configuration file. At the end `auto-merger` provides the output into command line.\n\n```bash\n$ auto-merger merger --help\nUsage: auto-merger merger [OPTIONS]\n\nOptions:\n  --send-email TEXT  Specify email addresses to which the mail will be sent.\n  --help             Show this message and exit.\n\n```\n\nThe real output from `auto-merger merger` could be:\n```bash\nSUMMARY\nhttps://github.com/sclorg/mariadb-container/pull/262 -\u003e CAN BE MERGED\nLet's try to merge 262....\n\n```\n\nIn case user specifies `--send-email`, multipletimes, and the system where is auto-merger running\nthe email service is configured, then the results are send to corresponding emails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fauto-merger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsclorg%2Fauto-merger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fauto-merger/lists"}