npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

git-jira-tools

v0.9.0

Published

Git Jira tools - It helps avoiding repetitive git tasks on jira tag branch based projects

Downloads

8

Readme

git-jira-tools

A serie of tools to speedup day to day work with jira based projects

CircleCI npm version

Description :

This command line utility helps you to be more productive speeding up common tasks done on projects working with jira tags and git which follow the branch style PRE-123-branch-description and the commit pattern PRE-123 commit description which stands for the pattern:

  • Branch name:

{jira_project_prefix=PRE-}+{issue_number=123}+{lowercase description with separators=-}

  • Commit:

{jira_project_prefix=PRE-{+issue_number=123}+{lowercase description}

It gives you commands for:

  • starting a new branch with a tag and description
  • committing on a branch following the pattern
  • moving between branches
  • closing a branch (remote and local)
  • listing open branches
  • publishing and openning pr for a branch (currently github only)
  • updating already published branch
  • updating branch from master

Installation

$ npm i -g git-jira-tools

Configuration

You must provide a .env file in the project you are working on with some options:

  • JG_TOOLS_PREFIX required. Jira project tag For example PRE-
  • JG_TOOLS_MAIN_BRANCH main branch to take as reference for updating, new branch creation or PR opening. By default master
  • JG_TOOLS_BRANCH_SEPARATOR will be used on branch names as separator. By default -
  • JG_TOOLS_REMOTE remote repository. By default origin

Example:

JG_TOOLS_PREFIX='PRE-'
JG_TOOLS_REMOTE='upstream'

Usage

gjt-issues

Lists available issue branches. Branches beginin with the prefix PRE-id-

$ gjt-issues

gjt-start

Starts working in a new issue. Will create a new branch from master. The description will be branch name preceded by the tag.

$ gjt-start tag description [--from-current | --fc]

Example:

$ gjt-start 123 issue name

Creates branch PRE-123-issue-name

Options:

  • --from-current, --fc: Will create branch from current one instead from master.

gjt-close

Ends working in the issue. Will remove remote and local branch. If no branch is specified it will request to select one of the available issue branches.

$ gjt-close [tag]

Example:

$ gjt-close 123

Deletes branch PRE-123-description localy and remotely

gjt-move

Moves to selected issue branch. If no branch is specified it will request to select one of the available issue branches.

$ gjt-move [tag]

Example:

$ gjt-move 123

Moves to branch PRE-123-description

gjt-update

Updates current branch rebasing master branch. Before rebasing master it will pull master changes from remote. If there is work in progress it will stash changes and reaply them after updating. If there are conflicts on rebasing, stashed changes will be available but won't be applied you will have to resovle conflicts and continue rebasing manually.

$ gjt-update

Example:

$ gjt-update

gjt-save

Commits currently staged changes. You must be in a issue branch to be able to save work in progress.

$ gjt-save commit_messsage

Example:

$ gjt-save adding new files to current issue branch

Commits staged WIP into the issue branch with the message "PRE-issue_tag Adding new files to current issue branch"

gjt-publish

Pushes changes of the selected issue branch to remote. If no branch is specified it will publish current branch. By default it opens create pull request screen (only github).

$ gjt-publish [tag]

Example:

$ gjt-publish 123

Pushes branch PRE-123-description to remote

Options:

  • --no-pr: Won't open create pull request screen.

gjt-republish

Pushes updates of the selected issue branch to remote. If no branch is specified it will publish current branch. Will force changes replacing remote branch if available.

$ gjt-republish [tag]

Example:

$ gjt-republish 123

Force pushes branch PRE-123-description to remote