Skip to content

A neovim plugin to help display all PRs assigned to you in the current repo.

License

Notifications You must be signed in to change notification settings

changangus/gh-list.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gh-list.nvim

This simple Neovim plugin is for users to more easily track authored PRs and reviews requested for any github repo.

Use cases

  • List all authored PRs in a github repo
  • List all reviews requested in a github repo

Screenshot 2023-05-06 at 7 57 20 PM

Buffer keymaps:

  • Open specific PR in the browser by hitting <CR>
  • Checkout PR branch with gco

Installation

Packer:

  use {
    'changangus/github_pulls.nvim',
    config = function()
      require('github_pulls').setup({
          username = 'YOUR_GH_USERNAME'
      })
    end
  }

Setup

  1. Create a github personal access token, instructions can be found here

  2. Globally export an environment variable named GH_TOKEN and assign your new token to the variable

  3. Make sure you have your username set in the config

  4. Create keymaps to call the functions:

vim.keymap.set("n", "YOUR KEYMAP", ":lua require('github_pulls.ui').toggle_pr_menu()<CR>", { noremap = true, silent = true })
vim.keymap.set("n", "YOUR KEYMAP", ":lua require('github_pulls.ui').toggle_reviews_menu()<CR>", { noremap = true, silent = true })

About

A neovim plugin to help display all PRs assigned to you in the current repo.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages