1

Some times we can push changes without Jira ID.

I want to prevent changes without mentioned `Jira ID'.

Suppose projects named like:

  • abc,
  • def,
  • ghi

And have Jira ID's like:

  • 1234-abc,
  • 2525-def,
  • and 36789-ghi.

Now how to write script using python for below tasks:

1) create Jira ID provided is valid or not? 2) check type of Jira ticket for abc or def , it should be "change request" only 3) Check status of Jira ticket , it should be in Accepted or Assigned or IN Progress

2
  • Hi, welcome to the club ) Do you mean that you want a kind of pre-commit hook before commit pushed to Bitbucket ? – Yasen Apr 22 '20 at 17:25
  • Yes exactly I need a pre commit hook on git. – sid 539 Apr 24 '20 at 2:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.