Forums

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

Clone/Fork github repository on project creation

Joachim_Prinsloo
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!
May 8, 2020

I have successfully integrated my GitHub account on Jira (Server) linking it to a repository using the standard github integration app from the marketplace. When checking in code, it is successfully linked to the Jira issue.

I would like to know if I can fork or clone a repository every time I create a new project on Jira, rename it, and then I can link it to said project when checking in work items into the repo for issues created within that project. Example of the workflow:

Start with one main repository: template-repo

  1. Create a new project in Jira. Name it AwesomeProjectX
  2. The template-repo is then forked/cloned in the same github account and renamed to awesomeprojectx-repo containing the standard code base.

We now have 2 repos in our github account which are template-repo and awesomeprojectx-repo.

For the second project:

  1. Create GreatProjectY in Jira.
  2. The template-repo is automatically cloned/forked and renamed to greatprojecty-repo.

and so on...

the latest version of the template source code will be managed in template-repo and every time a new project is started, we ensure that we are starting with the latest templates. customizations per project will then be made on the cloned/forked repo for said project and the changes will be linked with the existing integration to the relevant jira tickets.

Any help/pointers to any documentation that might lead me in the direction of achieving this would be appreciated. I have a sneaky suspicion that GitHub actions might come into play here, but I am not 100% sure.

0 answers

Suggest an answer

Log in or Sign up to answer