Skip to content
Discussion options

You must be logged in to vote

The types key under on: pull_request lets 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 / reopened
    • synchronize (new commit pushed to the PR branch)
    • edited (title or description changed)
    • assigned / unassigned
    • labeled / unlabeled
    • review_requested / review_request_removed
    • ready_for_review / converted_to_draft
    • l…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Rod-at-DOH
Comment options

Answer selected by Rod-at-DOH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Workflow Configuration Topics about workflow files, YAML setup, job dependencies, and general workflow configuration issues source:ui Discussions created via Community GitHub templates
2 participants