Skip to content

๐Ÿ” A small CLI tool is used to search for Jira issues with linked PRs and issues that are fixed in upstream projects

License

Notifications You must be signed in to change notification settings

redhat-plumbers-in-action/fixdiscover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

JIRA FixDiscover

npm version Tests Linters CodeQL codecov

Description

Small CLI tool to search for Jira issues with linked PRs and Issues that are fixed in an upstream projects.

Usage

Make sure to store your JIRA Personal Access Token (PAT) and GitHub PAT in the ~/.config/fixdiscover/.env or ~/.env.fixdiscover file:

# ~/.config/fixdiscover/.env
JIRA_API_TOKEN="exaple-token"
GITHUB_API_TOKEN="exaple-token"

Tip

You can also set default values for the component and upstream in the ~/.config/fixdiscover/.env or ~/.env.fixdiscover file:

# ~/.config/storypointer/.env
COMPONENT="your-component"
UPSTREAM="upstream-project"

Using Node.js

# run it using npx
npx fixdiscover

# or install it globally using npm
npm install -g fixdiscover
fixdiscover

How to use

Important

This tool is intended to be used by Red Hat employees on the Red Hat JIRA instance. It may be adapted to work with other JIRA instances in the future.

$ fixdiscover --help
Usage: fixdiscover [options]

๐Ÿ” A small CLI tool is used to search for Jira issues with linked PRs and issues that are fixed in upstream projects

Options:
  -V, --version                output the version number
  -c, --component [component]  issue component
  -u, --upstream [upstream]    upstream project
  --migrate                    migrate links from Bugzilla to Jira
  -n, --nocolor                disable color output (default: false)
  -x, --dry                    dry run (default: false)
  -h, --help                   display help for command

Tip

You can disable color output by setting the NOCOLOR environment variable to true.

NOCOLOR=true npx fixdiscover

Similarly, you can enable dry run by setting the DRY environment variable to true.

Examples

Size all issues of the curl component:

fixdiscover -c systemd -u systemd/systemd

https://issues.redhat.com/browse/RHEL-66198
  - commit: https://github.com/systemd/systemd/commit/7102dc52e6b03248da1f01b3a8a4b83c6d7a1316
  - commit: https://github.com/systemd/systemd/commit/d25a9bfa8f8bd42b769dbf2f9786348864cf5e08
  - commit: https://github.com/systemd/systemd/commit/67f90b0d85bc425ec2c11106e8270c981c36585a
  - commit: https://github.com/systemd/systemd/commit/3d689b675b565c29a51c7127ae30839987aaa18b

https://issues.redhat.com/browse/RHEL-50103
  - issues: https://github.com/systemd/systemd/issues/34082
  - pull: https://github.com/systemd/systemd/pull/34099
  - pull: https://github.com/systemd/systemd/pull/33682

About

๐Ÿ” A small CLI tool is used to search for Jira issues with linked PRs and issues that are fixed in upstream projects

Topics

Resources

License

Stars

Watchers

Forks