The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there way to decline/unapprove pull request automatically if sql file format is not proper

Tejesh badri
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2019

Hi,

I am trying to find a automatic way to reject/decline pull request if it has invalid sql syntax errors in the pull request in bitbucket

Do you any way to do it?Not only sql syntax or in genral way to reject a pull request automtically means any API.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 23, 2019

Hi Tejesh, welcome to the Community!


What you want to do is called linting. Bitbucket itself doesn't review the code, you'll have to write a test that your code will need to pass in order to be accepted. You can use Bitbucket Pipelines for that, you can find more info here.

Hope that helps :) 

Ana

TAGS
AUG Leaders

Atlassian Community Events