Skip to content

Commit 6650d6c

Browse files
committed
apply review feedback
1 parent 6eb2a6c commit 6650d6c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

repository-dispatch/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

repository-dispatch/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ class RepositoryDispatch extends Action {
88

99
constructor() {
1010
const token = getInput('token')
11-
if (!token && getInput('event_type') === 'oss-pull-request') {
11+
const eventType = getInput('event_type')
12+
if (!token && eventType === 'oss-pull-request') {
1213
console.log(
1314
"Token is empty, can't dispatch event. This is expected for PRs coming from forks, please check that the changes are compatible with Enterprise before merging this PR.",
1415
)

0 commit comments

Comments
 (0)