Skip to main content
Best answer

slack emoji triggers github pr


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? 

 

Best answer by DanversBest answer by Danvers

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!

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • 3731 replies
  • August 24, 2022

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!


  • Author
  • New
  • 2 replies
  • August 24, 2022

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!


Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • 3731 replies
  • Answer
  • August 25, 2022

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!