Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Pilot Lvl 1
Message 1 of 4

Action on closed pull request not triggered when using "Closes: #" in commit message

I have this in my workflow:

on:
  pull_request:
    types:
      - closed

It is triggered just fine when I close the PR through website by clicking the button.

It is not triggered when I close the PR through commit message including "Closes: #".

 

How can I trigger this workflow by commit message?

3 Replies
GitHub Staff
Message 2 of 4

Re: Action on closed pull request not triggered when using "Closes: #" in commit message

Hi @dawidd6,

 

I was not able to reproduce this in my own repo. Can you provide an example in a public repo so we can investigate?

 

Thank you,

Ilya Tillis

Actions Product Manager 

Pilot Lvl 1
Message 3 of 4

Re: Action on closed pull request not triggered when using "Closes: #" in commit message

For example this commit: https://github.com/dawidd6/homebrew-test/commit/94b01829df26369031952fe48d1e01dc2a45b668

 

PR was closed as expected, but workflow was not run.

Pilot Lvl 1
Message 4 of 4

Re: Action on closed pull request not triggered when using "Closes: #" in commit message

This is still not resolved.

 

@itillis could you show the repo where you tested it?