mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-14 07:59:34 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/gh-project
Normal file
37
tldr/gh-project
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gh project
|
||||
|
||||
> Work with GitHub Projects.
|
||||
> More information: <https://cli.github.com/manual/gh_project>.
|
||||
|
||||
- List projects owned by the currently authenticated user:
|
||||
|
||||
`gh project {{[ls|list]}}`
|
||||
|
||||
- List projects owned by a specific user or organization:
|
||||
|
||||
`gh project {{[ls|list]}} --owner {{owner}}`
|
||||
|
||||
- View a project by number:
|
||||
|
||||
`gh project view {{number}} --owner {{owner}}`
|
||||
|
||||
- Create a new project:
|
||||
|
||||
`gh project create --owner {{owner}} --title {{project_title}}`
|
||||
|
||||
- Add an item (issue or pull request) to a project:
|
||||
|
||||
`gh project item-add {{number}} --owner {{owner}} --url {{issue_or_pr_url}}`
|
||||
|
||||
- List items in a project:
|
||||
|
||||
`gh project item-list {{number}} --owner {{owner}}`
|
||||
|
||||
- Close a project:
|
||||
|
||||
`gh project close {{number}} --owner {{owner}}`
|
||||
Reference in New Issue
Block a user