Skip to content

Commit

Permalink
Merge branch 'main' of github.com:olivercodes/owners-slash-command in…
Browse files Browse the repository at this point in the history
…to main
  • Loading branch information
olivercodes committed Jun 9, 2021
2 parents e3cd760 + 6e7bc16 commit 37d6cf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
14 changes: 2 additions & 12 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
name: 'Owners Slash Command'
description: 'Check OWNERS before running a slash command'
inputs:
command:
description: 'the command being run'
required: true
executor:
description: 'the person running the command'
required: true
outputs:
can-run:
description: 'pass/fail for if user can run the command'
runs:
using: 'node16'
main: 'index.js'
using: 'node12'
main: 'dist/index.js'
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const github = require('@actions/github');
const {getUserIsApprover} = require('./lib/helpers');

try {
const command = core.getInput('command');
const actor = github.context.actor;
return getUserIsApprover(actor, '.');
} catch (error) {
Expand Down

0 comments on commit 37d6cf6

Please sign in to comment.