Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Manages Release (Fix Versions) in JIRA

Notifications You must be signed in to change notification settings

dev-build-deploy/jira-version-me

Repository files navigation

Jira Version Me

JiraVersionMe provides a GitHub Action, and Command Line Interface for managing Jira Versions. The created releases are sorted based on SemVer 2.0 precedence, allowing you to use JQL for queries such as:

project=TEST AND fixVersion >=1.0.0 AND fixVersion <2.0.0

Warning

The action expects that the initial versions are already sorted correctly.

If this is not the case, please use the provided CLI tool to sort your project Versions.

GitHub Action

name: Jira Release Me
on:
  push:

jobs:
  jira-version-me:
    name: Jira Version Me
    runs-on: ubuntu-latest
    steps:
      - uses: dev-build-deploy/jira-version-me@feat/initial-version
        with:
          # Jira configuration
          jira-url: https://domain.jira.com
          jira-token: ${{ secrets.JIRA_TOKEN }}  # Basic Authorization using Bearer Token (PAT)

          # Project and Version
          project: PIPE
          version: '1.0.0'

          # OPTIONAL: Component name to associate with the provided release (i.e. "framework" leading to "framework/1.0.0")
          component: 'framework'
          # OPTIONAL: Description associated with the version
          description: 'Product launch milestone'
          # OPTIONAL: Mark the version as "Released"
          release: true
          # OPTIONAL: Assign the following list of issues to the version
          tickets: |
            TEST-123
            TEST-456

Command-line Interface

Currently the CLI tool is not distributed as a stand-alone product. For now, please clone the repository on the expected version and run the binary (./bin/jira-version-me) from your local environment.

Basic usage

Usage: jira-version-me [options] [command]

Jira Release Management

Options:
  -p, --project <project>  The Jira project key
  -t, --token <token>      The Jira API token
  -u, --url <url>          The Jira URL
  -h, --help               display help for command

Commands:
  update [options]
  assign [options]
  sort
  help [command]           display help for command

Sorting all Releases

Usage: jira-version-me sort [options]

Options:
  -h, --help  display help for command

Create or Update a Version

Usage: jira-version-me update [options]

Options:
  -c, --component <component>      The component to update
  -v, --version <version>          The version to create
  -d, --description <description>  The description of the version
  -r, --release                    Mark the version as released
  -h, --help                       display help for command

Assigning tickets to a Version

Usage: jira-version-me assign [options]

Options:
  -c, --component <component>  The component to update
  -v, --version <version>      The version to assign tickets to
  -t, --ticket <ticket...>     List of JIRA tickets to assign to the specified version
  -h, --help                   display help for command

Contributing

If you have suggestions for how jira-version-me could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

About

Manages Release (Fix Versions) in JIRA

Resources

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published