diff --git a/action.yml b/action.yml index 263b1d9..76340c6 100644 --- a/action.yml +++ b/action.yml @@ -27,6 +27,8 @@ runs: python $GITHUB_ACTION_PATH/linting_orchestrator.py ${{ github.event_name == 'pull_request' }} flake8 ${{ steps.changes.outputs.addedOrModifiedPython_files }} env: GITHUB_TOKEN: ${{ inputs.github_token }} + PR_NUMBER: ${{ github.event.number }} + REPOSITORY_NAME: ${{ github.repository }} - name: mypy uses: tsuyoshicho/action-mypy@v3.11.0 @@ -41,3 +43,5 @@ runs: python $GITHUB_ACTION_PATH/linting_orchestrator.py ${{ github.event_name == 'pull_request' }} pylint ${{ steps.changes.outputs.addedOrModifiedPython_files }} env: GITHUB_TOKEN: ${{ inputs.github_token }} + PR_NUMBER: ${{ github.event.number }} + REPOSITORY_NAME: ${{ github.repository }} diff --git a/linting_orchestrator.py b/linting_orchestrator.py index 119bd46..ac077dc 100644 --- a/linting_orchestrator.py +++ b/linting_orchestrator.py @@ -18,12 +18,17 @@ "lintly", "--api-key", os.environ["GITHUB_TOKEN"], + "--pr", + os.environ["PR_NUMBER"], + "--repo", + os.environ["REPOSITORY_NAME"], + "--commit-sha", + os.environ["GITHUB_SHA"], "--fail-on", "any", "--post-status", "--request-changes", "--use-checks", - "--no-exit-zero", ]