-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from europace/feat/jira_env_support
feat(jira): added environment mapping
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# 🌍 Jira Environment Mapping for Deployments | ||
|
||
_see | ||
also: [Environment Mapping Docs](https://github.com/atlassian/github-for-jira/blob/main/docs/deployments.md#environment-mapping)_ | ||
|
||
This repo uses `.jira/config.yml` to map deployment environments in Jira tickets, making sure Jira recognizes the | ||
correct environment type. | ||
|
||
## 🚀 How it works: | ||
|
||
1️⃣ **Jira listens** to GitHub deployment events and checks the `environment name`. | ||
2️⃣ **Jira reads** the issue keys from commit messages (e.g., `JIRA-123`). | ||
3️⃣ **Jira maps** the environment name to a type (e.g., `development`, `testing`, `staging`, `production`) based on | ||
`.jira/config.yml` in the `main` branch. and updates the ticket. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
deployments: | ||
environmentMapping: | ||
development: | ||
- "dev" | ||
- "dev-*" | ||
- "development" | ||
- "development-*" | ||
testing: | ||
- "test" | ||
- "test-*" | ||
- "testing" | ||
- "testing-*" | ||
staging: | ||
- "mtp" | ||
- "mtp-*" | ||
production: | ||
- "ps" | ||
- "ps-*" | ||
- "prod" | ||
- "prod-*" |