{"id":13621311,"url":"https://github.com/shuntaka9576/gh-p2","last_synced_at":"2026-01-16T20:42:07.186Z","repository":{"id":58135350,"uuid":"529969726","full_name":"shuntaka9576/gh-p2","owner":"shuntaka9576","description":"✨ GitHub CLI extension ProjectV2 utility","archived":false,"fork":false,"pushed_at":"2024-03-26T07:57:01.000Z","size":186,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T03:42:38.456Z","etag":null,"topics":["gh-extension","github-projects"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shuntaka9576.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-28T20:17:05.000Z","updated_at":"2026-01-04T14:33:11.000Z","dependencies_parsed_at":"2024-02-08T01:27:21.871Z","dependency_job_id":"bfb6f184-c842-4265-8578-d424b0566e85","html_url":"https://github.com/shuntaka9576/gh-p2","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":0.06896551724137934,"last_synced_commit":"d3300f30dd2f5f6a391e094a4f8d2845911caee1"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/shuntaka9576/gh-p2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuntaka9576%2Fgh-p2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuntaka9576%2Fgh-p2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuntaka9576%2Fgh-p2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuntaka9576%2Fgh-p2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuntaka9576","download_url":"https://codeload.github.com/shuntaka9576/gh-p2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuntaka9576%2Fgh-p2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28482284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gh-extension","github-projects"],"created_at":"2024-08-01T21:01:04.541Z","updated_at":"2026-01-16T20:42:02.155Z","avatar_url":"https://github.com/shuntaka9576.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# gh-p2\n\nGitHub CLI extension ProjectV2 utility ✨.\n\n![gif](https://github.com/shuntaka9576/gh-p2/blob/main/doc/gif/p2.gif?raw=true)\n\n## Installation\n\nAdd projectV2 socpes to GitHub CLI.\n```bash\ngh auth login --scopes 'project'\n```\n\nInstall extension.\n```bash\ngh extension install shuntaka9576/gh-p2\n```\n\nUpgrade:\n\n```bash\ngh extension upgrade shuntaka9576/gh-p2\n```\n\n## Usage\n\n### Global Flags\n\nIf ProjectV2 belongs to User, use --user(-u). if it belongs to Organization, use --org(-o) to specify the name.\n\n### Create Issue\n\n#### Draft issue\n\n*Quick start*\n\nCreate and add a draft issue to ProjectV2.\n\n```bash\ngh p2 create -u \"ownerName\" -p \"projectTitle\" -t \"Title\" -f \"Status:Todo\" -d\n```\n\n*Details*\n\n|flag|short|required|default|\n|---|---|---|---|\n|--user or --org|-u or -o|true|\"\"\n|--project-title|-p|true|\"\"\n|--title|-t|true|\"\"\n|--draft|-r|true|false\n|--assignees|-a|false|[]\n|--fields|-f|false|[]\n|--body|-b|false|\"\"\n|--repo|-r|unavailable|\"\"\n|--labels|-l|unavailable|[]\n\n```bash\ngh p2 create \\\n  --user \"shuntaka9576\" \\\n  --project-title \"testProject\" \\\n  --title \"Fix bug\" \\\n  --draft \\\n  --assignees \"shuntaka9576\" \\\n  --fields \"Status:Todo\" \\\n  --fields \"point:3\" \\\n  --fields \"deadline:2022-08-11\" \\\n```\n#### Issue\n\n*Quick start*\n\nCreate an issue in `{ownerName}/{repositoryName}` repository and add it to ProjectV2.\n\n```bash\ngh p2 create -u \"ownerName\" -r \"repositoryName\" -p \"projectTitle\" -t \"Title\"\n```\n\n*Details*\n\n|flag|short|required|default|\n|---|---|---|---|\n|--user or --org|-u or -o|true|\"\"\n|--repo|-r|true|\"\"\n|--project-title|-p|true|\"\"\n|--title|-t|true|\"\"\n|--draft|-r|false|false\n|--assignees|-a|false|[]\n|--labels|-l|false|[]\n|--fields|-f|false|[]\n|--body|-b|false|\"\"\n\n```bash\ngh p2 create \\\n  --user \"shuntaka9576\" \\\n  --repo \"repositoryName\" \\\n  --project-tilte \"testProject\" \\\n  --title \"Fix bug\" \\\n  --assignees \"shuntaka9576\" \\\n  --labels \"label1\" \\\n  --labels \"label2\" \\\n  --fields \"Status:Todo\" \\\n  --fields \"point:3\" \\\n  --fields \"deadline:2022-08-11\"\n```\n\n### Ls Issue\n\n*Quick start*\n\nList an issue in project.\n\n```bash\n# To specify an organization, use -o instead of -u.\ngh p2 ls -u \"ownerName\" -p \"project\"  |\\\n  jq -r '[\"type\", \"number\", \"title\", \"status\", \"url\", \"point\", \"labels\"], (.items[] |[.type, .number, .title, .singleSelectValues.Status, .url, .numberValues.Point, (.labels | join(\", \"))]) | @csv'\n```\n\nStdout\n```csv\n\"type\",\"number\",\"title\",\"status\",\"url\"\n\"ISSUE\",48,\"title2\",\"In Progress\",\"https://github.com/shuntaka9576/kanban-test/issues/48\"\n\"DRAFT_ISSUE\",0,\"\",\"In Progress\",\"\"\n\"ISSUE\",49,\"Fix bug\",,\"https://github.com/shuntaka9576/kanban-test/issues/49\"\n\"DRAFT_ISSUE\",0,\"\",,\"\"\n\"DRAFT_ISSUE\",0,\"\",,\"\"\n\"ISSUE\",50,\"aaa[]\",,\"https://github.com/shuntaka9576/kanban-test/issues/50\"\n\"ISSUE\",51,\"aaa\",,\"https://github.com/shuntaka9576/kanban-test/issues/51\"\n\"ISSUE\",52,\"aaa\",,\"https://github.com/shuntaka9576/kanban-test/issues/52\"\n\"ISSUE\",58,\"test\",,\"https://github.com/shuntaka9576/kanban-test/issues/58\"\n\"ISSUE\",89,\"Fix bug\",\"Todo\",\"https://github.com/shuntaka9576/kanban-test/issues/89\"\n\"ISSUE\",90,\"Fix bug\",\"Todo\",\"https://github.com/shuntaka9576/kanban-test/issues/90\"\n\"DRAFT_ISSUE\",0,\"\",,\"\"\n```\n\n*Details*\n\n|flag|short|required|default|\n|---|---|---|---|\n|--user or --org|-u or -o|true|\"\"\n|--project-title|-p|true|\"\"\n\n\n## Special Thanks\n\n* https://github.com/yusukebe/gh-markdown-preview\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuntaka9576%2Fgh-p2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuntaka9576%2Fgh-p2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuntaka9576%2Fgh-p2/lists"}