{"id":30157511,"url":"https://github.com/supermarsx/autogithubpullmerge","last_synced_at":"2026-05-06T02:31:01.215Z","repository":{"id":307347402,"uuid":"1029183650","full_name":"supermarsx/autogithubpullmerge","owner":"supermarsx","description":"Automatic GitHub Pull Request and Stray-branch Manager","archived":false,"fork":false,"pushed_at":"2025-11-22T23:21:39.000Z","size":19772,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-23T01:11:59.562Z","etag":null,"topics":["api","automatic","automation","bot","branch","commit","git","github","headless","merge","pr","pull-request","repository","repository-management","terminal","tui"],"latest_commit_sha":null,"homepage":"","language":"C++","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/supermarsx.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"roadmap.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"agents.md","dco":null,"cla":null},"funding":{"github":"supermarsx"}},"created_at":"2025-07-30T16:39:50.000Z","updated_at":"2025-11-22T23:21:43.000Z","dependencies_parsed_at":"2025-07-30T20:56:07.564Z","dependency_job_id":"c5671d46-bbfd-4089-bcc3-ab56cc7e8962","html_url":"https://github.com/supermarsx/autogithubpullmerge","commit_stats":null,"previous_names":["supermarsx/autogithubpullmerge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/supermarsx/autogithubpullmerge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supermarsx%2Fautogithubpullmerge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supermarsx%2Fautogithubpullmerge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supermarsx%2Fautogithubpullmerge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supermarsx%2Fautogithubpullmerge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supermarsx","download_url":"https://codeload.github.com/supermarsx/autogithubpullmerge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supermarsx%2Fautogithubpullmerge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32676007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"online","status_checked_at":"2026-05-06T02:00:08.308Z","response_time":117,"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":["api","automatic","automation","bot","branch","commit","git","github","headless","merge","pr","pull-request","repository","repository-management","terminal","tui"],"created_at":"2025-08-11T13:40:31.806Z","updated_at":"2026-05-06T02:31:01.191Z","avatar_url":"https://github.com/supermarsx.png","language":"C++","funding_links":["https://github.com/sponsors/supermarsx"],"categories":[],"sub_categories":[],"readme":"#autogithubpullmerge\n\nA cross-platform tool to manage and monitor GitHub pull requests from a terminal user interface.\n\n## Features\n- Cross-platform build using CMake\n- Linux, macOS and Windows install/build scripts\n- Placeholder TUI application in C++20\n- Includes ncurses/pdcurses fetched with `scripts/update_libs.sh`\n- Requires an ncurses development package (e.g. `libncurses-dev`) for the TUI\n- Unit tests using Catch2\n- SQLite-based history storage with CSV/JSON export\n- Configurable logging with `--log-level`\n- Uses spdlog for colored console logging\n- Cross-platform compile scripts using g++\n- CLI options for GitHub API keys (`--api-key`, `--api-key-from-stream`,\n  `--api-key-url`, `--api-key-url-user`, `--api-key-url-password`,\n  `--api-key-file`)\n\n## Building (Linux)\n```bash\n./scripts/install_linux.sh\n./scripts/update_libs.sh\n./scripts/build_linux.sh\n```\n\n## Building (macOS)\n```bash\n./scripts/install_mac.sh\n./scripts/update_libs.sh\n./scripts/build_mac.sh\n```\n\n## Building (Windows)\n```powershell\n./scripts/install_win.bat\n./scripts/update_libs.bat\n./scripts/build_win.bat\n```\n\n## Compiling with g++\n\nOn systems with g++ available, you can build the project without CMake using the\nprovided scripts:\n\n```bash\n./scripts/compile_linux.sh   # Linux\n./scripts/compile_mac.sh     # macOS\n./scripts/compile_win.bat    # Windows\n```\nRun the matching `install_*` script for your platform first to install system\npackages like **libcurl**, **libpsl**, **sqlite3** and **ncurses**. Then use `update_libs.sh` (or\n`update_libs.bat` on Windows) to populate the `libs` directory with clones of\n**CLI11**, **yaml-cpp**, **libyaml**, **nlohmann/json**, **spdlog**, a prebuilt\n**curl** package, the SQLite amalgamation and **PDCurses** before compiling. The Windows compile\nscript links the application statically so the resulting binary has no runtime\nlibrary dependencies.\n\n## Generating Documentation\n\nThe project uses Doxygen for API documentation. Run the following from the\nrepository root to generate docs in `docs/build`:\n\n```bash\ndoxygen docs/Doxyfile\n```\n\n## Logging\n\nLogging output uses the **spdlog** library with colorized messages by default.\nThe `--log-level` option controls verbosity. Valid levels include\n`trace`, `debug`, `info`, `warn`, `error`, `critical` and `off`.\nPassing `--verbose` sets the logger to the `debug` level unless `--log-level`\nspecifies another level.\n\n## API Key Options\n\nAPI keys can be provided in several ways:\n\n- `--api-key` to specify a token directly (repeatable but not recommended)\n- `--api-key-from-stream` to read tokens from standard input\n- `--api-key-url` to fetch tokens from a remote URL with optional basic auth\n- `--api-key-file` to load tokens from a JSON or YAML file\n\n## Polling Options\n\n- `--poll-interval` sets how often the application polls GitHub for updates in\n  seconds. A value of `0` disables polling.\n- `--max-request-rate` limits the maximum number of GitHub requests per minute\n  using a token bucket algorithm. When polling is enabled a background worker\n  thread periodically invokes the GitHub API.\n- `--pr-limit` limits how many pull requests to fetch when listing.\n- `--pr-since` filters pull requests newer than the given duration\n  (e.g. `30m`, `2h`, `1d`).\n- `--include-merged` lists merged pull requests in addition to open ones (off by default).\n- `--poll-prs` polls only pull requests.\n- `--poll-stray-branches` polls only stray branches.\n- `--auto-reject-dirty` closes stray branches that have diverged.\n- `--purge-branch-prefix` deletes branches with this prefix after their pull\n  request is closed or merged.\n- `--auto-merge` merges pull requests automatically.\n\n## Examples\n\nExample configuration files can be found in the `examples` directory:\n\n- `config.yaml`\n- `config.json`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupermarsx%2Fautogithubpullmerge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupermarsx%2Fautogithubpullmerge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupermarsx%2Fautogithubpullmerge/lists"}