Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
43b7f96
feat: add issue label email command and html parsing
ktun95 Jan 16, 2026
48d0635
feat: implement issue data extraction using regex and templates
ktun95 Jan 20, 2026
9081772
feat: create issue template for generating order reports
ktun95 Jan 20, 2026
93af551
feat(issue): refactor issue processing to use IssueProcessor struct
ktun95 Jan 20, 2026
ec470cf
feat: add issue.json test data for integration testing
ktun95 Jan 20, 2026
db879e7
feat(extract): add functions to extract order ID and email from body
ktun95 Jan 20, 2026
574bce1
feat(issue): add TestExtractFromBody to verify data extraction from body
ktun95 Jan 20, 2026
15865e2
refactor(issue): rename ExtractOrderData to extractOrderData and extr…
ktun95 Jan 20, 2026
02849d8
refactor(issue): simplify URL creation in getIssueBodyHTML function
ktun95 Jan 20, 2026
606d708
refactor: move OrderData and IssueProcessor to extract package
ktun95 Jan 21, 2026
fa4c9be
feat(issue): remove unused extractFromTemplate function
ktun95 Jan 21, 2026
b333025
feat(fake): add route to fetch issue by number
ktun95 Jan 21, 2026
0001f88
feat(html): add functions to extract billing email and order ID from …
ktun95 Jan 21, 2026
aae81db
docs(parser.go): refine comments for parseTable, parseTableHead, pars…
ktun95 Jan 21, 2026
ba27215
feat(html): add parser_test.go to test html parsing functions
ktun95 Jan 21, 2026
97e97b2
refactor(issue): simplify issue retrieval with fake GitHub server
ktun95 Jan 21, 2026
ac53a92
refactor(issue): refactor getIssueBody to accept *github.Issue as arg…
ktun95 Jan 21, 2026
828b99c
feat(issue): remove TestExtractFromTemplate as it is no longer needed
ktun95 Jan 21, 2026
033535a
test(issue): add assertions to extract tests and remove logs
ktun95 Jan 21, 2026
7aa969c
fix(go.mod): upgrade github.com/yuin/goldmark to v1.7.16
ktun95 Jan 21, 2026
79c11e2
feat(issue): implement issue labeling and email extraction functionality
ktun95 Jan 21, 2026
60a23cc
feat(html): add MarkdownToHTML function to convert markdown to HTML
ktun95 Jan 21, 2026
af02ada
feat: upgrade github client to v62 and remove legacy client
ktun95 Feb 2, 2026
c152d53
feat(html/parser.go): refactor HTML parsing to use html.Node and add …
ktun95 Feb 3, 2026
948641d
feat(parser): rename package `html` to `parser`
ktun95 Feb 3, 2026
24beed3
refactor: rename html package to parser for better clarity
ktun95 Feb 3, 2026
554467d
refactor(issue): rename htmlparser package to parser and use email pa…
ktun95 Feb 3, 2026
1e21cd0
feat: add order update email template for sending order status updates
ktun95 Feb 3, 2026
91d7d82
feat(email): implement email sending functionality using Mailgun
ktun95 Feb 3, 2026
19373e6
refactor(email): use mailgun package function for new message creation
ktun95 Feb 3, 2026
757743f
fix(issue): rename issue flag to issueid to avoid conflicts
ktun95 Feb 3, 2026
7042fef
feat(parser): rename extractOrderData to ExtractOrderData and add com…
ktun95 Feb 3, 2026
24a00f2
refactor(email): rename EmailClient to MailgunClient and inline templ…
ktun95 Feb 3, 2026
9f95e1d
feat: remove issue extraction logic and tests
ktun95 Feb 3, 2026
b073e0b
feat(issue): refactor issue label email to use new parser and email p…
ktun95 Feb 3, 2026
4ad5211
docs(parser.go): refine ExtractOrderData godoc to improve clarity
ktun95 Feb 3, 2026
71974d0
refactor(issue): rename context variable 'c' to 'clt' for clarity
ktun95 Feb 3, 2026
45a20d0
build(go.mod): update indirect dependencies to their latest versions
ktun95 Feb 3, 2026
ec99e61
refactor(parser_test.go): parse HTML string to *html.Node for parsing
ktun95 Feb 3, 2026
a120f99
feat(email): add email client tests to verify configuration
ktun95 Feb 3, 2026
8a1437b
refactor(email): create createEmailHTML function to generate email HTML
ktun95 Feb 17, 2026
a2d5188
feat(email): upgrade mailgun-go to v5 and use embedded templates
ktun95 Feb 17, 2026
30e39e9
feat: upgrade mailgun-go/v5 and testify, remove go-chi/chi/v5
ktun95 Feb 17, 2026
d431c0a
feat(.golangci.yml): configure golangci-lint with specific linters an…
ktun95 Feb 18, 2026
5814648
refactor(issue): rename IssueLabelEmail to SendIssueLabelEmail for cl…
ktun95 Feb 18, 2026
ea3ccac
refactor: use io.Writer interface return value to avoid potential errors
ktun95 Feb 18, 2026
634bbee
test(issue): add error check for flag parsing in TestGetIssue
ktun95 Feb 18, 2026
e890abf
fix(lint.yaml): update golangci-lint-action version to v2.7.1
ktun95 Feb 18, 2026
8f020d1
feat(lint.yaml): upgrade golangci-lint-action to v7
ktun95 Feb 18, 2026
ed6030d
feat(issue): add flag for specifying the sender email address
ktun95 Feb 18, 2026
4dd110d
fix(issue): add timeout to email sending to prevent indefinite delays
ktun95 Feb 18, 2026
a156b2b
refactor(issue): extract issue fetching and parsing into a function
ktun95 Feb 18, 2026
a085c58
refactor(issue): move github client initialization to fetchAndParseIssue
ktun95 Feb 18, 2026
eb518f5
fix(issue): change issueid flag type from StringFlag to IntFlag
ktun95 Feb 18, 2026
8ef5a63
refactor(issue): enhance logging in SendIssueLabelEmail function
ktun95 Feb 18, 2026
a0f40b9
refactor(parser): precompile email and order ID regex patterns
ktun95 Feb 18, 2026
eba042a
feat(parser): add MarkdownToHTML function and tests for markdown parsing
ktun95 Feb 18, 2026
b8b1cc4
feat(issue): add test cases for getIssueBody function to improve cove…
ktun95 Feb 18, 2026
ceac8cc
refactor(issue): extract and validate order data into a separate func…
ktun95 Feb 18, 2026
79723ac
feat(email): add tests for email template and HTML creation
ktun95 Feb 18, 2026
bfbbf6d
refactor(email): remove unused resp variable from SendOrderUpdateEmail
ktun95 Feb 18, 2026
a8d868f
feat(email): remove API key from Mailgun config struct
ktun95 Feb 18, 2026
c02de05
fix(email): correct the order of arguments in NewEmailClient function
ktun95 Feb 18, 2026
aeeeb28
feat(issue): add apiKey flag to issue label email commands
ktun95 Feb 18, 2026
9ff9edc
fix(issue): reorder flags to ensure logical grouping and consistency
ktun95 Feb 18, 2026
ca439cc
fix: update issue number and data in tests and testdata to match issu…
ktun95 Feb 20, 2026
2d8a4d6
feat(email): include stock data in order update emails
ktun95 Feb 20, 2026
6c31b83
feat(email): revamp order update email template for improved UX
ktun95 Feb 20, 2026
33babac
feat(parser): extract strain and plasmid info from order HTML
ktun95 Feb 20, 2026
86ce688
feat: remove issue template file
ktun95 Feb 20, 2026
98e73ab
feat(email): improve order update email template and test coverage
ktun95 Feb 20, 2026
10cd666
refactor(email): remove stock data table from order update email
ktun95 Apr 6, 2026
64c33d6
feat(parser): extract billing email from "Ship To:" heading instead o…
ktun95 Apr 6, 2026
934fa71
fix(issue.json): change shipping address format in body_html
ktun95 Apr 6, 2026
79ad384
refactor(parser): improve stock data extraction and email parsing
ktun95 Apr 6, 2026
fd61512
feat(issue.json): restructure strain and plasmid info in test data
ktun95 Apr 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
go-version: 1.22
cache: false
- name: run linter
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v7
with:
version: v1.58.2
version: v2.7.1
58 changes: 34 additions & 24 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,24 @@
linters-settings:
lll:
line-length: 2380
funlen:
lines: 75
errcheck:
ignore : ""
version: "2"
linters:
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true
default: none
enable:
- asciicheck
- bodyclose
- cyclop
- cyclop
- decorder
- dogsled
- dupl
- errcheck
- errname
- funlen
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- goimports
- gosec
- gosimple
- govet
- gocognit
- ineffassign
- lll
- maintidx
Expand All @@ -37,25 +27,45 @@ linters:
- nestif
- nilerr
- nolintlint
- prealloc
- paralleltest
- prealloc
- revive
- rowserrcheck
- staticcheck
- stylecheck
- typecheck
- unconvert
- thelper
- tparallel
- unparam
- unused
- unconvert
- unparam
- unused
- varnamelen
- wastedassign
- whitespace
- wrapcheck

