From ebecda5170ccdbd6507487897b933b400e1696a2 Mon Sep 17 00:00:00 2001 From: Nikolay Govorov Date: Fri, 24 Jul 2026 00:17:29 +0100 Subject: Uses signoff from shared infra --- .github/workflows/build.yml | 5 +++++ .gitignore | 2 ++ Taskfile.yml | 43 ++++--------------------------------- mise.toml | 13 +++++++++++ 4 files changed, 24 insertions(+), 39 deletions(-) create mode 100644 mise.toml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38bb2dc..b3f9ff1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,11 @@ jobs: with: fetch-depth: 0 + - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3 + with: + version: 2026.7.5 + experimental: true + - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: go-version-file: go.mod diff --git a/.gitignore b/.gitignore index 426c177..2e257dc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ /dev /build /.task +mise.local.toml +mise.*.local.toml cmd/mirum-server/static cmd/mirum-server/web/node_modules diff --git a/Taskfile.yml b/Taskfile.yml index 6dcac22..522f707 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -501,45 +501,10 @@ tasks: deps: [web:dev, dev:server] # Test and lint checks - signof: - desc: Verifies that the author is known and has signed the CLA + signoff: + desc: Verify contributor identities and commit sign-offs cmds: - - | - ALLOWLIST="Nikolay Govorov|github-actions\\[bot\\]" - - bad=0 - for sha in $(git log --no-merges --format=%H); do - author=$(git log -1 --format='%an' "$sha") - if echo "$author" | grep -qP "^($ALLOWLIST)$"; then - continue - fi - - email=$(git log -1 --format='%ae' "$sha") - expected="${author} <${email}>" - if ! git log -1 --format='%(trailers:key=Signed-off-by,valueonly)' "$sha" | grep -qF "$expected"; then - echo "Commit ${sha:0:8} by ${expected} is missing a valid Signed-off-by" - bad=1 - fi - done - - if [ "$bad" -eq 1 ]; then - echo "All commits must be signed off (git commit -s). See CLA.md" - exit 1 - fi - - # Check that all authors and committers are in .mailmap - missing=0 - for email in $(git log --no-merges --format='%ae%n%ce' | sort -u); do - if ! grep -v '^#' .mailmap | grep -qF "<${email}>"; then - echo "Email <${email}> is not in .mailmap" - missing=1 - fi - done - - if [ "$missing" -eq 1 ]; then - echo "All contributors must be listed in .mailmap. See README.md" - exit 1 - fi + - mise run signoff web:lint: desc: Lint and check the frontend @@ -562,7 +527,7 @@ tasks: desc: Run static checks deps: [go:lint, web:lint] cmds: - - task: signof + - task: signoff - task: go:lint - task: web:lint - reuse lint diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..4107986 --- /dev/null +++ b/mise.toml @@ -0,0 +1,13 @@ +# SPDX-FileCopyrightText: 2026 Nikolay Govorov +# SPDX-License-Identifier: AGPL-3.0-or-later + +min_version = "2026.7.5" + +[settings] +experimental = true + +[task_config] +dir = "{{cwd}}" +includes = [ + "git::https://github.com/dimidiumlabs/infra.git//tasks?ref=22410a5dae5ff53b54d1666db5c6009229fbaaa5", +] -- Gilti