3.0.0 ā¢ Published 4 years ago
semantic-release-jira v3.0.0
semantic-release-jira
š©āš¬ Please be aware that this package is still experimental ā changes to the interface and underlying implementation are likely, and future development or maintenance is not guaranteed.
This package provides a simple way to label JIRA issues with releases. Currently, it is only compatible with JIRA rest API v2 and login:password authentication
Example
In .releaserc
:
{
"verifyConditions": [
"@semantic-release/github",
"@semantic-release/npm",
"semantic-release-jira"
]
"success": [
"@semantic-release/github",
["semantic-release-jira", {
"auth": {
"type": "Bearer",
"userEnvVar": "JIRA_USER",
"passEnvVar": "JIRA_PASS",
"tokenEnvVar": "JIRA_TOKEN"
}
"actions": [
{
"method": "POST",
"url": "https://jira.example.com/rest/api/2/versions",
"body": '{ "name": "${version}", "archived": false, "released": true, "project": "${project}"}'
},
{
"method": "PUT",
"url": "https://jira.example.com/rest/api/2/issue/${issueKey}",
"body": '{"update":{"labels":[{"add":"some-component:${version}"}]}}'
},
{
"method": "PUT",
"url": "https://jira.example.com/rest/api/2/issue/${issueKey}",
"body": '{"update":{"fixVersions":[{"add":{"name":"Some Component ${version}"}}]}}'
},
{
"method":"POST",
"url": "https://jira.d2iq.com/rest/api/2/issue/${issueKey}/transitions",
"body": '{"transition":{"id":151}}'
}
]
}]
]
}
Environment Variables
JIRA_USER
User to login with JIRA, to be passed in as environment variable.
JIRA_PASS
Password to login with JIRA, to be passed in as environment variable.
Options
verifyConditions
step
This step doesnt support any options.
success
step
See example above.
3.0.0
4 years ago
3.0.0-beta.3
4 years ago
3.0.0-beta.2
4 years ago
3.0.0-beta.1
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.2.4
4 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago