You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: create-integration-ticket/README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ This action requires:
30
30
|`release-version`| The release version (used to generate ticket summary if ticket-summary is not provided). If not set version will be retreived from build. | No | - |
31
31
|`use-jira-sandbox`| Use the sandbox Jira server instead of production. Can also be controlled via `USE_JIRA_SANDBOX` environment variable | No | - |
32
32
|`link-type`| The type of link to create (e.g., "relates to", "depends on") | No |`relates to`|
33
+
|`jira-release-url`| Jira release URL to append to ticket description | No | - |
33
34
34
35
**Note:** Either `ticket-summary` must be provided, or both `plugin-name` and `release-version` must be provided. If `ticket-summary` is not provided, it will be automatically generated as "Update {plugin-name} to {release-version}".
35
36
@@ -79,6 +80,20 @@ This action requires:
79
80
target-jira-project: "SQS"
80
81
```
81
82
83
+
### Example 4: Using with Jira release URL
84
+
```yaml
85
+
- name: Create Integration Ticket
86
+
id: create-ticket
87
+
uses: ./create-integration-ticket
88
+
with:
89
+
plugin-name: "SonarPython"
90
+
release-version: "5.8.0.24785"
91
+
ticket-description: "This release includes bug fixes and performance improvements."
|`jira-project-key`| The key of the Jira project (e.g., SONARIAC). Can also be set via `JIRA_PROJECT_KEY` environment variable | No*| - |
25
-
|`jira-version-name`| The name of the Jira version to create (e.g., 1.2.3). Can also be set via `JIRA_VERSION_NAME` environment variable | No | Auto-determined |
26
-
|`use-jira-sandbox`| Use the sandbox server instead of the production Jira. Can also be controlled via `USE_JIRA_SANDBOX` environment variable | No | - |
|`jira-project-key`| The key of the Jira project (e.g., SONARIAC). Can also be set via `JIRA_PROJECT_KEY` environment variable | No*| - |
25
+
|`jira-version-name`| The name of the current Jira version. Used to determine the next version if `jira-new-version-name` is not provided. Can also be set via `JIRA_VERSION_NAME` environment variable | No | Auto-determined |
26
+
|`jira-new-version-name`| The name of the new Jira version to create (e.g., 1.2.3). If not provided, the next version will be automatically determined by incrementing the current version | No | Auto-determined |
27
+
|`use-jira-sandbox`| Use the sandbox server instead of the production Jira. Can also be controlled via `USE_JIRA_SANDBOX` environment variable | No | - |
27
28
28
29
*Either the input or corresponding environment variable must be provided for jira-project-key.
@@ -111,7 +111,7 @@ The action uses a Python script that:
111
111
112
112
- This action requires access to SonarSource's HashiCorp Vault for Jira credentials
113
113
- Either `jira-project-key` input or `JIRA_PROJECT_KEY` environment variable must be provided
114
-
- When `jira-version-name` is not provided, the action automatically determines the next version by incrementing the latest existing version
114
+
- When `jira-new-version-name` is not provided, the action automatically determines the next version by incrementing the current version (from `jira-version-name` input/env or latest existing version)
115
115
- Input parameters take precedence over environment variables when both are provided
116
116
- The action supports both production and sandbox Jira environments
117
117
- Version names should follow semantic versioning patterns for best results
Copy file name to clipboardExpand all lines: create-jira-version/action.yml
+28-9Lines changed: 28 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,20 @@ inputs:
7
7
description: 'The key of the Jira project (e.g., SONARIAC). Required if JIRA_PROJECT_KEY env var is not set.'
8
8
required: false
9
9
jira-version-name:
10
-
description: 'The name of the Jira version to create (e.g., 1.2.3). Can also be set via JIRA_VERSION_NAME environment variable.'
10
+
description: 'The name of the current Jira version. Can also be set via JIRA_VERSION_NAME environment variable. Used to determine the next version if jira-new-version-name is not provided.'
11
+
required: false
12
+
jira-new-version-name:
13
+
description: 'The name of the new Jira version to create (e.g., 1.2.3). If not provided, the next version will be automatically determined by incrementing the current version.'
11
14
required: false
12
15
use-jira-sandbox:
13
16
description: "Use the sandbox server instead of the production Jira. Can also be controlled via USE_JIRA_SANDBOX environment variable."
14
17
required: false
15
18
16
19
outputs:
17
-
jira-version-id:
20
+
jira-new-version-id:
18
21
description: 'The ID of the created Jira version.'
0 commit comments