mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-01-16 12:24:31 +07:00
Compare commits
86 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07db5389c9 | ||
|
|
328c000029 | ||
|
|
3a79f8d45a | ||
|
|
43c645b597 | ||
|
|
88e5fc6380 | ||
|
|
6191de56c9 | ||
|
|
5423639e7b | ||
|
|
c225631afd | ||
|
|
b81d829cdb | ||
|
|
5b682fd40b | ||
|
|
3c6fb4a9a4 | ||
|
|
5acb063f68 | ||
|
|
08fdc050d7 | ||
|
|
b2bfd0f130 | ||
|
|
ef5f262671 | ||
|
|
a831c707bf | ||
|
|
9305be5e9f | ||
|
|
db74785593 | ||
|
|
4fbce4913d | ||
|
|
739eee4a65 | ||
|
|
bd7227e0c3 | ||
|
|
69982bc3b3 | ||
|
|
bda13fa868 | ||
|
|
c73fd3d91c | ||
|
|
deeca11946 | ||
|
|
ae667cb4ae | ||
|
|
419a536bfa | ||
|
|
1a17d0c27c | ||
|
|
4ed6524494 | ||
|
|
3edd9862e6 | ||
|
|
37d0148f78 | ||
|
|
90ccd72000 | ||
|
|
032fa5c5e4 | ||
|
|
b7bf60a5f7 | ||
|
|
ec5b0e19fc | ||
|
|
fd0768f916 | ||
|
|
3912a545cd | ||
|
|
6c4fff998e | ||
|
|
2856371066 | ||
|
|
beaa3476df | ||
|
|
05a61b80ab | ||
|
|
d5e3361cc5 | ||
|
|
c084df1245 | ||
|
|
954d4da58d | ||
|
|
4f42fc20b5 | ||
|
|
88a61333be | ||
|
|
42f1ace2dc | ||
|
|
e1a59558d0 | ||
|
|
60dc9d3648 | ||
|
|
5513777940 | ||
|
|
92e5575c87 | ||
|
|
6eab792f60 | ||
|
|
0445a18732 | ||
|
|
789454d92c | ||
|
|
0ae0217f51 | ||
|
|
565398b3aa | ||
|
|
2a9d271458 | ||
|
|
7dcc9e5fc3 | ||
|
|
422f985057 | ||
|
|
0db771b9ab | ||
|
|
5724191dd1 | ||
|
|
1ebc11120f | ||
|
|
7ee82f294a | ||
|
|
2de045bd7a | ||
|
|
fcb77afa4d | ||
|
|
0b542c7480 | ||
|
|
19d17f2de0 | ||
|
|
0335180c90 | ||
|
|
aae6024394 | ||
|
|
f016ec070e | ||
|
|
f8ba9f50be | ||
|
|
23255795fb | ||
|
|
1b63d697bd | ||
|
|
946a98c47e | ||
|
|
e837bc5a0c | ||
|
|
62870e168c | ||
|
|
421056684a | ||
|
|
451e84b610 | ||
|
|
1f5703370e | ||
|
|
7e8cc74dba | ||
|
|
bb2438c717 | ||
|
|
89600cb733 | ||
|
|
5c2b59ab34 | ||
|
|
c51d1e2f87 | ||
|
|
f3c064d740 | ||
|
|
6aefae24f7 |
73
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
73
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
name: Bug Report
|
||||
description: "Create a report to help us improve."
|
||||
body:
|
||||
- type: checkboxes
|
||||
id: terms
|
||||
attributes:
|
||||
label: Welcome
|
||||
options:
|
||||
- label: Yes, I understand that the GitHub action repository is not the repository of golangci-lint itself.
|
||||
required: true
|
||||
- label: Yes, I've searched similar issues on GitHub and didn't find any.
|
||||
required: true
|
||||
- label: Yes, I've included all information below (version, config, etc).
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: problem
|
||||
attributes:
|
||||
label: Description of the problem
|
||||
placeholder: Your problem description
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: golangci-lint-version
|
||||
attributes:
|
||||
label: Version of golangci-lint
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: github-action-version
|
||||
attributes:
|
||||
label: Version of the GitHub Action
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: config
|
||||
attributes:
|
||||
label: Workflow file
|
||||
value: |-
|
||||
<details>
|
||||
|
||||
```
|
||||
<add you file here>
|
||||
```
|
||||
|
||||
</details>
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: go-env
|
||||
attributes:
|
||||
label: Go version
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: code-example
|
||||
attributes:
|
||||
label: Code example or link to a public repository
|
||||
value: |-
|
||||
<details>
|
||||
|
||||
```go
|
||||
// add your code here
|
||||
```
|
||||
|
||||
</details>
|
||||
validations:
|
||||
required: true
|
||||
11
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
11
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Questions
|
||||
url: https://github.com/golangci/golangci-lint-action/discussions
|
||||
about: If you have a question, or are looking for advice, please post on our Discussions forum!
|
||||
- name: golangci-lint main repository
|
||||
url: https://github.com/golangci/golangci-lint
|
||||
about: The main repository of golangci-lint.
|
||||
- name: golangci-lint documentation
|
||||
url: https://golangci-lint.run
|
||||
about: Please take a look to our documentation.
|
||||
44
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
Normal file
44
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Feature request
|
||||
description: "Suggest an idea for this project."
|
||||
body:
|
||||
- type: checkboxes
|
||||
id: terms
|
||||
attributes:
|
||||
label: Welcome
|
||||
options:
|
||||
- label: Yes, I understand that the GitHub action repository is not the repository of golangci-lint itself.
|
||||
required: true
|
||||
- label: Yes, I've searched similar issues on GitHub and didn't find any.
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: problem
|
||||
attributes:
|
||||
label: Your feature request related to a problem? Please describe.
|
||||
placeholder: "A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: solution
|
||||
attributes:
|
||||
label: Describe the solution you'd like.
|
||||
placeholder: "A clear and concise description of what you want to happen."
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: alternatives
|
||||
attributes:
|
||||
label: Describe alternatives you've considered.
|
||||
placeholder: "A clear and concise description of any alternative solutions or features you've considered."
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: additional
|
||||
attributes:
|
||||
label: Additional context.
|
||||
placeholder: "Add any other context or screenshots about the feature request here."
|
||||
validations:
|
||||
required: false
|
||||
4
.github/dependabot.yml
vendored
4
.github/dependabot.yml
vendored
@@ -4,11 +4,7 @@ updates:
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
reviewers:
|
||||
- "golangci/team"
|
||||
- package-ecosystem: npm
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: weekly
|
||||
reviewers:
|
||||
- "golangci/team"
|
||||
|
||||
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@@ -11,13 +11,16 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
- run: |
|
||||
npm install
|
||||
npm run all
|
||||
|
||||
# Update dist files if there is label dependencies
|
||||
# Update dist files if there is label dependencies or pull request' author is dependabot[bot] (id = 49699333)
|
||||
- name: Update dist files
|
||||
if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'dependencies')
|
||||
if: github.event_name == 'pull_request' && (github.event.pull_request.user.id == 49699333 || contains(github.event.pull_request.labels.*.name, 'dependencies'))
|
||||
run: |
|
||||
if [[ -z $(git status -s) ]]
|
||||
then
|
||||
|
||||
10
action.yml
10
action.yml
@@ -15,25 +15,25 @@ inputs:
|
||||
github-token:
|
||||
description: "the token is used for fetching patch of a pull request to show only new issues"
|
||||
default: ${{ github.token }}
|
||||
required: true
|
||||
required: false
|
||||
only-new-issues:
|
||||
description: "if set to true and the action runs on a pull request - the action outputs only newly found issues"
|
||||
default: false
|
||||
required: true
|
||||
required: false
|
||||
skip-cache:
|
||||
description: |
|
||||
if set to true then the all caching functionality will be complete disabled,
|
||||
takes precedence over all other caching options.
|
||||
default: false
|
||||
required: true
|
||||
required: false
|
||||
skip-pkg-cache:
|
||||
description: "if set to true then the action doesn't cache or restore ~/go/pkg."
|
||||
default: false
|
||||
required: true
|
||||
required: false
|
||||
skip-build-cache:
|
||||
description: "if set to true then the action doesn't cache or restore ~/.cache/go-build."
|
||||
default: false
|
||||
required: true
|
||||
required: false
|
||||
runs:
|
||||
using: "node16"
|
||||
main: "dist/run/index.js"
|
||||
|
||||
1295
dist/post_run/index.js
vendored
1295
dist/post_run/index.js
vendored
File diff suppressed because it is too large
Load Diff
1295
dist/run/index.js
vendored
1295
dist/run/index.js
vendored
File diff suppressed because it is too large
Load Diff
768
package-lock.json
generated
768
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
27
package.json
27
package.json
@@ -24,25 +24,26 @@
|
||||
"author": "golangci",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/cache": "^2.0.2",
|
||||
"@actions/core": "^1.8.0",
|
||||
"@actions/cache": "^3.0.5",
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^5.0.1",
|
||||
"@actions/tool-cache": "^1.7.2",
|
||||
"@types/semver": "^7.3.9",
|
||||
"@actions/github": "^5.1.1",
|
||||
"@actions/http-client": "^2.0.1",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
"@types/semver": "^7.3.12",
|
||||
"@types/tmp": "^0.2.3",
|
||||
"tmp": "^0.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^5.22.0",
|
||||
"@typescript-eslint/parser": "^5.22.0",
|
||||
"@vercel/ncc": "^0.33.4",
|
||||
"eslint": "^8.15.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
||||
"@typescript-eslint/parser": "^5.40.0",
|
||||
"@vercel/ncc": "^0.34.0",
|
||||
"eslint": "^8.25.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-simple-import-sort": "^7.0.0",
|
||||
"prettier": "^2.6.2",
|
||||
"typescript": "^4.6.4"
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-simple-import-sort": "^8.0.0",
|
||||
"prettier": "^2.7.1",
|
||||
"typescript": "^4.8.4"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user