{"id":13607082,"url":"https://github.com/TreTuna/sync-branches","last_synced_at":"2025-04-12T11:31:23.870Z","repository":{"id":40727651,"uuid":"240662191","full_name":"TreTuna/sync-branches","owner":"TreTuna","description":"GitHub Action to sync back a branch to another after a merge.","archived":false,"fork":false,"pushed_at":"2024-06-20T12:06:28.000Z","size":641,"stargazers_count":109,"open_issues_count":24,"forks_count":59,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T04:37:05.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/TreTuna.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}},"created_at":"2020-02-15T07:19:42.000Z","updated_at":"2025-03-21T19:18:26.000Z","dependencies_parsed_at":"2024-06-18T12:43:05.160Z","dependency_job_id":"a714346a-f6ad-496a-ae6e-108bf31b41f2","html_url":"https://github.com/TreTuna/sync-branches","commit_stats":{"total_commits":75,"total_committers":11,"mean_commits":6.818181818181818,"dds":0.5733333333333333,"last_synced_commit":"19c35d47924181ef967f7628fcd945854bedb9ed"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":"actions/javascript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TreTuna%2Fsync-branches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TreTuna%2Fsync-branches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TreTuna%2Fsync-branches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TreTuna%2Fsync-branches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TreTuna","download_url":"https://codeload.github.com/TreTuna/sync-branches/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248560104,"owners_count":21124594,"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":"2024-08-01T19:01:15.407Z","updated_at":"2025-04-12T11:31:22.158Z","avatar_url":"https://github.com/TreTuna.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# sync-branches\n\nGitHub Action to sync one branch when another is updated.\n\n## Inputs\n\n### `GITHUB_TOKEN`\n\n**Required** The token to be used for creating the pull request. Can be set to the one given for the workflow or another user.\n\n### `FROM_BRANCH`\n\n**Required** The branch you want to make the pull request from.\n\n### `TO_BRANCH`\n\n**Required** The branch you want to make the pull request to.\n\n### `PULL_REQUEST_TITLE`\n\nWhat you would like as the title of the pull request.\n\nDefault: `sync: {FROM_BRANCH} to {TO_BRANCH}`\n\n### `PULL_REQUEST_BODY`\n\nWhat you would like in the body of the pull request.\n\nDefault: `sync-branches: New code has just landed in {FROM_BRANCH} so let's bring {TO_BRANCH} up to speed!`\n\n### `PULL_REQUEST_IS_DRAFT`\n\nSet to `true` for the pull request to be opened as a draft.\n\nDefault: `false`\n\n### `CONTENT_COMPARISON`\n\nSet to `true` to force checking content comparison between branches.\nNo more empty pull requests being opened and triggering CI jobs.\n\nDefault: `false`\n### `REVIEWERS`\n\nJSON array of GitHub user `login`s that will be requested to review the PR.\n\nExample: `'[\"tretuna\"]'`\n\nDefault: `[]`\n### `TEAM_REVIEWERS`\n\nJSON array of GitHub team `slug`s that will be requested to review the PR.\n\nExample: `'[\"js-team\"]'`\n\nDefault: `[]`\n### `PULL_REQUEST_AUTO_MERGE_METHOD`\n\nSet a merge method for auto merging.\n\nOptions: `merge`, `squash`, `rebase`\n\nDefault: `false`\n\n## Outputs\n\n### `PULL_REQUEST_URL`\n\nSet to the URL of either the pull request that was opened by this action or the one that was found to already be open between the two branches\n\n### `PULL_REQUEST_NUMBER`\n\nPull request number from generated pull request or the currently open one\n\n## Example usage\n\n```YML\nname: Sync\non:\n  push:\n    branches:\n      - main\n\njobs:\n  sync-branches:\n    runs-on: ubuntu-latest\n    name: Syncing branches\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v2\n      - name: Set up Node\n        uses: actions/setup-node@v1\n        with:\n          node-version: 12\n      - name: Opening pull request\n        id: pull\n        uses: tretuna/sync-branches@1.4.0\n        with:\n          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}\n          FROM_BRANCH: \"main\"\n          TO_BRANCH: \"develop\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTreTuna%2Fsync-branches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTreTuna%2Fsync-branches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTreTuna%2Fsync-branches/lists"}