From f14f127bc02bd327f3e1adbc400791dc49d29643 Mon Sep 17 00:00:00 2001 From: Felix Leupold Date: Tue, 6 Feb 2024 10:34:47 +0100 Subject: [PATCH] Add action to remind people to update DB readme (#2364) # Description So we don't need @MartinquaXD for comments like [this](https://github.com/cowprotocol/services/pull/2359#discussion_r1477906357) Uses https://github.com/ethanis/nitpicker # Changes - [x] Add new step to existing workflow ## How to test https://github.com/fleupold/weekly-release-action/pull/7 --- .github/nitpicks.yml | 4 ++++ .github/workflows/pull-request.yaml | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 .github/nitpicks.yml diff --git a/.github/nitpicks.yml b/.github/nitpicks.yml new file mode 100644 index 0000000000..5181b1eee4 --- /dev/null +++ b/.github/nitpicks.yml @@ -0,0 +1,4 @@ +- markdown: | + Reminder: Please update the DB Readme. + pathFilter: + - "database/sql/**" diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index c3fab850ec..cf0aef2524 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -25,6 +25,15 @@ jobs: cargo clippy --version - run: cargo +nightly fmt --all -- --check - run: cargo clippy --locked --workspace --all-features --all-targets -- -D warnings + + nitpicker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ethanis/nitpicker@v1 + with: + nitpicks: ".github/nitpicks.yml" + token: "${{ secrets.GITHUB_TOKEN }}" unit-tests: timeout-minutes: 60