Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ffc9b34

Browse files
kadams54sugat009
andauthored
refactor: consolidate conditionals for PR events
Co-authored-by: Sugat Bajracharya <30311933+sugat009@users.noreply.github.com>
1 parent 4e2967f commit ffc9b34

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎github_actions/run.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,7 @@ def main() -> None:
175175

176176
if event.event_name == EVENT_PUSH:
177177
_handle_push_event(event)
178-
elif event.event_name == EVENT_PULL_REQUEST:
179-
_handle_pr_event(event)
180-
elif event.event_name == EVENT_PULL_REQUEST_TARGET:
178+
elif event.event_name in {EVENT_PULL_REQUEST, EVENT_PULL_REQUEST_TARGET}:
181179
_handle_pr_event(event)
182180
elif event.event_name is None:
183181
sys.stdout.write("No any events, skipping\n")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /