From a976fd2f9ce13b65e61670ef3b74c3f43f24be66 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Thu, 12 Feb 2026 21:09:36 -0500 Subject: [PATCH] chore: minor case fixup [skip ci] --- .github/workflows/codeql.yml | 2 +- .github/workflows/docker.yml | 12 ++++++------ .github/workflows/go.yml | 10 +++++----- .github/workflows/release.yml | 8 ++++---- AGENTS.md | 1 + Taskfile.yml | 2 -- 6 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 24a551e90..77625bf0c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -38,7 +38,7 @@ jobs: # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed steps: - - name: Checkout repository + - name: Check out repository uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 with: # We must fetch at least the immediate parents so that if this is diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 60ff6b6d4..57c7bf259 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -26,7 +26,7 @@ jobs: contents: read packages: write steps: - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Set up QEMU uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 @@ -85,7 +85,7 @@ jobs: contents: read packages: write steps: - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Set up QEMU uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 @@ -173,7 +173,7 @@ jobs: permissions: contents: read steps: - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Set up Docker Buildx id: buildx @@ -212,7 +212,7 @@ jobs: permissions: contents: read steps: - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Set up Docker Buildx id: buildx @@ -274,7 +274,7 @@ jobs: echo "TAGS<> $GITHUB_ENV echo "$TAGS" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Set up QEMU uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 @@ -343,7 +343,7 @@ jobs: echo "TAGS<> $GITHUB_ENV echo "$TAGS" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Set up QEMU uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 822580d89..6e77e3968 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,7 +29,7 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Install Go uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 @@ -65,7 +65,7 @@ jobs: platform: [ ubuntu-latest, macos-latest ] runs-on: ${{ matrix.platform }} steps: - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Install Go uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 @@ -93,7 +93,7 @@ jobs: platform: [ windows-latest ] runs-on: ${{ matrix.platform }} steps: - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Install Go uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 @@ -128,7 +128,7 @@ jobs: ports: - 5432:5432 steps: - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Install Go uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 @@ -157,7 +157,7 @@ jobs: steps: - name: Start MySQL server run: sudo systemctl start mysql - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Install Go uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 41d0a0f33..d653e8341 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,9 +40,9 @@ jobs: - {goos: windows, goarch: arm64, suffix: "_mws", tags: minwinsvc} - {goos: windows, goarch: "386", suffix: "_mws", tags: minwinsvc} steps: - - name: Checkout code + - name: Check out code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - name: Setup Go + - name: Set up Go uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 with: go-version: 1.25.x @@ -112,14 +112,14 @@ jobs: if [ "${{ github.event_name }}" != "release" ]; then git tag -f "$RELEASE_TAG" git push origin "$RELEASE_TAG" --force || true - + RELEASE_TITLE="Release Archive Testing" RELEASE_NOTES="Automated testing release for workflow development." if [ "$RELEASE_TAG" = "latest-commit-build" ]; then RELEASE_TITLE="Latest Commit Build" RELEASE_NOTES="Automated build from the latest commit on main branch. This release is updated automatically with every push to main." fi - + gh release view "$RELEASE_TAG" || gh release create "$RELEASE_TAG" --title "$RELEASE_TITLE" --notes "$RELEASE_NOTES" --prerelease fi diff --git a/AGENTS.md b/AGENTS.md index fe2c3b8f6..163d2ab6d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,6 +20,7 @@ This applies to all texts, including but not limited to UI, documentation, code - Prefer `task` command over vanilla `go` command when available. Use `--force` flag when necessary. - Run `task lint` after every time you finish changing code, and fix all linter errors. +- Run `go mod tidy` after every time you change `go.mod`, do not manually edit `go.sum` file. ## Tool-use guidance diff --git a/Taskfile.yml b/Taskfile.yml index cc75065fb..5dafb48a3 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -10,8 +10,6 @@ tasks: web: desc: Build the binary and start the web server deps: [build] - env: - GOGS_WORK_DIR: '{{.ROOT_DIR}}' cmds: - .bin/gogs web