{"id":28487863,"url":"https://github.com/rios0rios0/autobump","last_synced_at":"2026-05-23T02:04:36.380Z","repository":{"id":169513930,"uuid":"645501990","full_name":"rios0rios0/autobump","owner":"rios0rios0","description":"Automatically update CHANGELOG.md according to the Keep a Changelog (version 1.1.0) standard and the Semantic Versioning (version 2.0.0) standard, commit the changes, push the commits, and create a merge request on GitLab.","archived":false,"fork":false,"pushed_at":"2026-05-18T08:33:41.000Z","size":740,"stargazers_count":16,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-05-18T10:38:09.455Z","etag":null,"topics":["automation","changelog-management","golang","semantic-versioning"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rios0rios0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"rios0rios0"}},"created_at":"2023-05-25T19:56:00.000Z","updated_at":"2026-05-09T14:19:04.000Z","dependencies_parsed_at":"2023-10-16T12:51:55.656Z","dependency_job_id":"54b084cb-9fe0-4cdf-a4c8-615db0249381","html_url":"https://github.com/rios0rios0/autobump","commit_stats":null,"previous_names":["rios0rios0/autobump"],"tags_count":60,"template":false,"template_full_name":null,"purl":"pkg:github/rios0rios0/autobump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rios0rios0%2Fautobump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rios0rios0%2Fautobump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rios0rios0%2Fautobump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rios0rios0%2Fautobump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rios0rios0","download_url":"https://codeload.github.com/rios0rios0/autobump/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rios0rios0%2Fautobump/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33379721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T01:21:08.577Z","status":"online","status_checked_at":"2026-05-23T02:00:05.530Z","response_time":53,"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":["automation","changelog-management","golang","semantic-versioning"],"created_at":"2025-06-08T05:08:06.438Z","updated_at":"2026-05-23T02:04:31.370Z","avatar_url":"https://github.com/rios0rios0.png","language":"Go","funding_links":["https://github.com/sponsors/rios0rios0"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eAutoBump\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/rios0rios0/autobump/releases/latest\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/release/rios0rios0/autobump.svg?style=for-the-badge\u0026logo=github\" alt=\"Latest Release\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/rios0rios0/autobump/blob/main/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/rios0rios0/autobump.svg?style=for-the-badge\u0026logo=github\" alt=\"License\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/rios0rios0/autobump/actions/workflows/default.yaml\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/rios0rios0/autobump/default.yaml?branch=main\u0026style=for-the-badge\u0026logo=github\" alt=\"Build Status\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://sonarcloud.io/summary/overall?id=rios0rios0_autobump\"\u003e\n        \u003cimg src=\"https://img.shields.io/sonar/coverage/rios0rios0_autobump?server=https%3A%2F%2Fsonarcloud.io\u0026style=for-the-badge\u0026logo=sonarqubecloud\" alt=\"Coverage\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://sonarcloud.io/summary/overall?id=rios0rios0_autobump\"\u003e\n        \u003cimg src=\"https://img.shields.io/sonar/quality_gate/rios0rios0_autobump?server=https%3A%2F%2Fsonarcloud.io\u0026style=for-the-badge\u0026logo=sonarqubecloud\" alt=\"Quality Gate\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.bestpractices.dev/projects/12020\"\u003e\n        \u003cimg src=\"https://img.shields.io/cii/level/12020?style=for-the-badge\u0026logo=opensourceinitiative\" alt=\"OpenSSF Best Practices\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nAutomatically update CHANGELOG.md according to the [Keep a Changelog (version 1.1.0)](https://keepachangelog.com/en/1.1.0/) standard and the [Semantic Versioning (version 2.0.0)](https://semver.org/spec/v2.0.0.html) standard,\ncommit the changes, push the commits, and create a merge request/pull request on GitLab, Azure DevOps, or GitHub.\n\n## Supported Languages\n\nAutoBump supports automatic language detection and version updates for:\n\n- **Go**: Detects via `go.mod`; versions managed through git tags (no version file)\n- **Java**: Detects via `build.gradle`, `pom.xml`, updates `build.gradle` and `application.yaml`\n- **Python**: Detects via `pyproject.toml`, `setup.py`, updates `__init__.py`\n- **Terraform**: Detects via `*.tf`, `versions.tf`; versions managed through git tags (no version file)\n- **TypeScript**: Detects via `package.json`, `tsconfig.json`, updates `package.json`\n- **C#**: Detects via `*.sln`, `*.csproj`, updates project files\n\n## Installation\n\n### Quick Install (Recommended)\n\nInstall `autobump` with a single command:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/rios0rios0/autobump/main/install.sh | sh\n```\n\nOr using wget:\n\n```bash\nwget -qO- https://raw.githubusercontent.com/rios0rios0/autobump/main/install.sh | sh\n```\n\n#### Installation Options\n\n```bash\n# Install specific version\ncurl -fsSL https://raw.githubusercontent.com/rios0rios0/autobump/main/install.sh | sh -s -- --version v1.0.0\n\n# Install to custom directory\ncurl -fsSL https://raw.githubusercontent.com/rios0rios0/autobump/main/install.sh | sh -s -- --install-dir /usr/local/bin\n\n# Show what would be installed without doing it\ncurl -fsSL https://raw.githubusercontent.com/rios0rios0/autobump/main/install.sh | sh -s -- --dry-run\n\n# Force reinstallation\ncurl -fsSL https://raw.githubusercontent.com/rios0rios0/autobump/main/install.sh | sh -s -- --force\n```\n\n### Download Pre-built Binaries\n\nDownload pre-built binaries from the [releases page](https://github.com/rios0rios0/autobump/releases).\n\n## Configuration\n\nCreate a configuration file based on the example from `configs/autobump.yaml` and put it in `~/.config/autobump.yaml`.\nYou will need to configure at least one access token depending on which Git platform you use:\n\n- **GitLab**: Set `gitlab_access_token` field with your GitLab personal access token (e.g., `glpat-TOKEN`)\n- **Azure DevOps**: Set `azure_devops_access_token` field with your Azure DevOps personal access token\n- **GitHub**: Set `github_access_token` field with your GitHub personal access token (e.g., `ghp_TOKEN`)\n\nYou can provide the token directly in the configuration file or specify a path to a file containing the token:\n\n```yaml\n# Direct token (not recommended for security)\ngitlab_access_token: \"???\"\n\n# Or path to token file (recommended)\ngitlab_access_token: \".secure_files/gitlab_access_token.key\"\n```\n\n### Optional GPG Key Signing\n\nYou can optionally configure GPG key signing for commits:\n\n```yaml\ngpg_key_path: \"/home/user/.gnupg/autobump.asc\"\n```\n\nTo export your GPG key:\n\n```bash\ngpg --export-secret-key --armor $(git config user.signingkey) \u003e ~/.gnupg/autobump.asc\n```\n\n### Optional SSH Authentication\n\nWhen pushing to SSH remotes, AutoBump auto-detects the SSH agent from `SSH_AUTH_SOCK` and common socket paths (e.g., 1Password at `~/.1password/agent.sock`). For environments without an SSH agent, you can configure an explicit SSH key:\n\n```yaml\n# Path to SSH private key (supports ~ expansion)\nssh_key_path: '~/.ssh/id_ed25519'\n\n# Passphrase for the key (optional, can be a file path)\nssh_key_passphrase: ''\n\n# Or point to a custom SSH agent socket (e.g., 1Password)\nssh_auth_sock: '~/.1password/agent.sock'\n```\n\n## Usage\n\nAutoBump has two main modes: **local** (single repository) and **run** (batch engine).\n\n### 1. Local Mode\n\nProcess a single repository. Run in the project directory or specify a path:\n\n```bash\nautobump local              # Current directory\nautobump local /path/to/repo  # Specific path\nautobump .                  # Shorthand for local mode\n```\n\nAutoBump will automatically detect the project language, update the version files, update the CHANGELOG.md file, and create a merge request/pull request on your Git platform (GitLab, Azure DevOps, or GitHub).\n\nYou can manually specify the project language using the `-l` or `--language` flag:\n\n```bash\nautobump local -l java\n```\n\nAvailable languages: `go`, `java`, `python`, `terraform`, `typescript`, `cs`\n\nYou can also specify a custom configuration file path:\n\n```bash\nautobump local -c /path/to/custom/config.yaml\n```\n\n### 2. Run Mode (Batch + Discover)\n\nThe `run` command processes repositories from a configuration file. It auto-detects the mode based on config content:\n\n- If `projects` is configured, iterates the static project list\n- If `providers` is configured, discovers repos via provider APIs\n- If both are present, both are processed\n\n#### Static Project List\n\nAdd a `projects` section to your configuration file:\n\n```yaml\nprojects:\n  # Local repository path with auto-detected language\n  - path: \"/home/user/repo1\"\n\n  # Local repository with manually specified language\n  - path: \"/home/user/repo2\"\n    language: \"Java\"\n\n  # Git URL - AutoBump will clone automatically into a temporary directory\n  - path: \"git@github.com:example/repo3.git\"\n\n  # Project with specific access token (overrides global token)\n  - path: \"https://gitlab.com/user/repo4.git\"\n    project_access_token: \"???\"\n```\n\n#### Provider Discovery\n\nAdd a `providers` section to your configuration file:\n\n```yaml\nproviders:\n  # GitHub - discovers all repos in the specified organizations\n  - type: \"github\"\n    token: \"ghp_TOKEN\"\n    organizations:\n      - \"my-github-org\"\n\n  # GitLab - discovers all projects in the specified groups (including subgroups)\n  - type: \"gitlab\"\n    token: \"${GITLAB_TOKEN}\"  # reads from environment variable\n    organizations:\n      - \"my-gitlab-group\"\n\n  # Azure DevOps - discovers all repos in the specified organizations\n  - type: \"azuredevops\"\n    token: \"/path/to/token/file\"  # reads token from file\n    organizations:\n      - \"my-azure-org\"\n```\n\nThe `token` field supports three formats:\n\n- **Inline**: `\"ghp_TOKEN\"` -- the token value directly\n- **Environment variable**: `\"${ENV_VAR}\"` -- reads the token from an environment variable\n- **File path**: `\"/path/to/file\"` -- reads the token from a file on disk\n\nThen run:\n\n```bash\nautobump run\n```\n\nAutoBump will process all configured sources (static project list and/or provider API discovery).\n\n## Per-Project Configuration (`.autobump.yaml`)\n\nDrop a `.autobump.yaml` (or `.autobump.yml`, `autobump.yaml`, `autobump.yml`) at the\nroot of any repository to override settings for that project only. AutoBump\nauto-detects the file from `local`, `run`, and discovery modes, so the global\nconfig in `~/.config/autobump.yaml` does not need to know anything about it.\n\nThe keys recognized in a per-project file are:\n\n| Key                | Purpose                                                                              |\n|--------------------|--------------------------------------------------------------------------------------|\n| `changelog_path`   | Custom changelog filename relative to the project root (e.g. `CHANGELOG_PROPRIETARY.md`) |\n| `versioning`       | Versioning mode: `semver` (default), `fork-dot`, or `fork-dash`                      |\n| `languages`        | Per-language overrides for `extensions`, `special_patterns`, and `version_files`     |\n\n```yaml\n# .autobump.yaml at the root of a fork repository\nchangelog_path: 'CHANGELOG_PROPRIETARY.md'\nversioning: 'fork-dot'\n```\n\nThe same keys can also be set at the global level in `~/.config/autobump.yaml`\n(under the project entry, or as top-level defaults applied to every project).\nProject-level values always win over global ones.\n\n## Versioning Modes\n\nAutoBump supports three versioning strategies, selectable via the `versioning`\nkey. All three honor the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)\nformat; only the way the next version is computed differs.\n\n| Mode        | Pattern   | Example transition       | When to use                                      |\n|-------------|-----------|--------------------------|--------------------------------------------------|\n| `semver`    | `X.Y.Z`   | `1.0.0` → `1.1.0`        | Default. Standard Semantic Versioning            |\n| `fork-dot`  | `X.Y.Z.N` | `3.3.0.16` → `3.3.0.17`  | Forks following the [Forking Technique](https://github.com/rios0rios0/guide/wiki/Forking-Technique) with a 4th increment digit |\n| `fork-dash` | `X.Y.Z-N` | `1.21.0-9` → `1.21.0-10` | Forks where CI/CD does not accept four-segment versions |\n\nIn fork modes, AutoBump:\n\n- Reads the current version from the **last non-`Unreleased` header** in the changelog\n- Increments **only the trailing fork digit** (`N`); the upstream `X.Y.Z` is preserved\n- **Skips** language-specific version-file rewrites (forks typically maintain those manually or via separate pipelines)\n- Still moves `[Unreleased]` content into a freshly dated `## [\u003cnext\u003e] - YYYY-MM-DD` section\n\nExample fork repository:\n\n```yaml\n# ~/.config/autobump.yaml\nprojects:\n  - path: '~/Development/dev.azure.com/MyOrg/forks/opensearch-dashboards'\n    changelog_path: 'CHANGELOG_PROPRIETARY.md'\n    versioning: 'fork-dot'\n\n  - path: '~/Development/dev.azure.com/MyOrg/forks/oui'\n    changelog_path: 'CHANGELOG_PROPRIETARY.md'\n    versioning: 'fork-dash'\n```\n\nOr, equivalently, place a `.autobump.yaml` in each fork's root:\n\n```yaml\n# .autobump.yaml inside the opensearch-dashboards fork\nchangelog_path: 'CHANGELOG_PROPRIETARY.md'\nversioning: 'fork-dot'\n```\n\n## How It Works\n\n1. **Repository Discovery** *(run mode with providers)*: Queries GitHub, GitLab, and Azure DevOps APIs to find all repositories in configured organizations\n2. **Language Detection**: AutoBump automatically detects the project language by looking for specific files (e.g., `go.mod`, `package.json`, `pom.xml`)\n3. **Version Detection**: Reads the current version from CHANGELOG.md\n4. **Version Update**: Determines the next version based on Semantic Versioning and updates language-specific version files\n5. **CHANGELOG Update**: Moves unreleased changes to the new version section with the current date, deduplicating semantically overlapping entries\n6. **Git Operations**: Commits changes, creates a new branch, and pushes to remote\n7. **MR/PR Creation**: Creates a merge request (GitLab), pull request (GitHub), or pull request (Azure DevOps) for review\n\n## Contributing\n\nContributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\nSee [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frios0rios0%2Fautobump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frios0rios0%2Fautobump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frios0rios0%2Fautobump/lists"}