Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #2

Open
wants to merge 381 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
381 commits
Select commit Hold shift + click to select a range
5a5c5ca
[feat]: [PL-25025]: Changelog Updated to v1.22.0 (#180)
mankrit-singh May 10, 2022
7664143
[PL-24913]: Handle the error raised while creating a multipart input …
DeepakPatankar May 12, 2022
1ff5fea
Add the support to fetch commit of a file
DeepakPatankar May 16, 2022
bb2f62e
Merge pull request #182 from DeepakPatankar/deepak/add-path-as-a-para…
May 16, 2022
a262104
Remove the null value de-reference issue
DeepakPatankar May 17, 2022
7f78ca0
Merge pull request #183 from DeepakPatankar/deepak/PL-25812
May 17, 2022
d651af5
Upgrade the scm version
DeepakPatankar May 23, 2022
1383324
Merge pull request #185 from DeepakPatankar/deepak/upgrade-scm
May 23, 2022
9acf83b
[CI-4621]: Added PR find and listCommits API support in go-scm
raghavharness Jun 1, 2022
21c8989
Merge pull request #1 from raghavharness/raghav/CI-4621
raghavharness Jun 1, 2022
2cc03ad
[CI-4621]: go mod change
raghavharness Jun 1, 2022
8fd8aad
Merge pull request #2 from raghavharness/raghav/CI-4621
raghavharness Jun 1, 2022
71867bc
revert
raghavharness Jun 2, 2022
0dd9278
go fmt
raghavharness Jun 2, 2022
d1b4495
Merge pull request #188 from raghavharness/raghav/CI-4621
shubham149 Jun 2, 2022
74701d0
remove slash from list commits api
aman-harness Jun 5, 2022
b5cf3d3
Merge pull request #190 from aman-harness/patch-4
bradrydzewski Jun 5, 2022
4c30731
fix dupes in pagination
bradrydzewski Jun 5, 2022
63b6fb0
Using target commit instead of source in base info for azure (#189)
raghavharness Jun 6, 2022
424d106
release_prep_v1.24.0
Jun 7, 2022
8291912
Merge pull request #191 from tphoney/release_prep_v1.24.0
Jun 7, 2022
16ae602
Merge branch 'master' of https://github.com/drone/go-scm
raghavharness Jun 11, 2022
5c53bd5
[CI-4622]: Added projectFilter for ListHooks API for Azure
raghavharness Jun 11, 2022
3ad574a
Merge pull request #192 from raghavharness/raghav/CI-4622
shubham149 Jun 13, 2022
f5cea0e
[PL-25889]: fix list branches Azure API
bhavya181 Jun 15, 2022
b62b9fc
Support parsing Gitlab Note Hook event
rutvijmehta-harness Jun 14, 2022
2b5fe79
Merge pull request #195 from bhavya181/PL-25889
Jun 15, 2022
b3b6eb1
Merge pull request #194 from rutvijmehta-harness/gitlab_comment
shubham149 Jun 16, 2022
c9023cd
Update scm version 1.25.0
rutvijmehta-harness Jun 16, 2022
bc10b60
Merge pull request #197 from rutvijmehta-harness/update_v1_25_0
Jun 16, 2022
c7f09d3
[CI-4623] - Azure webhook parseAPI changes
raghavharness Jun 19, 2022
f626070
Merge pull request #198 from raghavharness/raghav/CI-4623
Jun 20, 2022
cc265c1
Fixed formatting in README.md
hemanthmantri Jun 20, 2022
bff9695
Merge pull request #199 from hemanthmantri/patch-1
Jun 21, 2022
71ecc3b
added issue comment hook support for Azure (#200)
raghavharness Jun 28, 2022
152fbb8
Support parsing PR comment events for Bitbucket Cloud
rutvijmehta-harness Jun 24, 2022
eda0c70
Merge pull request #202 from rutvijmehta-harness/master
Jun 29, 2022
5f245ea
Update scm version 1.26.0 (#203)
rutvijmehta-harness Jun 30, 2022
9b81b04
using resource version 2.0 for Azure
raghavharness Jul 14, 2022
2e3f1a5
Merge pull request #205 from drone/azure_issue_comment_version_fix
shubham149 Jul 18, 2022
6501805
Update scm version 1.27.0 (#206)
raghavharness Jul 19, 2022
07b069c
gogs find commit for branch
bradrydzewski Jul 24, 2022
c29b3f1
escape forward slashes in gitlab branch name
bradrydzewski Jul 24, 2022
99b9843
(maint) fixing naming and add more go best practice
Jul 26, 2022
b8f5fce
Merge pull request #211 from tphoney/naming_conventions
Jul 26, 2022
6024f33
[PL-26239]: added api to list installation for github app
bhavya181 Aug 4, 2022
f481597
adopt golangci config from Rancher project
bradrydzewski Aug 7, 2022
b9de5f5
pin golangci version to use image from docker cache
bradrydzewski Aug 7, 2022
48f05b7
Merge pull request #213 from bhavya181/github-app
bradrydzewski Aug 7, 2022
3edbe55
upate function to match convention List[By] where By is singular
bradrydzewski Aug 7, 2022
43b3e0a
update list (by) installation name
bradrydzewski Aug 8, 2022
09a4fde
Added support for branch in list commits bb onprem API (#215)
mohitg0795 Aug 17, 2022
b83308f
fix naming convention for CreateBranch Input
bradrydzewski Aug 23, 2022
f4a3110
[PL-26239]: fix for list response (#218)
bhavya181 Aug 26, 2022
c43e9f0
added date info for commits in push hook (#223)
raghavharness Sep 5, 2022
531cb95
added omitempty annotation for secret (#221)
raghavharness Sep 5, 2022
7ee0aa5
decoding projectName for azure repo (#224)
raghavharness Sep 8, 2022
32e6800
use merge commit sha if pull request is merged for bitbucket
raghavharness Sep 13, 2022
cfb5ca9
changes for stash
raghavharness Sep 14, 2022
e073dbf
Add field to capture merge sha
bradrydzewski Sep 14, 2022
3eba41b
Merge branch 'master' of https://github.com/drone/go-scm into bitbuck…
raghavharness Sep 14, 2022
c7c7db6
use new merge field instead of exisiting sha field
raghavharness Sep 14, 2022
b1a365c
Merge pull request #225 from drone/bitbucket_sha_fix
bradrydzewski Sep 14, 2022
a6796f5
Add Actor UUID to Sender for all webhooks responses for Bitbucket
rutvijmehta-harness Sep 23, 2022
81afb0f
fixbug: gitee convert repository (#226)
kit101 Sep 27, 2022
ed290da
Merge pull request #227 from rutvijmehta-harness/master
bradrydzewski Sep 27, 2022
692aa9a
Add Actor UUID to push and branch create events for Bitbucket
rutvijmehta-harness Nov 10, 2022
b29a0d2
Merge pull request #230 from rutvijmehta-harness/master
bradrydzewski Nov 10, 2022
1949a8e
Add support for Github release webhook (#229)
vcalasansh Nov 16, 2022
5f3c262
(maint) release prep for 1.28.0 (#232)
Nov 22, 2022
ef3c3cc
feat: [PIE-7927]: added header to avoid/bypass csrf check (#234)
mohitg0795 Jan 27, 2023
4121e2c
(maint) prep 1.28.1 release (#235)
Jan 27, 2023
4428a9b
fix: [PIE-7927]: Fix header value typo issue for BB OnPrem CSRF heade…
mohitg0795 Jan 30, 2023
ca3776c
Harness move (#237)
Feb 6, 2023
7df18e1
(feat) harness, add repo list
Feb 7, 2023
e62b23f
(feat) harness, add find repo
Feb 7, 2023
2066d10
fix, harness add blobid for update
Feb 7, 2023
8a67193
Merge pull request #241 from tphoney/harness_repo_calls
Feb 7, 2023
16252ff
(feat) harness, add webhook parsing
Feb 8, 2023
ff7deab
(feat) harness, add list webhooks
Feb 8, 2023
b8eea16
(feat) harness, add find hook
Feb 8, 2023
d6e3618
(feat) harness, add create / delete webhook
Feb 8, 2023
0c921db
Merge pull request #244 from tphoney/harness_webhooks
Feb 8, 2023
df6c516
fetch branch for bitbucket onprem
devkimittal Feb 7, 2023
8343d3e
Merge pull request #242 from drone/devmittal
devkimittal Feb 9, 2023
85d76f0
(feat) harness, add list commits / branches
Feb 8, 2023
decf0c3
Merge pull request #245 from tphoney/harness_commits_branches
Feb 9, 2023
2fd1410
(feat) harness, add user and compare branches
Feb 9, 2023
90aca8d
Merge pull request #246 from tphoney/git_users
Feb 9, 2023
f8d9958
(feat) harness, fix create branch, PR calls
Feb 9, 2023
cc7b846
(feat) harness, add get pr commits
Feb 10, 2023
3d6625f
(feat) harness, add create PR
Feb 10, 2023
eab2fbe
Merge pull request #247 from tphoney/harness_pr
Feb 10, 2023
643af2e
(fix) harness, webhook fixes
Feb 10, 2023
288a76a
Merge pull request #248 from tphoney/harness-webhook-fix
Feb 10, 2023
f8f38df
(feat) harness, add finduser
Feb 13, 2023
1ddface
Merge pull request #250 from tphoney/harness_user
Feb 13, 2023
a9651b1
(maint) prep for 1.29.0
Feb 15, 2023
20ab723
Merge pull request #251 from tphoney/prep1.29.0
Feb 15, 2023
971da4d
update list url to scopepath instead of path (#249)
eoinmcafee00 Feb 15, 2023
430a0a7
add required header for bitbucket server in commit API use-case to ha…
mohitg0795 Feb 15, 2023
2957cd3
release prep v1.29.1
eoinmcafee00 Feb 16, 2023
6c7a64c
Merge pull request #252 from mohitg0795/bitbucket-header-fix
Feb 16, 2023
bdac483
fix: [CI-6978] fixed gitlab webhook parse
devkimittal Mar 1, 2023
de2a54e
Merge pull request #253 from drone/devmittal
Mar 1, 2023
194f53f
fix: [CDS-67745]: fix find user email api for bitbucket in go-scm (#255)
shalini-agr Apr 28, 2023
5877f38
feat: [CDS-69341]: add find user email api for github in go-scm (#256)
shalini-agr May 15, 2023
ad21d44
(maint) stash/bitbucket on prem v5 add push webhook test (#257)
Jun 22, 2023
64a614c
[feat]: [CDS-73030]: Support for text based branch filtration
adivishy1 Jul 5, 2023
aefd6d1
[feat]: [CDS-73030]: added comments
adivishy1 Jul 5, 2023
3947016
Merge pull request #260 from adivishy1/master
rajatharanganath Jul 7, 2023
70cccf8
[feat]: [CDS-73572]: Support List Repo Live Search for all git providers
adivishy1 Jul 19, 2023
beec4da
Merge pull request #261 from adivishy1/master
rajatharanganath Jul 19, 2023
d86848a
fix: [CODE-727]: change to gitness from harness
abhinav-harness Aug 8, 2023
d363e65
fix: [CODE-727]: change to gitness from harness
abhinav-harness Aug 8, 2023
0f7857f
Implemented FindMembership method in organization service for gitea d…
cod3rboy Aug 10, 2023
cc305a6
[IAC-941]: PR comment creation for BitBucket (#265)
scottyw-harness Aug 14, 2023
6906e84
(maint) v1.31.0 release prep (#266)
Aug 15, 2023
1579795
Fix compare change api result for harness (#267)
shubham149 Aug 23, 2023
5098db8
Fix api name for fetching diff in harness driver (#268)
shubham149 Aug 29, 2023
8764ac0
Fix diff api response conversion for harness compareChange (#269)
shubham149 Aug 29, 2023
bec9362
[feat]: [CDS-75848]: Add new action type for github provider
rathodmeetsatish Aug 29, 2023
b2bdb6d
fix: [CODE-727]: change to gitness from harness
abhinav-harness Aug 30, 2023
c91f424
fix: [CODE-727]: change to gitness from harness
abhinav-harness Aug 30, 2023
8d6a8e3
fix: [CODE-727]: change to gitness from harness
abhinav-harness Aug 30, 2023
13e99fa
fix: [CODE-727]: change to gitness from harness
abhinav-harness Aug 30, 2023
e2d6b14
Merge pull request #264 from drone/abhinav/CODE-727
abhinav-harness Aug 31, 2023
84d449a
Add review ready action for gitlab
rathodmeetsatish Sep 7, 2023
2d64e5c
address comments
rathodmeetsatish Sep 11, 2023
7065a05
Merge pull request #270 from rathodmeetsatish/master
bradrydzewski Sep 11, 2023
e0123f7
(maint) release prep for 1.32.0
invalid-email-address Sep 12, 2023
0321acd
Merge pull request #272 from tphoney/prep1.32.0
Sep 12, 2023
13e5d45
(maint) clean integration testing for stash
invalid-email-address Sep 12, 2023
0392b78
Merge pull request #273 from tphoney/clean_testing
Sep 12, 2023
3ce608d
fix: Gitness get content missing query param
abhinav-harness Sep 27, 2023
6db398c
Merge pull request #275 from drone/abhinav/fix-gitness-get-content
Sep 27, 2023
b66c7e1
(maint) prep for 1.32.1
invalid-email-address Sep 27, 2023
60fa179
Merge pull request #276 from tphoney/prep1.32.1
Sep 27, 2023
3b21a0f
fix: Harness list commits api update as per new spec (#277)
abhinav-harness Oct 3, 2023
166ac92
fix: ref should have pullreq instead of pull for gitness (#278)
abhinav-harness Oct 11, 2023
6982ab8
feat: add more parsed data in harness webhook parsing (#279)
abhinav-harness Oct 11, 2023
a5db7f4
feat: Add pr_comment webhook for harness (#280)
abhinav-harness Oct 25, 2023
dc565fc
(maint) prep 1.33.0
invalid-email-address Oct 27, 2023
1050b3d
Merge pull request #281 from tphoney/prep1.33.0
Oct 27, 2023
a802ce1
feat: add support for branch update for gitness (#283)
abhinav-harness Dec 6, 2023
96d3e4f
(maint) v1.34.0 prep
invalid-email-address Dec 7, 2023
868dd43
Merge pull request #284 from tphoney/v1.34.0
Dec 7, 2023
05fe67f
fix: use opts for harness list commits
abhinav-harness Dec 8, 2023
e578c65
Merge pull request #286 from drone/abhinav/list-commit-harness
Dec 8, 2023
8ddff1f
(maint) v1.34.1 release prep
invalid-email-address Dec 8, 2023
e960969
Merge pull request #287 from tphoney/v1.34.1
Dec 8, 2023
e6556d1
feat: support more events in webhook parse in go-scm for gitness (#289)
abhinav-harness Dec 20, 2023
2877ffa
fix: ref should be branch name for harness code (#288)
abhinav-harness Dec 20, 2023
93042b7
feat: add pr link as coming from new webhook (#290)
abhinav-harness Dec 20, 2023
5a98a57
Update content.go
senjucanon2 Jan 8, 2024
b4f0d9b
Update content.go
senjucanon2 Jan 8, 2024
c1465b7
Update content.go
senjucanon2 Jan 9, 2024
64261e5
Update content.go
senjucanon2 Jan 9, 2024
de9fc72
Update content.go
senjucanon2 Jan 9, 2024
f637c3c
Update content.go
senjucanon2 Jan 9, 2024
6ee41cf
Update content.go
senjucanon2 Jan 9, 2024
9982b16
Update content.go
senjucanon2 Jan 9, 2024
da64c1c
Update content.go
senjucanon2 Jan 9, 2024
be2ecb2
Update content.go
senjucanon2 Jan 9, 2024
474ee0b
Added UTs
senjucanon2 Jan 10, 2024
18b3b41
Merge pull request #291 from senjucanon2/master
mohitg0795 Jan 11, 2024
f5e5a75
set query params for pagination in bitbucket server
raghavharness Feb 6, 2024
8a56783
set query params for pagination in bitbucket server
raghavharness Feb 6, 2024
4f7b529
set query params for pagination in bitbucket server
raghavharness Feb 6, 2024
294a5aa
Merge pull request #293 from drone/stash_pr_commits_pagination
raghavharness Feb 7, 2024
9d3ec6b
feat: change as per new contract of webhook in harness code (#294)
abhinav-harness Feb 9, 2024
91387e9
Add harness comment (#295)
nassergonzalez Feb 21, 2024
290c4aa
feat: follow new api convention (#296)
abhinav-harness Mar 1, 2024
fcc8453
fix: tag webhook parse for code (#297)
abhinav-harness Mar 12, 2024
95e7cdc
Update util.go
senjucanon2 Mar 19, 2024
44a195c
Update util.go
senjucanon2 Mar 19, 2024
b43614d
Update util.go
senjucanon2 Mar 19, 2024
55f6df5
Update util.go
senjucanon2 Mar 19, 2024
68b549a
Update util.go
senjucanon2 Mar 19, 2024
d2e8e4e
Update util.go
senjucanon2 Mar 19, 2024
b23de2c
Update util.go
senjucanon2 Mar 20, 2024
1eb7655
Update util.go
senjucanon2 Mar 20, 2024
39d795f
Update util.go
senjucanon2 Mar 20, 2024
dcd4b47
Update util.go
senjucanon2 Mar 20, 2024
c06f5b7
Update util.go
senjucanon2 Mar 20, 2024
f8119f1
Update util.go
senjucanon2 Mar 20, 2024
594c68b
Update util.go
senjucanon2 Mar 20, 2024
142ee30
feat: pr harness parse all fields (#302)
abhinav-harness Mar 20, 2024
6089476
Merge pull request #301 from senjucanon2/master
adivishy1 Mar 25, 2024
845e445
Update .drone.yml
bradrydzewski Apr 16, 2024
1255b15
feat: fixed harness UTs based on new API convention (#303)
hitesharinga Apr 17, 2024
bf93d79
fix: [CODE-1870]: adding cloneUrl to the convertRepository method for…
karansaraswat19 May 6, 2024
9de001d
fixed tests
karansaraswat19 May 6, 2024
7d40648
[feat]: [CI-12179]: Add support for gitlab basesha
smjt-h May 6, 2024
0a0caf1
Merge pull request #304 from drone/CODE-1870
karansaraswat19 May 6, 2024
1cd57db
add diff_refs json
smjt-h May 8, 2024
9e8b4ca
Merge pull request #306 from drone/gitlabsha
smjt-h May 9, 2024
9b7f437
feat: [CODE-1907]: Fix go-scm azure driver for getting namespace in t…
karansaraswat19 May 15, 2024
6e98856
feat: [IAC-1930]: fixed ListTags
vitsafronovici May 28, 2024
34f93ff
fixed tests
vitsafronovici May 30, 2024
a2e3a61
fixed notes
vitsafronovici May 30, 2024
bd00040
fixed notes
vitsafronovici May 30, 2024
99ca5aa
removed println
vitsafronovici May 30, 2024
9d07172
fixed notes
vitsafronovici May 30, 2024
99568c3
Merge pull request #310 from drone/IAC-1930
bradrydzewski May 30, 2024
fc4336b
feat: add list namespace for repos (#309)
abhinav-harness Jun 6, 2024
2e2589d
fix query params for List PRs API call for stash provider for paginat…
karansaraswat19 Jun 17, 2024
77eb503
Merge pull request #312 from drone/CODE-2023
karansaraswat19 Jun 18, 2024
ced9941
feat: [IAC-2101]: added ListTags for Harness Code
vitsafronovici Jun 21, 2024
57ce083
removed prints
vitsafronovici Jun 21, 2024
15e91da
Merge pull request #313 from drone/IAC-2101
vitsafronovici Jun 21, 2024
7f588f4
fix unmarshalling array into Go value of type github.searchRepository…
karansaraswat19 Jun 25, 2024
b8beb99
Merge pull request #314 from drone/ks/CODE-2043
karansaraswat19 Jun 25, 2024
8ad6b66
setting azure devops repo visibility based on the project's visibility
karansaraswat19 Jul 5, 2024
92b5486
fixed test
karansaraswat19 Jul 5, 2024
8df99c4
fixed TestRepositoryFind for azure driver
karansaraswat19 Jul 5, 2024
ecdc44a
Merge pull request #315 from drone/ks/CODE-2072
karansaraswat19 Jul 6, 2024
0d2baa2
fix: [IAC-2201]: fixed looping endless pagination
vitsafronovici Jul 16, 2024
8aca10b
adjust
vitsafronovici Jul 16, 2024
f3725ef
removed logs
vitsafronovici Jul 16, 2024
be67dd5
fixed UT
vitsafronovici Jul 16, 2024
efdcec6
Merge pull request #316 from drone/IAC-2201
vitsafronovici Jul 17, 2024
f23ffd9
add support for harness error message
johannesHarness Jul 25, 2024
4c976e1
Merge pull request #317 from drone/jobatzil/misc/harness_error
karansaraswat19 Jul 29, 2024
845b0c5
Add draft boolean for github and gitlab PRs
karansaraswat19 Aug 2, 2024
0969f30
added for azure devops too
karansaraswat19 Aug 2, 2024
2e4fa5a
Merge pull request #318 from drone/ks/draft-prs
karansaraswat19 Aug 3, 2024
122a705
Update azure.go
senjucanon2 Aug 6, 2024
0116853
Update azure_test.go
senjucanon2 Aug 7, 2024
0ad4451
Merge pull request #319 from senjucanon2/master
mohitg0795 Aug 7, 2024
1eb6efe
feat: [CI-13826]: add check for bitbucket tag slash
smjt-h Aug 22, 2024
48eec0e
feat: [CI-13826]: add UTs
smjt-h Aug 27, 2024
44424ac
Merge pull request #320 from drone/bittagfix
smjt-h Aug 27, 2024
756f053
feat: bypass branch rules as default for file ops (#321)
abhinav-harness Aug 29, 2024
607a215
feat: bypass branch rules as default for create branch ops (#323)
abhinav-harness Sep 18, 2024
63abea2
feat:[CDS-101592]: Add support for parsing Gitlab System Hooks (#324)
puthrayaharness Oct 7, 2024
f42f711
Update pr.go
atefehmohseni Nov 19, 2024
ad49c0a
Update prs.json.golden
atefehmohseni Nov 19, 2024
494c7c7
Update pr.json.golden
atefehmohseni Nov 19, 2024
2cb72e1
Update pr.go
atefehmohseni Nov 19, 2024
8f57b64
Update pr.json.golden
atefehmohseni Nov 19, 2024
44d28c7
Update prs.json.golden
atefehmohseni Nov 19, 2024
a394f0d
Update pr.go
atefehmohseni Nov 19, 2024
de8ab92
Update pr.json.golden
atefehmohseni Nov 19, 2024
587bff3
Update prs.json.golden
atefehmohseni Nov 19, 2024
df65124
gofmt
atefehmohseni Nov 19, 2024
7dc2e34
Merge pull request #326 from drone/atmsn/bb_prauthor
bradrydzewski Nov 19, 2024
d5ed63c
fix: pass gitlab mergerequest param via json body (#322)
olblak Nov 21, 2024
31d79c4
feat: [PIPE-23808]: integrate author details with the harness commits…
karansaraswat19 Dec 2, 2024
d9147fb
Merge pull request #328 from drone/PIPE-23808
karansaraswat19 Dec 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
57 changes: 49 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,56 @@
---
kind: pipeline
type: vm
name: default

workspace:
base: /go
path: src/github.com/drone/go-scm

pool:
use: ubuntu

steps:
- name: vet
image: golang:1.22
commands:
- go vet ./...
volumes:
- name: gopath
path: /go
depends_on:
- clone

- name: test
image: golang:1.11
image: golang:1.22
commands:
- go test -cover ./...
volumes:
- name: gopath
path: /go
depends_on:
- vet

- name: check go.mod is up to date
image: golang:1.22
commands:
- go get github.com/google/go-cmp/cmp
- go get github.com/h2non/gock
- go test -cover github.com/drone/go-scm/scm/...
- cp go.mod go.mod.bak
- go mod tidy
- diff go.mod go.mod.bak || (echo "go.mod is not up to date" && exit 1)
volumes:
- name: gopath
path: /go
depends_on:
- vet

- name: golangci-lint
image: golangci/golangci-lint:v1.48-alpine
commands:
- golangci-lint run --timeout 500s --new-from-rev=HEAD~
volumes:
- name: gopath
path: /go
depends_on:
- clone

volumes:
- name: gopath
temp: {}

...
1 change: 1 addition & 0 deletions .github_changelog_generator
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
since-tag=v1.15.1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
*.out
_*.md
.vscode
.idea
cmd
51 changes: 51 additions & 0 deletions .golangci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"linters": {
"disable-all": true,
"enable": [
"govet",
"revive",
"goimports",
"misspell",
"ineffassign",
"gofmt"
]
},
"linters-settings": {
"govet": {
"check-shadowing": false
},
"gofmt": {
"simplify": false
}
},
"run": {
"skip-dirs": [
"vendor",
"tests",
"pkg/client",
"pkg/generated"
],
"tests": false,
"timeout": "10m"
},
"issues": {
"exclude-rules": [
{
"linters": "govet",
"text": "^(nilness|structtag)"
},
{
"linters": "revive",
"text": "should have comment"
},
{
"linters": "revive",
"text": "should be of the form"
},
{
"linters": "typecheck",
"text": "imported but not used as apierrors"
}
]
}
}
Loading