{"id":19302560,"url":"https://github.com/semestry/git-flow-action","last_synced_at":"2025-06-26T05:02:22.508Z","repository":{"id":46071853,"uuid":"428227103","full_name":"semestry/git-flow-action","owner":"semestry","description":"The Git Flow Action is a GitHub Action that assists with the Git Flow branching model.","archived":false,"fork":false,"pushed_at":"2025-05-16T08:28:40.000Z","size":2401,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-17T04:04:36.812Z","etag":null,"topics":["actions","git-flow","github","github-actions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/semestry.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,"zenodo":null}},"created_at":"2021-11-15T10:58:01.000Z","updated_at":"2025-05-16T08:28:41.000Z","dependencies_parsed_at":"2025-01-22T12:23:20.431Z","dependency_job_id":"702eec14-fc79-4d40-b157-446c73fb40a5","html_url":"https://github.com/semestry/git-flow-action","commit_stats":{"total_commits":8,"total_committers":4,"mean_commits":2.0,"dds":0.625,"last_synced_commit":"e3f16203a876b9f4bb1fbbd2aa7bc79441f13ae1"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/semestry/git-flow-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semestry%2Fgit-flow-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semestry%2Fgit-flow-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semestry%2Fgit-flow-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semestry%2Fgit-flow-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semestry","download_url":"https://codeload.github.com/semestry/git-flow-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semestry%2Fgit-flow-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262003915,"owners_count":23243346,"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":["actions","git-flow","github","github-actions"],"created_at":"2024-11-09T23:22:41.105Z","updated_at":"2025-06-26T05:02:22.440Z","avatar_url":"https://github.com/semestry.png","language":"JavaScript","readme":"# Git Flow Action\nThe Git Flow Action is a GitHub Action that assists with the Git Flow branching model.\nIt's feature are:\n\n- **Comment when a pull request has a head branch name that doesn't have the feature branch or hotfix branch prefix**\n\n- **Comment when a feature pull request doesn't target a development branch or another feature branch**\u003cbr\u003e\n  Because pull requests for feature branches should never target a main branch.\n  \n- **Comment when a hotfix pull request doesn't target a development branch or main branch**\u003cbr\u003e\n  Because pull requests for hotfix branches should never target other branches than these.\n\n- **Convert pull requests for cascading feature branches to draft automatically**\u003cbr\u003e\n  This prevents them from being merged accidentally into the base feature branch.\n\n## Usage\n\nCreate a personal access token with the `repo` permission and store it in a repository or organization level secret called `GIT_FLOW_ACTION_PAT`.\nYou can then create the following workflow file in your repository.\n\n`.github/workflows/check-pr.yml`:\n```yaml\nname: Check PR\n\non:\n  # WARNING: Make sure to never check out, build or run untrusted code with the 'pull_request_target' event.\n  # See: https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#pull_request_target\n  pull_request_target:\n    types: [opened, edited]\n\njobs:\n\n  check-branches:\n    name: Check base branch and branch name\n    runs-on: ubuntu-latest\n    steps:\n      - uses: semestry/git-flow-action@v1\n        env:\n          GITHUB_TOKEN:  ${{ secrets.GIT_FLOW_ACTION_PAT }}\n```\n\n## Configuration options\n\nYou can override configuration options using in the workflow file. For example:\n\n```yaml\n      - uses: semestry/git-flow-action@v1\n        env:\n          GITHUB_TOKEN:  ${{ secrets.GIT_FLOW_ACTION_PAT }}\n        with:\n          feature_branch_prefix: 'feat/'\n```\n\n| Option                            | Description                                                                               |\n|-----------------------------------|-------------------------------------------------------------------------------------------|\n| `main_branch_pattern`             | Regex for matching main branches. Default: `^(main\u0026#124;master)$`                         |\n| `development_branch_pattern`      | Regex for matching development branches. Default: `^(dev\u0026#124;develop\u0026#124;development)$` |\n| `semestry_staging_branch_pattern` | Regex for matching development branches. Default: `^(X.Y-staging\u0026#124;X.Y.Z-staging)$`    |\n| `semestry_testing_branch_pattern` | Regex for matching development branches. Default: `^(X.Y-test\u0026#124;X.Y.Z-test)$`          |\n| `feature_branch_prefix`           | Feature branch prefix. Default: `feature/`                                                |\n| `hotfix_branch_prefix`            | Hotfix branch prefix. Default: `hotfix/`                                                  |\n| `fix_branch_prefix`               | Fix branch prefix. Default `fix/`                                                         |\n| `staging_branch_prefix`           | Staging branch prefix. Default `staging/`                                                 |\n \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemestry%2Fgit-flow-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemestry%2Fgit-flow-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemestry%2Fgit-flow-action/lists"}