Skip to content

Instantly share code, notes, and snippets.

@dakshin-k
Last active June 20, 2024 18:46
Show Gist options
  • Select an option

  • Save dakshin-k/795f37cc71ed8d3f7976e404de8f910b to your computer and use it in GitHub Desktop.

Select an option

Save dakshin-k/795f37cc71ed8d3f7976e404de8f910b to your computer and use it in GitHub Desktop.
Function that uses the Github CLI to load issues in VS Code and upload changes back to GitHub
function vs_edit_issue() {
gh issue view $1 --json body --jq .body > /tmp/gh-$1.md
code --wait /tmp/gh-$1.md
gh issue edit $1 --body-file /tmp/gh-$1.md
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment