Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-4618

Pre-Commit hook JIRA

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • svnadmin
    • Production and Development servers

    Description

      Hi Team,

      I need a help in creating pre-commit hook in shell script for JIRA.

      Requirement is :

      1. When user try to check-in changes to repository, it should ask log-message to enter with JIRA ticket number.
      2. i will be having having my repository root template like below,

      trunk
      tags
      archive
      jira

      Under jira, i will be having "jiralist.txt" file which contains JIRA ticket which are in open status.
      as like below format
      JIRA-123;assignee name;Jira Description;status;

      What my pre-commit shell script should do is.
      It has to check log-message first as there is JIRA ticket provided in log, if it is exist then, it as to check if that is available at "jiralist.txt", if yes then only it should allow commit.
      Else it should throw an error saying "No Valid ticket mentioned on log"

      Can anyone please help with this.

      Thanking in advance...

      Attachments

        Activity

          People

            Unassigned Unassigned
            ajjaiah.n123@gmail.com Ajjaiah Nagarajappa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: