Skip to main content

Hi there, i'm trying to create a github pr request that is triggered by a slack emoji - however i am getting a 'Failed to create a create pull request in GitHub
The app returned "Validation Failed". This is due to the 'head' branch i believe. We would like a head branch to be created when the pull request is created, since we would not have an existing head branch already in place - is there any way to do this? 

 

Hi @mwong1!

You’re right that it’s the head field that’s causing the trouble here - you need to select a ‘head’ branch that already exists. Just to make sure I understand what you’d like to do, you want to create a new branch for each PR request? Have I got that right?

Thanks!


Hi @Danvers - thank you for replying and clarifying! Yes, I would like a slack emoji to trigger creating a pr request and a new branch for each PR request. we won’t use the same branch for each PR so I wanted to see if it was possible to create a branch using the ‘customize’ option, but it doesn’t seem to work for me. many thanks for your help!


Thanks for confirming that, @mwong1 :)

In order to do that, you would need to create a branch using Zapier and then create a Pull request on that branch. It’s not currently possible to create a new branch using the Zapier Github integration, sorry about that. We do have a feature request for that addition and I've added your email address as another vote for this addition. I don't have an ETA of when or if this will happen, but we will definitely email you if it does become a reality. 

Thanks!