From 14913cfa7a1fcd7ad2f8252d27caccc2a7d70d80 Mon Sep 17 00:00:00 2001 From: Pedro Maia Costa <550684+pnmcosta@users.noreply.github.com> Date: Wed, 9 Apr 2025 20:18:52 +0100 Subject: [PATCH] add git town config (#3555) --- .git-branches.toml | 27 +++++++++++++++++++++++++++ .github/workflows/git-town.yml | 21 +++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .git-branches.toml create mode 100644 .github/workflows/git-town.yml diff --git a/.git-branches.toml b/.git-branches.toml new file mode 100644 index 000000000..d1818090f --- /dev/null +++ b/.git-branches.toml @@ -0,0 +1,27 @@ +# More info around this file at https://www.git-town.com/configuration-file + +[branches] +main = "main" +perennials = [] +perennial-regex = "" + +[create] +new-branch-type = "feature" +push-new-branches = false + +[hosting] +dev-remote = "origin" +# platform = "" +# origin-hostname = "" + +[ship] +delete-tracking-branch = false +strategy = "squash-merge" + +[sync] +feature-strategy = "merge" +perennial-strategy = "rebase" +prototype-strategy = "merge" +push-hook = true +tags = true +upstream = false diff --git a/.github/workflows/git-town.yml b/.github/workflows/git-town.yml new file mode 100644 index 000000000..c54fcb449 --- /dev/null +++ b/.github/workflows/git-town.yml @@ -0,0 +1,21 @@ +name: Git Town + +on: + pull_request: + branches: + - '**' + +jobs: + git-town: + name: Display the branch stack + runs-on: ubuntu-latest + + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/checkout@v4 + - uses: git-town/action@v1 + with: + skip-single-stacks: true \ No newline at end of file