Skip to content

Commit

Permalink
iroiro
Browse files Browse the repository at this point in the history
  • Loading branch information
shuntaka9576 committed Feb 8, 2024
1 parent b66f991 commit 2075133
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ gh p2 show -u "ownerName" -r "repositoryName" -p "projectTitle" -f "Status:TODO"

*Details*

|flag|short|required|default|description|
|---|---|---|---|---|
|flag|short|required|default|
|---|---|---|---|
|--user or --org|-u or -o|true|""|
|--repo|-r|true|""|
|--project-title|-p|true|""|
|--filter|-f|true|""|Specify `<customFieldName>:<customFieldValue>`
|--filter|-f|true|""|

```bash
gh p2 show \
Expand Down
7 changes: 7 additions & 0 deletions cmd/p2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ var CLI struct {
Draft bool `short:"d" name:"draft" help:"Due to GitHub specifications, the --label and --repo options cannot be used together."`
Assignees []string `short:"a" name:"assignees" help:"Specify the GitHub account ID to be assigned."`
} `cmd:"" help:"Option to create an issue or draft issue directly in Project V2."`
Show struct {
ProjectTitle string `short:"p" required:"" name:"project-title" help:"Specify the title of ProjectV2."`
Title string `short:"t" required:"" name:"title" help:"Specify issue title."`
Body string `short:"b" name:"body" help:"Specify issue body."`
Repo string `short:"r" name:"repo" help:"Specify the repository name. Owner name is not required. This flag is not available when creating draft issues."`
Filter string `short:"f" name:"filter" help:"Specify '<customFieldName>:<customFieldValue>'`
} `cmd:"" help:"Option to create an issue or draft issue directly in Project V2."`
}

func main() {
Expand Down

0 comments on commit 2075133

Please sign in to comment.