Issue Summary
Commits, PRs and etc. that is related to a repository that is created with the same name of the deleted repository will not be synced to JIRA.
Further digging into this matter, it looks like JIRA is able to retrieve the repository name, however, it is not creating the Webhook (for Github/Github Enterprise) and Services (for Bitbucket Cloud) after the repository syncing.
Steps to Reproduce
- Create the JIRA - Github or JIRA - Bitbucket integration.
- After the sync is done, delete one of the repositories on Github or Bitbucket.
- Refresh the repo list on JIRA.
- Create a new repo with the same name on Github or Bitbucket.
- Refresh the repo list on JIRA.
- Navigate to the repo Webhook (on Github) or repo Services (on Bitbucket) - there will be no Webhook (for Github/Github Enterprise) or Services (for Bitbucket Cloud) created.
Expected Results
There will be Webhook (for Github/Github Enterprise) and Services (for Bitbucket Cloud) created for the newly recreated repo with the same name of a deleted repo.
Actual Results
Navigate to the repo Webhook (on Github) or repo Services (on Bitbucket) - there will be no Webhook (for Github/Github Enterprise) or Services (for Bitbucket Cloud) created.
Workaround
Recreate the JIRA - Github or JIRA - Bitbucket integration.