From 2bc79050a9ee0a00b5df751ebb794d6b7128eaee Mon Sep 17 00:00:00 2001 From: Integralist Date: Mon, 27 Nov 2023 17:42:01 +0000 Subject: [PATCH 1/2] feat: add nilaway Makefile target --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index efd8349d7..248ed1c79 100644 --- a/Makefile +++ b/Makefile @@ -83,6 +83,9 @@ errcheck: goreleaser-bin: go install github.com/goreleaser/goreleaser@v1.18.2 +nilaway: + @nilaway ./... + # You can pass flags to goreleaser via GORELEASER_ARGS # --skip-validate will skip the checks # --clean will save you deleting the dist dir From 9f85b05206e12305475cd26655420d266c5766e9 Mon Sep 17 00:00:00 2001 From: Integralist Date: Tue, 2 Jan 2024 17:01:46 +0000 Subject: [PATCH 2/2] ci: slash command to trigger tests for forked PRs --- .github/workflows/ok-to-test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ok-to-test.yml diff --git a/.github/workflows/ok-to-test.yml b/.github/workflows/ok-to-test.yml new file mode 100644 index 000000000..f1b2c47f2 --- /dev/null +++ b/.github/workflows/ok-to-test.yml @@ -0,0 +1,20 @@ +# If someone with write access comments "/ok-to-test" on a pull request, emit a repository_dispatch event +name: Ok To Test + +on: + issue_comment: + types: [created] + +jobs: + ok-to-test: + runs-on: ubuntu-latest + if: ${{ github.event.issue.pull_request }} # ignore issue comments + steps: + - name: Trigger test run for forked PR + uses: peter-evans/slash-command-dispatch@v3 + with: + token: ${{ secrets.OK_TO_TEST_DISPATCH_TOKEN }} + reaction-token: ${{ secrets.GITHUB_TOKEN }} + issue-type: pull-request + commands: ok-to-test + permission: write