Skip to content

Commit

Permalink
Merge pull request #70 from siketyan/fix-org-repos
Browse files Browse the repository at this point in the history
🐛 Fix the reporter is not working on organisation repos
  • Loading branch information
siketyan authored Nov 24, 2021
2 parents bd763aa + 4f9d474 commit f2f7d1b
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 f2f7d1b

Please sign in to comment.