GitHub CLI extension ProjectV2 utility ✨.
Add projectV2 socpes to GitHub CLI.
gh auth login --scopes 'project'
Install extension.
gh extension install shuntaka9576/gh-p2
Upgrade:
gh extension upgrade shuntaka9576/gh-p2
If ProjectV2 belongs to User, use --user(-u). if it belongs to Organization, use --org(-o) to specify the name.
Quick start
Create and add a draft issue to ProjectV2.
gh p2 create -u "ownerName" -p "projectTitle" -t "Title" -f "Status:Todo" -d
Details
flag | short | required | default |
---|---|---|---|
--user or --org | -u or -o | true | "" |
--project-title | -p | true | "" |
--title | -t | true | "" |
--draft | -r | true | false |
--assignees | -a | false | [] |
--fields | -f | false | [] |
--body | -b | false | "" |
--repo | -r | unavailable | "" |
--labels | -l | unavailable | [] |
gh p2 create \
--user "shuntaka9576" \
--project-title "testProject" \
--title "Fix bug" \
--draft \
--assignees "shuntaka9576" \
--fields "Status:Todo" \
--fields "point:3" \
--fields "deadline:2022-08-11" \
Quick start
Create an issue in {ownerName}/{repositoryName}
repository and add it to ProjectV2.
gh p2 create -u "ownerName" -r "repositoryName" -p "projectTitle" -t "Title"
Details
flag | short | required | default |
---|---|---|---|
--user or --org | -u or -o | true | "" |
--repo | -r | true | "" |
--project-title | -p | true | "" |
--title | -t | true | "" |
--draft | -r | false | false |
--assignees | -a | false | [] |
--labels | -l | false | [] |
--fields | -f | false | [] |
--body | -b | false | "" |
gh p2 create \
--user "shuntaka9576" \
--repo "repositoryName" \
--project-tilte "testProject" \
--title "Fix bug" \
--assignees "shuntaka9576" \
--labels "label1" \
--labels "label2" \
--fields "Status:Todo" \
--fields "point:3" \
--fields "deadline:2022-08-11"