CodePudding user response:
Should not have this kind of usage,CodePudding user response:
This is achievable through SVN hooks script is completed, we adopt modifies the pre - commit SVN script called jira rest API access to jira corresponding questions to determine whether can submit version, main realization form is:1. In the script for SVN submitted comments and submit the author information,
2. Determine whether the information submitted is empty, not empty continues, empty return tip
3. Determine whether the information submitted less than a specified number of bytes that is less than the return suggests that greater than continued to
4. From the information submitted by the regular expression for jira issue keyword
5. Determine whether submit jira issue keyword conform to the specifications, in line with the continued, does not conform to return tip
6. Through key tone with jira jira issue rest API interface of jira issue key, status and agent into jiraissue. Json file, facilitate the follow-up results of analytical
7. By the results of step 6 to return to judge the SVN client to submit jira issue keyword exists in jira, existence continues, there is no return
8. Through step 6 access file parsing jira issue for keywords, agent and the workflow state
9. Determine whether the SVN client to submit the author and step 8 agent is the same person, and the current state of the jira issue whether to submit to submit, is not in conformity with the return tip without permission to submit this version
The concrete can direct messages to me