Skip to content

Commit e513b28

Browse files
committed
added all required options to lintly
1 parent 0ab649f commit e513b28

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ runs:
2727
python $GITHUB_ACTION_PATH/linting_orchestrator.py ${{ github.event_name == 'pull_request' }} flake8 ${{ steps.changes.outputs.addedOrModifiedPython_files }}
2828
env:
2929
GITHUB_TOKEN: ${{ inputs.github_token }}
30+
PR_NUMBER: ${{ github.event.number }}
31+
REPOSITORY_NAME: ${{ github.repository }}
3032

3133
- name: mypy
3234
uses: tsuyoshicho/action-mypy@v3.11.0
@@ -41,3 +43,5 @@ runs:
4143
python $GITHUB_ACTION_PATH/linting_orchestrator.py ${{ github.event_name == 'pull_request' }} pylint ${{ steps.changes.outputs.addedOrModifiedPython_files }}
4244
env:
4345
GITHUB_TOKEN: ${{ inputs.github_token }}
46+
PR_NUMBER: ${{ github.event.number }}
47+
REPOSITORY_NAME: ${{ github.repository }}

linting_orchestrator.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,17 @@
1818
"lintly",
1919
"--api-key",
2020
os.environ["GITHUB_TOKEN"],
21+
"--pr",
22+
os.environ["PR_NUMBER"],
23+
"--repo",
24+
os.environ["REPOSITORY_NAME"],
25+
"--commit-sha",
26+
os.environ["GITHUB_SHA"],
2127
"--fail-on",
2228
"any",
2329
"--post-status",
2430
"--request-changes",
2531
"--use-checks",
26-
"--no-exit-zero",
2732
]
2833

2934

0 commit comments

Comments
 (0)