Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

mafflerbach
mafflerbach

Posted on

     

Write github reviews comments from vim

Critiq is a neovim plugin to review github pull requests.

To setup Critic you have to set environment variables in your shell.
Be aware - if you want to use it in a corporate field, you access token should authorized the sso from your organization.

Usually you are doing it in exporting this in you shell rc file.
In my case it is the~/.zshrc in bash it is in the~/.bashrc

exportGH_PASS="Your github token generated [here](https://github.com/settings/tokens)"exportGH_USER="YourGithubUsername"
Enter fullscreen modeExit fullscreen mode

With:Critiq you get an separated buffer with all the open pull requests.

With enter, you will open the diff which belongs to the pr.
With:CritiqCommentLine you can right away commenting on the line. It will open a separated split buffer. With:CritiqSubmitComment
it will post your comment on github.

In the case that you are satisfied with the PR, you can also useCritiqApprove to approve the request.

Sadly this extension is not touched for a long time. It will still do the work, but occasionally you will facing some error, if you want to open a pr. But in general you are able to work with that extension.

This are the main feature in my opinion.

But there are a lot more possibilities if we take a look on the Commands:

:CritiqApprove:CritiqBrowsePr:CritiqCheckout:CritiqComment:CritiqCommentLine:CritiqDeleteBranch:CritiqEditLabels:CritiqListComments:CritiqListCommits:CritiqLoadMorePrs:CritiqMerge:CritiqOpenFile:CritiqOpenPr:CritiqPull:CritiqRequestChanges:CritiqSubmitComment:CritiqSubmitReview:CritiqToggleLabel
Enter fullscreen modeExit fullscreen mode

I will try to adapt my workflow and figuring out if this will feel comfortable, but it looks promising.

Top comments(4)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
mikesophie33 profile image
mikesophie
It might be disheartening to fall prey to a scam, as you were promised false hope. They typically stop responding once they've achieved their goal, which hurts even more. I've been there myself becaus
  • Joined

Being a scam victim can depressing, you were given empty promises. They usually stop replying after achieving their aim with hurts even more, i have been there too as i was too ambitious and wanted financial security which made me invest a huge chunk of my life savings. I never thought i would be getting back a dime back and already lost hope until i contacted a team which was just a leap of faith as i wasn’t going to go down without a fight. Core Crypto, a recovery team that helped me get a significant sum of my investment back. Do not brood alone, make a move too, send a mail to their team,hmarecovery12@gmail.com

CollapseExpand
 
evilcel3ri profile image
chris
writing things down before I forget them
  • Location
    Berlin
  • Work
    developer at Berlin
  • Joined

Hi! The link to critiq doesn't work :(

CollapseExpand
 
mafflerbach profile image
mafflerbach
  • Joined

Here is a fork of itgithub.com/AGhost-7/critiq.vim

CollapseExpand
 
evilcel3ri profile image
chris
writing things down before I forget them
  • Location
    Berlin
  • Work
    developer at Berlin
  • Joined

Thanks!

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Joined

More frommafflerbach

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp