Skip to content

Managing GitHub Issues

Supun Matheesha Suriyaarachchi edited this page Jul 23, 2021 · 5 revisions

Installing GitHub CLI

You can install the GitHub CLI via this link GitHub CLI

Setup GitHub environment after the installation

  • Go to your cmd.exe (Command prompt on windows)

Type following commands on CLI.

  • Check GitHub CLI works fine on our computer

gh
  • Connect our GitHub account to CLI

gh auth login
  • How to find the GitHub CLI version

gh --version

Managing GitHub Issues.

  • To check all issues (See all the issues in a particular repo)

gh issue list
  • GitHub issues that assign to the user

gh issue list --assignee "UserName" 
  • Check all the issues that assign/ mention to user or opened by user

gh issue status
  • Check the closed issues

gh issue list --state "closed"
  • Check for issues by "Label Name"

gh issue list --label "label flag(label name)"
gh issue list -l "bug"
  • Open a Issue

gh issue view "Issue number"
  • CREATING AN ISSUE

gh issue create
  • After we created an issue we are able to set a "Title" and a "Body" to our issue.

  • CREATING AN ISSUE WITH A "TITLE" & "BODY"

gh issue create -t "Title" -b "Body"
  • CREATING AN ISSUE IN THE BROWSER

gh issue create --web
  • DELETING THE ISSUE

gh issue delete "Issue Number"