# don't enable:
# - godox - maligned,prealloc
# - gochecknoglobals
settings:
errcheck:
disable-default-exclusions: true
funlen:
lines: 75
lll:
line-length: 2380
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
1 change: 1 addition & 0 deletions cmd/github-actions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func main() {
app.Commands = []cli.Command{
cmd.IssueCommentCmds(),
cmd.CommentsCountByDateCmds(),
cmd.IssueLabelEmailCmds(),
cmd.StoreReportCmd(),
cmd.DeployStatusCmd(),
cmd.ShareDeployPayloadCmd(),
Expand Down
11 changes: 8 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ go 1.22

require (
github.com/Jeffail/gabs/v2 v2.7.0
github.com/google/go-github/v32 v32.1.0
github.com/google/go-github/v62 v62.0.0
github.com/mailgun/mailgun-go/v5 v5.13.1
github.com/minio/minio-go v6.0.14+incompatible
github.com/repeale/fp-go v0.11.1
github.com/sethvargo/go-githubactions v1.3.0
github.com/sirupsen/logrus v1.9.3
github.com/stretchr/testify v1.10.0
github.com/stretchr/testify v1.11.1
github.com/urfave/cli v1.22.16
github.com/yuin/goldmark v1.7.16
golang.org/x/exp v0.0.0-20220613132600-b0d781184e0d
golang.org/x/net v0.34.0
golang.org/x/oauth2 v0.26.0
golang.org/x/sync v0.11.0
golang.org/x/text v0.22.0
Expand All @@ -34,17 +36,20 @@ require (
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.14.1 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/oapi-codegen/runtime v1.1.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
go.opentelemetry.io/otel v1.32.0 // indirect
go.opentelemetry.io/otel/metric v1.32.0 // indirect
go.opentelemetry.io/otel/trace v1.32.0 // indirect
golang.org/x/crypto v0.32.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/sys v0.29.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250124145028-65684f501c47 // indirect
google.golang.org/grpc v1.70.0 // indirect
Expand Down
31 changes: 19 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,25 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
github.com/go-chi/chi/v5 v5.2.5 h1:Eg4myHZBjyvJmAFjFvWgrqDTXFyOzjj7YIm3L3mu6Ug=
github.com/go-chi/chi/v5 v5.2.5/go.mod h1:X7Gx4mteadT3eDOMTsXzmI4/rwUpOwBHLpAfupzFJP0=
github.com/go-ini/ini v1.66.6 h1:h6k2Bb0HWS/BXXHCXj4QHjxPmlIU4NK+7MuLp9SD+4k=
github.com/go-ini/ini v1.66.6/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8=
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-github/v32 v32.1.0 h1:GWkQOdXqviCPx7Q7Fj+KyPoGm4SwHRh8rheoPhd27II=
github.com/google/go-github/v32 v32.1.0/go.mod h1:rIEpZD9CTDQwDK9GDrtMTycQNA4JU3qBsCizh3q2WCI=
github.com/google/go-github/v62 v62.0.0 h1:/6mGCaRywZz9MuHyw9gD1CwsbmBX8GWsbFkwMmHdhl4=
github.com/google/go-github/v62 v62.0.0/go.mod h1:EMxeUqGJq2xRu9DYBMwel/mr7kZrzUOfQmmpYrZn2a4=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/s2a-go v0.1.9 h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0=
github.com/google/s2a-go v0.1.9/go.mod h1:YA0Ei2ZQL3acow2O62kdp9UlnvMmU7kA6Eutn0dXayM=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
Expand All @@ -43,16 +42,27 @@ github.com/googleapis/enterprise-certificate-proxy v0.3.4 h1:XYIDZApgAnrN1c855gT
github.com/googleapis/enterprise-certificate-proxy v0.3.4/go.mod h1:YKe7cfqYXjKGpGvmSg28/fFvhNzinZQm8DGnaburhGA=
github.com/googleapis/gax-go/v2 v2.14.1 h1:hb0FFeiPaQskmvakKu5EbCbpntQn48jyHuvrkurSS/Q=
github.com/googleapis/gax-go/v2 v2.14.1/go.mod h1:Hb/NubMaVM88SrNkvl8X/o8XWwDJEPqouaLeN2IUxoA=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/mailgun/mailgun-go/v5 v5.13.1 h1:593rwOzqjdG7eoBRmHz1x8otqsDfWgNqSy3OBLu6no4=
github.com/mailgun/mailgun-go/v5 v5.13.1/go.mod h1:8jl24zvg8DPd5R3dUGIM77J76CWE+esAO+3w0/1c9AA=
github.com/minio/minio-go v6.0.14+incompatible h1:fnV+GD28LeqdN6vT2XdGKW8Qe/IfjJDswNVuni6km9o=
github.com/minio/minio-go v6.0.14+incompatible/go.mod h1:7guKYtitv8dktvNUGrhzmNlA5wrAABTQXCoesZdFQO8=
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/oapi-codegen/runtime v1.1.2 h1:P2+CubHq8fO4Q6fV1tqDBZHCwpVpvPg7oKiYzQgXIyI=
github.com/oapi-codegen/runtime v1.1.2/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/repeale/fp-go v0.11.1 h1:Q/e+gNyyHaxKAyfdbBqvip3DxhVWH453R+kthvSr9Mk=
Expand All @@ -67,15 +77,18 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
github.com/urfave/cli v1.22.16 h1:MH0k6uJxdwdeWQTwhSO42Pwr4YLrNLwBtg1MRgTqPdQ=
github.com/urfave/cli v1.22.16/go.mod h1:EeJR6BKodywf4zciqrdw6hpCPk68JO9z5LazXZMn5Po=
github.com/yuin/goldmark v1.7.16 h1:n+CJdUxaFMiDUNnWC3dMWCIQJSkxH4uz3ZwQBkAlVNE=
github.com/yuin/goldmark v1.7.16/go.mod h1:ip/1k0VRfGynBgxOz0yCqHrbZXhcjxyuS66Brc7iBKg=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 h1:TT4fX+nBOA/+LUkobKGW1ydGcn+G3vRw9+g5HwCphpk=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0/go.mod h1:L7UH0GbB0p47T4Rri3uHjbpCFYrVrwc1I25QhNPiGK8=
go.opentelemetry.io/otel v1.32.0 h1:WnBN+Xjcteh0zdk01SVqV55d/m62NJLJdIyb4y/WO5U=
Expand All @@ -88,30 +101,24 @@ go.opentelemetry.io/otel/sdk/metric v1.32.0 h1:rZvFnvmvawYb0alrYkjraqJq0Z4ZUJAiy
go.opentelemetry.io/otel/sdk/metric v1.32.0/go.mod h1:PWeZlq0zt9YkYAp3gjKZ0eicRYvOh1Gd+X99x6GHpCQ=
go.opentelemetry.io/otel/trace v1.32.0 h1:WIC9mYrXf8TmY/EXuULKc8hR17vE+Hjv2cssQDe03fM=
go.opentelemetry.io/otel/trace v1.32.0/go.mod h1:+i4rkvCraA+tG6AzwloGaCtkx53Fa+L+V8e9a7YvhT8=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=
golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc=
golang.org/x/exp v0.0.0-20220613132600-b0d781184e0d h1:vtUKgx8dahOomfFzLREU8nSv25YHnTgLBn4rDnWZdU0=
golang.org/x/exp v0.0.0-20220613132600-b0d781184e0d/go.mod h1:Kr81I6Kryrl9sr8s2FK3vxD90NdsKWRuOIl2O4CvYbA=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.26.0 h1:afQXWNNaeC4nvZ0Ed9XvCCzXM6UHJG7iCg0W4fPqSBE=
golang.org/x/oauth2 v0.26.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/api v0.219.0 h1:nnKIvxKs/06jWawp2liznTBnMRQBEPpGo7I+oEypTX0=
google.golang.org/api v0.219.0/go.mod h1:K6OmjGm+NtLrIkHxv1U3a0qIf/0JOvAHd5O/6AoyKYE=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 h1:CkkIfIt50+lT6NHAVoRYEyAvQGFM7xEwXUUywFvEb3Q=
google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576/go.mod h1:1R3kvZ1dtP3+4p4d3G8uJ8rFk/fWlScl38vanWACI08=
google.golang.org/genproto/googleapis/rpc v0.0.0-20250124145028-65684f501c47 h1:91mG8dNTpkC0uChJUQ9zCiRqx3GEEFOWaRZ0mI6Oj2I=
Expand Down
4 changes: 3 additions & 1 deletion internal/app/chatops/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"

"github.com/dictyBase-docker/github-actions/internal/logger"
"github.com/google/go-github/v32/github"
"github.com/google/go-github/v62/github"
"github.com/sethvargo/go-githubactions"
"github.com/urfave/cli"
)
Expand All @@ -35,6 +35,7 @@ type branchGetter interface {
owner string,
repo string,
branch string,
maxRedirects int,
) (*github.Branch, *github.Response, error)
}

Expand Down Expand Up @@ -221,6 +222,7 @@ func (bc *branchClient) getHeadCommitFromBranch(
owner,
name,
branch,
0,
)
if err != nil {
return "", fmt.Errorf("error getting pull request info %s", err)
Expand Down
3 changes: 2 additions & 1 deletion internal/app/chatops/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"testing"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v62/github"
"github.com/stretchr/testify/require"
)

Expand All @@ -33,6 +33,7 @@ func (m *mockBranchClient) GetBranch(
_ string,
_ string,
_ string,
_ int,
) (*github.Branch, *github.Response, error) {
return m.resp, nil, nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/app/dagger/dagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func RemoveInvalidControlChars(strc string) string {
var builder strings.Builder
for _, rtc := range strc {
if rtc >= 32 && rtc != 127 {
builder.WriteRune(rtc)
_, _ = builder.WriteRune(rtc)
}
}

Expand Down
Loading
Loading