Skip to content

Commit

Permalink
chore(docs): add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Willem Jan Noort committed Jun 24, 2024
1 parent 718aec1 commit cb89ec2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
echo "LUAROCKS_VERSION=$tag" >> $GITHUB_ENV
- name: Luarocks Upload
uses: nvim-neorocks/luarocks-tag-release@v5
uses: nvim-neorocks/luarocks-tag-release@v7
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
with:
Expand Down
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# adopure.nvim

The plugin provides an opinionated workflow to interact with Azure DevOps Pull Requests.

## Installation

- Requires Neovim >= 0.10
- Installation:
``` lua
{
"Willem-J-an/adopure.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim"
},
config = function()
vim.g.adopure = {}
end,
}
```

## Usage
```
:AdoPure [ load ] [ context | threads ] [ opts ]
[ open ] [ quickfix | thread_picker | new_thread | existing_thread ] [ opts ]
[ submit ] [ comment | vote | thread_status ] [ opts ]
```

command | subcommand | description
-- | -- | --
load | " " | Loads specified argument into state.
" " | context | Load open pull requests; prompt user to pick one.
" " | threads | Fetch comment threads from Azure DevOps.
open | " " | Opens specified argument in the editor.
" " | quickfix | Open comment threads in quickfix window.
" " | thread_picker | Open a picker with all comment threads.
" " | new_thread | Opens a window to write a comment on code selection.
" " | existing_thread | Opens a window with an existing comment thread.
submit | " " | Submits specified argument to Azure DevOps.
" " | comment | Submit new comment or reply; must be in new_thread or existing_thread window.
" " | vote | Submit a new vote on the pull request.
" " | thread_status | Submit a thread_status change; must be in existing_thread window.

0 comments on commit cb89ec2

Please sign in to comment.