This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useState } from 'react'; | |
import { useFormikContext } from '@sonic/form'; | |
import useEventCallback from '@sonic/utils/useEventCallback'; | |
import { tierPath } from '../constants'; | |
type Tiers = 3 | 4 | 5 | 6; | |
type TierValues = 0 | 20 | 50 | 100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// requires: | |
// - https://github.com/github/hub | |
// - https://github.com/ankitpokhrel/jira-cli | |
// $ gbranch COM-12345 | |
function gbranch { | |
typeset -u key | |
local key=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $ gfeat "did some stuff" | |
function gfeat { | |
# Extract the branch key (formatted as uppercase second segment + third segment) | |
local key=$(git branch --show-current | awk -F"[/-]+" '{print toupper($2)"-"$3}') | |
# Construct the commit message using all passed arguments | |
local commitmessage="feat: $key $*" | |
# Use vared to allow editing of the commit message |