Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion create-jira-version/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This action depends on:
|-------|-------------|----------|---------|
| `jira_project_key` | The key of the Jira project (e.g., SONARIAC) | Yes | - |
| `jira_version_name` | The name of the Jira version to create (e.g., 1.2.3) | No | Auto-determined |
| `use_jira_sandbox` | Use the sandbox Jira server instead of production | No | `false` |
| `use_jira_sandbox` | Use the sandbox Jira server instead of production. Can also be controlled via `USE_JIRA_SANDBOX` environment variable | No | `false` |

## Outputs

Expand Down
2 changes: 1 addition & 1 deletion create-jira-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ runs:
python ${{ github.action_path }}/create_jira_version.py \
--project-key="${{ inputs.jira_project_key }}" \
--version-name="${{ inputs.jira_version_name || steps.determine_version_name.outputs.VERSION_NAME }}" \
${{ (inputs.use_jira_sandbox == 'true' || env.USE_JIRA_VERSION == 'true') && '--use-sandbox' || '' }} \
${{ (inputs.use_jira_sandbox == 'true' || env.USE_JIRA_SANDBOX == 'true') && '--use-sandbox' || '' }} \
>> $GITHUB_OUTPUT
4 changes: 2 additions & 2 deletions create-jira-version/create_jira_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

"""
This script automates releasing a version in Jira and creating the next one.
This script automates creating a version in Jira.
"""

import argparse
Expand Down Expand Up @@ -48,7 +48,7 @@ def get_jira_instance(use_sandbox=False):
sys.exit(1)

def main():
"""Main function to orchestrate the release and creation process."""
"""Main function to orchestrate the creation process."""
parser = argparse.ArgumentParser(
description="Releases a Jira version and creates the next one.",
formatter_class=argparse.ArgumentDefaultsHelpFormatter
Expand Down