From ce8416bc6e310f961e5955422933d34e562d1a35 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Mon, 2 Mar 2026 11:28:42 -0500 Subject: [PATCH] ci: Add git-town workflow to display branch stack on PRs Add a GitHub Actions workflow that uses git-town/action to automatically render the stacked pull request visualization in PR descriptions. The workflow runs on pull_request events and updates the marker in the PR template. Also add the branch-stack placeholder to the PR template so git-town knows where to inject the visualization. Co-Authored-By: Claude --- .github/PULL_REQUEST_TEMPLATE.md | 4 ++++ .github/workflows/git-town-update-pr.yml | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/git-town-update-pr.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 79f27c30d8..628b445aab 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -12,3 +12,7 @@ - Add GH Issue ID _&_ Linear ID (if applicable) - PR title should use [conventional commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type) style (`feat:`, `fix:`, `ref:`, `meta:`) - For external contributors: [CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md), [Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord community](https://discord.gg/Ww9hbqr) + +## Pull request stack + + \ No newline at end of file diff --git a/.github/workflows/git-town-update-pr.yml b/.github/workflows/git-town-update-pr.yml new file mode 100644 index 0000000000..9816d3008e --- /dev/null +++ b/.github/workflows/git-town-update-pr.yml @@ -0,0 +1,22 @@ +name: Update PR with git-town Stack Visualization + +on: + pull_request: + types: [opened, reopened, synchronize] + +permissions: {} + +jobs: + git-town: + name: Display the branch stack + runs-on: ubuntu-latest + + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + fetch-depth: 0 + - uses: git-town/action@429e2e458481f3b4f362c94b3bb234a1bce8dcec # v1 \ No newline at end of file