{"id":23108190,"url":"https://github.com/prompt/actions-merge-branch","last_synced_at":"2026-05-15T12:31:28.058Z","repository":{"id":42049212,"uuid":"376579219","full_name":"prompt/actions-merge-branch","owner":"prompt","description":":twisted_rightwards_arrows: Synchronise branches using Git merge with a (recursive) strategy","archived":false,"fork":false,"pushed_at":"2023-08-11T19:03:19.000Z","size":9,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T02:06:44.850Z","etag":null,"topics":["actions","git","github-actions"],"latest_commit_sha":null,"homepage":"","language":null,"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/prompt.png","metadata":{"funding":{"github":"pr-mpt"},"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}},"created_at":"2021-06-13T15:37:12.000Z","updated_at":"2022-10-05T22:04:30.000Z","dependencies_parsed_at":"2023-08-12T02:35:12.187Z","dependency_job_id":null,"html_url":"https://github.com/prompt/actions-merge-branch","commit_stats":null,"previous_names":["prompt/actions-merge-branch","pr-mpt/actions-merge-branch"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/prompt/actions-merge-branch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prompt%2Factions-merge-branch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prompt%2Factions-merge-branch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prompt%2Factions-merge-branch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prompt%2Factions-merge-branch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prompt","download_url":"https://codeload.github.com/prompt/actions-merge-branch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prompt%2Factions-merge-branch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267470062,"owners_count":24092352,"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-07-28T02:00:09.689Z","response_time":68,"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":["actions","git","github-actions"],"created_at":"2024-12-17T01:17:41.965Z","updated_at":"2026-05-15T12:31:23.036Z","avatar_url":"https://github.com/prompt.png","language":null,"funding_links":["https://github.com/sponsors/pr-mpt"],"categories":[],"sub_categories":[],"readme":"# Merge Into Current Branch\n\nA GitHub Action for keeping two branches in sync by merging in any `source`\nbranch changes using `git` locally -- not the GitHub API.\n\n```\nprompt/actions-merge-branch@v2\n```\n\n## Inputs\n\n| ID | Description | Default | Examples |\n| ---- | ----------- | ------- | -------- |\n| **`from`** | **Branch to merge into the current branch** | **\u003ckbd\u003erequired\u003c/kbd\u003e** | **`main`** |\n| `author` | Merge commit author | GitHub Actions\u003csup\u003e[1]\u003c/sup\u003e | `Alice \u003calice@example.com\u003e` |\n| `strategy` | Merge strategy with options | `recursive -Xtheirs` | `recursive`\u003cbr/\u003e`recursive -Xours` |\n| `commit` | Commit changes? | `true` | `true` `false` |\n| `push` | Push merge commit to origin? | `true` | `true` `false` |\n\n[1] [`github-actions[bot] \u003c41898282+github-actions[bot]@users.noreply.github.com\u003e`][users/github-actions]\n\n## Outputs\n\nNo outputs.\n\n## Examples\n\n### Synchronise `release` branch with `main`\n\nEvery push to `main` is synchronised to the `release` branch by merging in any\nchanges.\n\n```yaml\non:\n  push:\n    branches:\n      - \"main\"\n\njobs:\n  synchronise-release:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n        with:\n          ref: \"release\"\n          fetch-depth: 0\n      - uses: prompt/actions-merge-branch@v2\n        with:\n          from: \"origin/main\"\n```\n\n[users/github-actions]: https://api.github.com/users/github-actions%5Bbot%5D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprompt%2Factions-merge-branch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprompt%2Factions-merge-branch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprompt%2Factions-merge-branch/lists"}