Skip to content

Commit 47d4a75

Browse files
committed
chore: bump go version
1 parent 423aef5 commit 47d4a75

6 files changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: [ 1.21.x, 1.22.x ]
7+
go-version: [1.26.x]
88
os: [ ubuntu-latest ]
99
runs-on: ${{ matrix.os }}
1010
steps:
@@ -44,4 +44,4 @@ jobs:
4444
restore-keys: |
4545
${{ runner.os }}-go-
4646
- name: Test
47-
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic
47+
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# OpsBot 🤖️
22

3-
[![Test](https://github.com/Lonor/OpsBot/actions/workflows/test.yaml/badge.svg)](https://github.com/Lonor/OpsBot/actions/workflows/test.yaml)
4-
[![codecov](https://codecov.io/gh/Lonor/OpsBot/branch/main/graph/badge.svg?token=H16BEN675E)](https://codecov.io/gh/Lonor/OpsBot)
3+
[![Test](https://github.com/la3rence/OpsBot/actions/workflows/test.yaml/badge.svg)](https://github.com/la3rence/OpsBot/actions/workflows/test.yaml)
4+
[![codecov](https://codecov.io/gh/la3rence/OpsBot/branch/main/graph/badge.svg?token=H16BEN675E)](https://codecov.io/gh/la3rence/OpsBot)
55

66
A robot based on GitHub sdk
77
and [Vercel's Serverless Function (Go)](https://vercel.com/docs/runtimes#official-runtimes/go). It acts like

api/index.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99
"strings"
1010

11-
"github.com/Lonor/OpsBot/utils"
11+
"github.com/la3rence/OpsBot/utils"
1212
"github.com/google/go-github/v74/github"
1313
"golang.org/x/oauth2"
1414
)
@@ -349,7 +349,7 @@ func mergePullRequest(githubClient *github.Client, issueCommentEvent github.Issu
349349
log.Println(mergeComment)
350350
sendComment(githubClient, owner, repo, number, mergeComment)
351351
} else {
352-
log.Printf("start to " + commitMsg + "\n")
352+
log.Printf("start to %s\n", commitMsg)
353353
mergeResult, _, err := githubClient.PullRequests.Merge(ctx, owner, repo, number, commitMsg, &github.PullRequestOptions{
354354
MergeMethod: mergeMethod, // optional with string: "merge", "squash", and "rebase"
355355
})

go.mod

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
module github.com/Lonor/OpsBot
1+
module github.com/la3rence/OpsBot
22

3-
go 1.23.0
4-
5-
toolchain go1.24.5
3+
go 1.26.0
64

75
require (
86
github.com/google/go-github/v74 v74.0.0

main/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
api "github.com/Lonor/OpsBot/api"
4+
api "github.com/la3rence/OpsBot/api"
55
"log"
66
"net/http"
77
)

utils/stringutils_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func TestGetTagNextOneParam(t *testing.T) {
5151
t.Errorf("The param after the tag expected to be %s, but %s got", tagParam, param)
5252
}
5353
if err != nil {
54-
t.Errorf(err.Error())
54+
t.Errorf("%s", err.Error())
5555
}
5656
}
5757

0 commit comments

Comments
 (0)