Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/osowskit/atlassian-github-app-addon
Add a branch to GitHub from JIRA
https://github.com/osowskit/atlassian-github-app-addon
atlassian github-app jira jira-tickets ruby
Last synced: about 2 months ago
JSON representation
Add a branch to GitHub from JIRA
- Host: GitHub
- URL: https://github.com/osowskit/atlassian-github-app-addon
- Owner: osowskit
- License: other
- Created: 2017-06-09T20:53:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-16T03:38:36.000Z (over 1 year ago)
- Last Synced: 2024-07-18T20:47:45.094Z (3 months ago)
- Topics: atlassian, github-app, jira, jira-tickets, ruby
- Language: Ruby
- Homepage: https://marketplace.atlassian.com/apps/1217260/create-github-branches-from-jira?hosting=cloud&tab=overview
- Size: 87.9 KB
- Stars: 27
- Watchers: 6
- Forks: 11
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Create GitHub Branches from Jira
## Usage
This [Atlassian Marketplace add-on](https://marketplace.atlassian.com/plugins/com.osowskit.jira.github.app/cloud/overview) provides the convenience of creating branches in GitHub from a JIRA ticket. Create and view GitHub branches directly from a JIRA issue.
* Install the add-on : https://marketplace.atlassian.com/1217260
* Simply add the GitHub App to your account : https://github.com/apps/jira-bot and select which repositories you want to create branches in
* Navigate to any ticket on your JIRA instance an click the `Connect to GitHub` link
* Create and view branches in a JIRA ticket.
* View any Pull Request for the branch
## Custom Branch Names
The default branch pattern will use the issue key as the branch name and create this off of the main default branch. It is possible to set a GitFlow branching pattern and also use a custom branch name as outlined below.
### Custom Branch Name
Users can choose to manually enter the branch name by using a per Repository config file. This allows the user to add custom text as the branch name and be created off of the main default branch, e.g. `SENG-1234/my-great-feature`. Set this for each repository using this pattern:
1. Add the following file `.github/jira-bot.yaml` to the main default branch
1. Set the file contents to be `branch_pattern: 2`
1. In Jira, with the plugin loaded, remove and re-add each repository that has been updated. (The branch pattern is cached and needs to be refreshed).### GitFlow
Users can select the GitFlow branching pattern in the config file that will create a feature branch off of the `develop` branch, e.g. `feature/SENG-1234`. For each repository, use this pattern:
1. Add the following file `.github/jira-bot.yaml` to the Repository's default branch
1. Set the file contents to be `branch_pattern: 1`
1. In Jira with the plugin loaded, remove and re-add each repository that has been updated. (The branch pattern is cached and needs to be refreshed).### GitFlow + Custom Branch Name (deprecated)
Users can select the GitFlow branching pattern in the config file that will create a feature branch off of the `develop` branch, e.g. `feature/SENG-1234`. This option allows users to also set the branch name via the UI. This setting is deprecated and users should set `branch_pattern: 3` and `default_base_branch_name: 'develop'` going forward.
For each repository, use this pattern:
1. Add the following file `.github/jira-bot.yaml` to the Repository's default branch
1. Set the file contents to be `branch_pattern: 3`
1. In Jira with the plugin loaded, remove and re-add each repository that has been updated. (The branch pattern is cached and needs to be refreshed).### Custom Base Branch
Teams that have branching patterns that are created off a branch that isn't the Repository's default branch. The following configuration allows users to set the base branch where new branches are created from.
For each repository, use this pattern:
1. Add the following file `.github/jira-bot.yaml` to the Repository's default branch
1. Set the file contents to be `default_base_branch_name: 'dev'`
1. In Jira with the plugin loaded, remove and re-add each repository that has been updated. (The branch pattern is cached and needs to be refreshed).Here is the approved branch name list. Please open an issue to request a new branch
```
['master', 'main', 'development', 'dev', 'feature', 'hotfix', 'release', 'test', 'testing']
```[Example yaml file](https://github.com/osowskit/an-repo/blob/master/.github/jira-bot.yaml)