{"id":24531948,"url":"https://github.com/julbme/gh-action-merge-branch","last_synced_at":"2025-03-15T20:16:20.285Z","repository":{"id":65160391,"uuid":"462808206","full_name":"julbme/gh-action-merge-branch","owner":"julbme","description":"GitHub action to merge commits to a branch","archived":false,"fork":false,"pushed_at":"2022-12-03T21:05:33.000Z","size":640,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T09:16:52.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/julbme.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":"2022-02-23T16:05:14.000Z","updated_at":"2022-02-23T18:04:59.000Z","dependencies_parsed_at":"2023-01-13T15:43:53.703Z","dependency_job_id":null,"html_url":"https://github.com/julbme/gh-action-merge-branch","commit_stats":{"total_commits":11,"total_committers":3,"mean_commits":"3.6666666666666665","dds":0.4545454545454546,"last_synced_commit":"46f328b00254a8f032fba74c8ac71aa7ed45ab34"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-merge-branch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-merge-branch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-merge-branch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-merge-branch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julbme","download_url":"https://codeload.github.com/julbme/gh-action-merge-branch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243785080,"owners_count":20347409,"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","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":"2025-01-22T09:16:56.412Z","updated_at":"2025-03-15T20:16:20.236Z","avatar_url":"https://github.com/julbme.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build](https://github.com/julbme/gh-action-merge-branch/actions/workflows/maven-build.yml/badge.svg)](https://github.com/julbme/gh-action-merge-branch/actions/workflows/maven-build.yml)\n[![Lint Commit Messages](https://github.com/julbme/gh-action-merge-branch/actions/workflows/commitlint.yml/badge.svg)](https://github.com/julbme/gh-action-merge-branch/actions/workflows/commitlint.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=julbme_gh-action-merge-branch\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=julbme_gh-action-merge-branch)\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/julbme/gh-action-merge-branch)\n\n# GitHub Action to merge to a branch\n\nThe GitHub Action for merging tag, branch or commit to a branch in the GitHub repository.\n\n## Usage\n\n### Example Workflow file\n\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Merge branch\n        uses: julbme/gh-action-merge-branch@v1\n        with:\n          from: ${{ github.ref }}\n          to: branch-name\n          message: Merge commit message\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n### Inputs\n\n|   Name    |  Type  |   Default    |                                                                          Description                                                                           |\n|-----------|--------|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `from`    | string | `github.sha` | The reference from which to merge the branch - could be a branch, a tag, a ref or a specific SHA. By default, it takes the commit that triggered the workflow. |\n| `to`      | string | `Not set`    | Name of the target branch. **Required**                                                                                                                        |\n| `message` | string | ` `          | The message associated to the merge. If not set, will be the default GitHub message.                                                                           |\n\n### Outputs\n\n| Name  |  Type  |                                     Description                                     |\n|-------|--------|-------------------------------------------------------------------------------------|\n| `sha` | string | The merge commit SHA, or the target branch latest commit SHA if no merge is needed. |\n\n## Contributing\n\nThis project is totally open source and contributors are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulbme%2Fgh-action-merge-branch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulbme%2Fgh-action-merge-branch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulbme%2Fgh-action-merge-branch/lists"}