From d98593707b67a31cbba392f83d34f43e9f862ea3 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Nov 2026 16:23:54 +0000 Subject: [PATCH] ci: run semantic pull request and spell check from a single workflow The semantic pull request check ran from both main.yaml and example.yaml. Both checks now run once from ci.yaml, and re-run when the title is edited. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01Cvc8ewtN7ZSsbEzx9bNsZK --- .github/workflows/ci.yaml | 21 +++++++++++++++++++++ .github/workflows/example.yaml | 3 --- .github/workflows/main.yaml | 11 +---------- README.md | 2 +- 4 files changed, 23 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..57d1bf8 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,21 @@ +name: ci + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + branches: + - main + +jobs: + semantic_pull_request: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v2 + + spell-check: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v2 + with: + includes: "**/*.{md,yml,yaml}" + modified_files_only: false diff --git a/.github/workflows/example.yaml b/.github/workflows/example.yaml index 4d2bd0f..84d35fb 100644 --- a/.github/workflows/example.yaml +++ b/.github/workflows/example.yaml @@ -17,9 +17,6 @@ on: - "example/pubspec.yaml" jobs: - semantic-pull-request: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v2 - build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v2 with: diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 065bbf0..4319da5 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,4 +1,4 @@ -name: ci +name: cli_completion concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -13,15 +13,6 @@ on: - main jobs: - semantic_pull_request: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v2 - - spell-check: - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v2 - with: - includes: "**/*.{md,yml,yaml}" - modified_files_only: false - build: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v2 diff --git a/README.md b/README.md index e393952..ab27503 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,6 @@ compinit [pub_link]: https://cli_completion.pckg.pub [pub_badge]: https://img.shields.io/pub/v/cli_completion.svg [coverage_badge]: https://raw.githubusercontent.com/VeryGoodOpenSource/cli_completion/main/coverage_badge.svg -[ci_badge]: https://github.com/VeryGoodOpenSource/cli_completion/workflows/ci/badge.svg +[ci_badge]: https://github.com/VeryGoodOpenSource/cli_completion/actions/workflows/main.yaml/badge.svg [ci_link]: https://github.com/VeryGoodOpenSource/cli_completion/actions [oh_my_zsh]: https://ohmyz.sh/