Socket
Socket
Sign inDemoInstall

@teamstarter/jira-standard-version-release-check

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teamstarter/jira-standard-version-release-check

A small tool to easily check if commits related to a User Story and their task is ready to be released in production.


Version published
Weekly downloads
121
decreased by-25.31%
Maintainers
2
Weekly downloads
 
Created
Source

Illustration tab

jira-standard-version-release-check

A small tool to easily check if commits related to a User Story and their task is ready to be released in production for a scrum project.

What can I do with check-release ?

The tools provided by this library will allow you to:

  • Compare your commits titles to your Jira US status in order to quickly see if the US are done and reviewed
  • Compare your commits titles to your Jira tasks status in order to quickly see if the tasks are done and reviewed

Getting started

Add the lib and the peer dependencies:

$ yarn add @teamstarter/jira-standard-version-release-check

⚠️ Caution: check-release requires at least Node v9.11.2 or greater as it is using async/await.

Setting up for versioning

Check-release uses standard-version to generate a changelog based on your commits.

Setting up .env file

You need to add the following entries in your env or in a .env file located in the current folder. For all of the 'STATUS' in the env variable, you can set many of them, the script will compare env entries with US/tasks status with includes(). They are case insensitive. ⚠️ Caution: the Jira API uses the language set in the Jira app. Be mindful of that when setting the following Jira status values.

JIRA_ACCOUNT_TOKEN=
JIRA_ACCOUNT_EMAIL=
JIRA_US_READY_TO_RELEASE_STATUS=
JIRA_US_RELEASE_STATUS=
JIRA_TASK_READY_TO_RELEASE_STATUS=
JIRA_TASK_RELEASE_STATUS=
JIRA_SUBDOMAIN=
JIRA_PROJECT_KEY=
CONFIG_SUBTASKS="true"
  • JIRA_ACCOUNT_TOKEN is the token you have to generate on your atlassian profile.
  • JIRA_US_READY_TO_RELEASE_STATUS is the status on Jira that you consider is "ready to release" for US.
  • JIRA_US_RELEASE_STATUS is the status on Jira that you consider is "released" for US.
  • JIRA_TASK_READY_TO_RELEASE_STATUS is the status on Jira that you consider is "ready to release" for tasks.
  • JIRA_TASK_RELEASE_STATUS is the status on Jira that you consider is "released" for task.
  • JIRA_SUBDOMAIN is the subdomain name of your organization when you connect on Jira (like so <JIRA_SUBDOMAIN>.atlassian.net).
  • JIRA_PROJECT_KEY is the project key on Jira (which is typically the shorthand version of the project's name).
  • CONFIG_SUBTASKS="true" change to false if your project doesn't use subtasks.

Setting up your git commits

Make sure that the commits must contain the US id, like so : <project-key>-<US number>

How to use

You can run the library with the cli command: check-release

Available options

You can apply the following options :

--onlyWarnings or -w : will only show warnings.
--table or -t : will display output as a table (see console.table())
--disableChecks or -d : will only display standard-version output without comparing it to Jira.

You can combine onlyWarnings mode with table mode.

Understand the output

Error types

You might encounter the following errors:

- [🚨 MISSING US NB] => Your commit does not contain a correct US number, refer to the section about Setting up your git commits
- [🔥 ERROR DURING FETCH] => The fetch to the Jira API returned an error.
- [❓ WRONG US NB] => Your commit contains a US number that does not exists.

Status types for US

- 🚀 => US status = JIRA_US_RELEASE_STATUS.
- ✅ => US status = JIRA_US_READY_TO_RELEASE_STATUS.
- ❌ => US status isn't any of the above.

Status types for tasks

- 👌 => task status = JIRA_TASK_RELEASE_STATUS.
- ✅ => task status = JIRA_TASK_READY_TO_RELEASE_STATUS.
- 👎 => task status isn't any of the above.

Output formatting

All possible outputs: All possible output Table output: Tab output

[<US STATUS EMOJI> <US STATUS (if not in prod)>] @<ASSIGNEE (if is not ready)> <US TITLE>]
< List of tasks (if not in prod):
(<task status emoji> <task title> @<assignee (if is not ready)> <task key>)
>
<Link to US (if ready)>

Keywords

FAQs

Package last updated on 25 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc