This is an automated email from the ASF dual-hosted git repository.
tew pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-seata-go.git
The following commit(s) were added to refs/heads/master by this push:
new a93f0ae4 ci: add workflow to block WIP pull requests (#1064)
a93f0ae4 is described below
commit a93f0ae4bdebc1dd62adc74782a3a0db13ca4215
Author: Zhifan C <[email protected]>
AuthorDate: Wed Mar 18 02:36:31 2026 +0800
ci: add workflow to block WIP pull requests (#1064)
* ci: block merging WIP pull requests
* ci: improve WIP checks in labeler workflow
---------
Co-authored-by: Konnyaku <[email protected]>
Co-authored-by: ThunGuo <[email protected]>
---
.github/workflows/labeler.yml | 31 ++++++++++++++++++++++++++++++-
1 file changed, 30 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index 5b7309c6..678a7186 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -19,9 +19,38 @@
name: "pull request labeler"
on:
- - pull_request_target
+ pull_request_target:
+ types:
+ - opened
+ - edited
+ - synchronize
+ - reopened
+ - labeled
+ - unlabeled
jobs:
+ block-wip:
+ permissions:
+ contents: read
+ runs-on: ubuntu-latest
+ steps:
+ - name: "check wip pull request"
+ env:
+ PR_TITLE: ${{ github.event.pull_request.title }}
+ PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ',') }}
+ run: |
+ if echo "$PR_TITLE" | grep -iqE '^[[:space:]]*(\[WIP\]|WIP\b)'; then
+ echo "::error::Pull request title starts with WIP. Please remove
the WIP prefix to allow merging."
+ exit 1
+ fi
+
+ if echo ",$PR_LABELS," | grep -qi ',do-not-merge/wip,'; then
+ echo "::error::Pull request has the 'do-not-merge/wip' label.
Please remove this label to allow merging."
+ exit 1
+ fi
+
+ echo "Pull request passed WIP guard."
+
triage:
permissions:
contents: read
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]