Skip to content

Run and watch github actions directly from within neovim

License

Notifications You must be signed in to change notification settings

GustavEikaas/gh-actions.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-actions.nvim

Warning

This plugin is a work in progress and might have bugs and breaking changes

Run gh actions directly from neovim

Are you tired of visiting github in the browser to run your workflows or perhaps you use the CLI but remembering all the names and inputs is hard. Then this tool is for you, run workflows directly from neovim.

Motivation

As a developer using Neovim for (almost) everything I needed a plugin for running github actions

Features

  • Run github actions: Trigger workflow_dispatch jobs while being able to see the expected inputs
  • List workflow runs: List and see the statuses of workflow runs in your repository

Setup

Without options

-- lazy.nvim
{
  "GustavEikaas/gh-actions.nvim",
  config = function()
    require("gh-actions").setup()
  end
}

Commands

Vim commands

Actions run
Actions list

List

List workflow runs

  • <leader>r to refresh
  • <leader>o to open details

image

Auto refresh enabled when workflow is still running

  • q to close

image

Automatic stack trace on failed workflow run

  • q to close

image

Run

Trigger workflow_dispatch events directly from neovim

Workflow with workflow_dispatch trigger

Input arguments are automatically populated

  • <leader>r to submit
  • q to close

image

Workflow without workflow_dispatch trigger

Workflow definition is shown

  • q to close

image

Requirements

This functionality relies on gh-cli so make sure you have it installed

Contributions

While I initially developed this plugin to fulfill my own needs, I'm open to contributions and suggestions from the community. If you have any ideas or enhancements in mind, feel free to create an issue and let's discuss how we can make gh-actions.nvim even better!

About

Run and watch github actions directly from within neovim

Resources

License

Security policy

Stars

Watchers

Forks

Languages