Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 11 of 12

Re: Action runs when PR is created, but not when PR is merged


@cdb wrote:

@jrobison-sb  - @talldan was exactly right, it should be `closed`, not `merged`.


Would it be possible to create a `merged` type? I'm building a pipeline that automatically creates a release when a release/* branch is merged into master. But closed (canceled) pull requests will also trigger this build.

Copilot Lvl 3
Message 12 of 12

Re: Action runs when PR is created, but not when PR is merged

Should that be 'closed'? e.g.:

on:
  pull_request:
    types: [closed]

 
According to the docs there isn't a 'merged' type for a pull_request action:
https://help.github.com/en/articles/events-that-trigger-workflows