What does on pull_request types mean? #194434
-
🏷️ Discussion TypeQuestion 💬 Feature/Topic AreaWorkflow Configuration Discussion DetailsI've got a GitHub Workflow that has this code snippet in it: on:
pull_request:
types: openedI know that instead of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The With Here's the full list of supported activity types for
One thing to know about |
Beta Was this translation helpful? Give feedback.
The
typeskey underon: pull_requestlets you filter which specific PR events trigger the workflow. Without it, GitHub defaults to[opened, synchronize, reopened], so it runs when a PR is opened, when new commits are pushed to it, and when it's re-opened after being closed.With
types: [opened]you're saying: only trigger on first open, not on subsequent commits.Here's the full list of supported activity types for
pull_request:opened/closed/reopenedsynchronize(new commit pushed to the PR branch)edited(title or description changed)assigned/unassignedlabeled/unlabeledreview_requested/review_request_removedready_for_review/converted_to_draftl…