From d95213334b9070bb9b5f2fbec864908ef941c881 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Tue, 12 May 2026 18:17:14 +0800 Subject: [PATCH] feat: add concurrency settings and branch ignore for pull request workflows --- README.md | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1717ef..bd29c03 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,13 @@ ### 1. OpenAI ```yaml name: AI +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true on: pull_request: + branches-ignore: + - master types: [opened, synchronize] jobs: code-review: @@ -55,8 +60,13 @@ jobs: ### 2. OpenRouter ```yaml name: AI +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true on: pull_request: + branches-ignore: + - master types: [opened, synchronize] jobs: code-review: @@ -78,8 +88,13 @@ jobs: ### 3. Anthropic Claude ```yaml name: AI +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true on: pull_request: + branches-ignore: + - master types: [opened, synchronize] jobs: code-review: @@ -100,8 +115,13 @@ jobs: ### 4. Google Gemini ```yaml name: AI +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true on: pull_request: + branches-ignore: + - master types: [opened, synchronize] jobs: code-review: @@ -123,8 +143,13 @@ jobs: ### 5. Amazon Q ```yaml name: AI +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true on: pull_request: + branches-ignore: + - master types: [opened, synchronize] jobs: code-review: @@ -146,8 +171,13 @@ jobs: ```yaml name: AI +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true on: pull_request: + branches-ignore: + - master types: [opened, synchronize] jobs: code-review: @@ -162,6 +192,5 @@ jobs: permissions: contents: write pull-requests: write - issues: write ``` \ No newline at end of file