Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events