Skip to content

Commit 261ccb8

Browse files
Remove targeted product from rel ticket action (#5)
* Remove targeted product from rel ticket action * fix typo in example workflow input
1 parent b064b86 commit 261ccb8

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

create-jira-release-ticket/README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ The following inputs can be configured for the action:
2020
| `project_name` | The display name of the project (e.g., `SonarIaC`). Will be used as the prefix of the resulting release ticket. | `true` | |
2121
| `version` | The new version string being released (e.g., `1.2.3`). | `true` | |
2222
| `short_description` | A brief description of the release. | `true` | |
23-
| `targeted_product` | The targeted product version (e.g., `11.0`). | `true` | |
2423
| `sq_compatibility` | The SonarQube compatibility version (e.g., `2025.3`). | `true` | |
2524
| `use_sandbox` | Set to `false` to use the Jira production server. | `false` | `true` |
2625
| `documentation_status` | The status of the release documentation. | `false` | `N/A` |
@@ -41,7 +40,6 @@ Here is an example of how to use this action in a workflow. This job will be tri
4140
```yaml
4241
name: Create Release Ticket
4342

44-
# Define environment variables for project-specific settings
4543
env:
4644
PROJECT_KEY: 'SONARIAC'
4745
PROJECT_NAME: 'SonarIaC'
@@ -56,13 +54,10 @@ on:
5654
short_description:
5755
description: 'Short Description'
5856
required: true
59-
targeted_product:
60-
description: 'Targeted Product'
61-
required: true
6257
sq_compatibility:
6358
description: 'SonarQube Compatibility'
6459
required: true
65-
jira_release:
60+
jira_release_name:
6661
description: 'Jira release version'
6762
required: false
6863
sonarlint_changelog:
@@ -96,7 +91,6 @@ jobs:
9691
project_name: ${{ env.PROJECT_NAME }}
9792
version: ${{ github.event.inputs.version }}
9893
short_description: ${{ github.event.inputs.short_description }}
99-
targeted_product: ${{ github.event.inputs.targeted_product }}
10094
sq_compatibility: ${{ github.event.inputs.sq_compatibility }}
10195
jira_release_name: ${{ github.event.inputs.jira_release }}
10296
sonarlint_changelog: ${{ github.event.inputs.sonarlint_changelog }}

create-jira-release-ticket/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ inputs:
2121
short_description:
2222
description: 'A short description for the release'
2323
required: true
24-
targeted_product:
25-
description: 'The targeted product version (e.g., 11.0)'
26-
required: true
2724
sq_compatibility:
2825
description: 'SonarQube compatibility version (e.g., 2025.3)'
2926
required: true
@@ -79,7 +76,6 @@ runs:
7976
--project-name="${{ inputs.project_name }}" \
8077
--version="${{ inputs.version }}" \
8178
--short-description="${{ inputs.short_description }}" \
82-
--targeted-product="${{ inputs.targeted_product }}" \
8379
--sq-compatibility="${{ inputs.sq_compatibility }}" \
8480
${SANDBOX_FLAG} \
8581
--documentation-status="${{ inputs.documentation_status }}" \

create-jira-release-ticket/create_release_ticket.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
JIRA_PROD_URL = "https://sonarsource.atlassian.net/"
1717
CUSTOM_FIELDS = {
1818
'SHORT_DESCRIPTION': 'customfield_10146',
19-
'TARGETED_PRODUCT': 'customfield_10163',
2019
'SQ_COMPATIBILITY': 'customfield_10148',
2120
'LINK_TO_RELEASE_NOTES': 'customfield_10145',
2221
'DOCUMENTATION_STATUS': 'customfield_10147',
@@ -157,7 +156,6 @@ def create_release_ticket(jira_client, args, link_to_release_notes):
157156
'issuetype': 'Ask for release',
158157
'summary': f'{args.project_name} {args.version}',
159158
CUSTOM_FIELDS['SHORT_DESCRIPTION']: args.short_description,
160-
CUSTOM_FIELDS['TARGETED_PRODUCT']: {'value': args.targeted_product},
161159
CUSTOM_FIELDS['SQ_COMPATIBILITY']: args.sq_compatibility,
162160
CUSTOM_FIELDS['LINK_TO_RELEASE_NOTES']: link_to_release_notes,
163161
CUSTOM_FIELDS['DOCUMENTATION_STATUS']: args.documentation_status,
@@ -187,7 +185,6 @@ def main():
187185
parser.add_argument("--project-name", required=True, help="The display name of the project (e.g., SonarIaC).")
188186
parser.add_argument("--version", required=True, help="The version being released (e.g., 11.44.2).")
189187
parser.add_argument("--short-description", required=True, help="A short description for the release.")
190-
parser.add_argument("--targeted-product", required=True, help="The targeted product version (e.g., 11.0).")
191188
parser.add_argument("--sq-compatibility", required=True, help="SonarQube compatibility version (e.g., 2025.3).")
192189
parser.add_argument('--use-sandbox', action='store_true', help="Use the sandbox server instead of the production Jira.")
193190
parser.add_argument("--documentation-status", default="N/A", help="Status of the documentation.")

0 commit comments

Comments
 (0)