Skip to content

Commit 2df8da6

Browse files
Copilotjpayne3506
authored andcommitted
ci: Future proof golangci-lint workflow by using dynamic base branch (#3805)
* Initial plan * ci: Future proof golangci-lint workflow by using dynamic base branch Co-authored-by: jpayne3506 <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jpayne3506 <[email protected]>
1 parent 590508b commit 2df8da6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
uses: golangci/golangci-lint-action@v6
3131
with:
3232
version: v1.61
33-
args: --new-from-rev=origin/master --config=.golangci.yml --timeout=25m
33+
args: ${{ github.event_name == 'pull_request' && format('--new-from-rev=origin/{0}', github.base_ref) || '' }} --config=.golangci.yml --timeout=25m

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
issues:
22
max-same-issues: 0
33
max-issues-per-linter: 0
4-
new-from-rev: origin/master
54
linters:
65
presets:
76
- bugs

0 commit comments

Comments
 (0)