Created
October 10, 2020 13:02
-
-
Save potatoqualitee/65fa5979391895287b9dfe1d69f0b587 to your computer and use it in GitHub Desktop.
This file contains 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
# What protocol to use when performing git operations. Supported values: ssh, https | |
git_protocol: https | |
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment. | |
editor: | |
# When to interactively prompt. This is a global config that cannot be overriden by hostname. Supported values: enabled, disabled | |
prompt: enabled | |
# A pager program to send command output to. Example value: less | |
pager: | |
# Aliases allow you to create nicknames for gh commands | |
aliases: | |
checkout: pr checkout | |
bugs: issue list --label=bugs_life | |
prweb: pr create --fill --body '' --web | |
push: '!git push -u origin $(git branch --show-current)' | |
igrep: '!gh issue list --label=$1 | grep $2' | |
branch: "!if [ $1 == list ]\r\nthen\r\ngit branch -vva\r\nelif [ $1 == checkout ]\r\nthen\r\ngh checkout $1\r\nelse\r\necho nothing\r\nfi" | |
cd: '!git checkout $1' | |
newbranch: '!git checkout -b $1' | |
grep: '!gh issue list --label=$1 | grep $2' | |
ggrep: '!gh issue list --label=$1 | grep $2' | |
viewMilestone: |- | |
!gh api graphql -F owner=':owner' -F name=':repo' -F number=$1 -f query=' | |
query GetMilestones($name: String!, $owner: String!, $number: Int!) { | |
repository(owner: $owner, name: $name) { | |
milestone(number: $number) { | |
title | |
number | |
description | |
dueOn | |
url | |
state | |
closed | |
closedAt | |
updatedAt | |
issues(first: 100) { | |
nodes { | |
title | |
number | |
url | |
state | |
} | |
} | |
pullRequests(first: 100) { | |
nodes { | |
title | |
number | |
url | |
state | |
} | |
} | |
} | |
} | |
} | |
' | |
listMilestones: "api graphql -F owner=':owner' -F name=':repo' -f query='\r\n query ListMilestones($name: String!, $owner: String!) {\r\n repository(owner: $owner, name: $name) {\r\n milestones(first: 100) {\r\n nodes {\r\n title\r\n number\r\n description\r\n dueOn\r\n url\r\n state\r\n closed\r\n closedAt\r\n updatedAt\r\n }\r\n }\r\n }\r\n }\r\n'" | |
branches: '!git branch -vva' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment