Skip to content

Commit

Permalink
🐛 Fix the reporter is not working on organisation repos
Browse files Browse the repository at this point in the history
  • Loading branch information
siketyan committed Nov 24, 2021
1 parent bd763aa commit 871b09f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ branding:
icon: 'search'
color: 'yellow'
inputs:
report_enabled:
required: true
description: 'Reports to GitHub pull request only if this input is "true".'
default: '${{ github.event.repository.owner.id }} == ${{ github.event.pull_request.head.user.id }}'
owner:
required: true
description: 'The owner (organization) of the repository.'
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

if [ "${GITHUB_ACTOR}" = "${GITHUB_REPOSITORY_OWNER}" ]; then
if [ "${INPUT_REPORT_ENABLED}" = "true" ]; then
# shellcheck disable=SC2034
export LOXCAN_REPORTER_GITHUB="1"
export LOXCAN_REPORTER_GITHUB_OWNER="${INPUT_OWNER}"
Expand Down

0 comments on commit 871b09f

Please sign in to comment.