Create new filters and create new labels.
label: gh-pull-request
;;; git.el -*- lexical-binding: t; -*- | |
(defun get-jira-prefix (iden) | |
"Get the JIRA branch identifier from IDEN." | |
(let ((prefix (string-match "[A-Za-z]+-[0-9]+" iden))) | |
(if (not prefix) | |
(message iden) (substring iden prefix (match-end 0)) | |
) | |
) |
# GET LINEAR ID | |
setopt local_options BASH_REMATCH | |
REGEX="[A-Za-z]+-[0-9]+" | |
BRANCH=$(git branch --show-current) | |
if [[ $BRANCH =~ $REGEX ]]; then | |
PREFIX=$BASH_REMATCH[1] | |
fi | |
# COMMIT CHANGES WITH PREFIX | |
MESSAGE="$1" |
Create new filters and create new labels.
label: gh-pull-request
let singletonPromise: Promise<T> | null; | |
async function getSingletonPromise() { | |
if (!singletonPromise) { | |
singletonPromise = functionThatReturnsAPromise<Promise<T>>() | |
} | |
return singletonPromise; | |
} | |
export default getSingletonPromise; |
{"lastUpload":"2020-07-12T19:49:30.768Z","extensionVersion":"v3.4.3"} |