-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support comments instead of annotations #5
Comments
can it be made optional, default on |
I see a lot of up-votes here, |
In some cases when the pr is quite large then scrolling through to find the issue can take time. Also if I click the In many cases running golangci-lint locally will be simpler but I find contributors are not running it locally even after the ci job fails, my teammates and I end up having to comment asking to fix linting issues. Before when golangci-lint was running as its own service we never had to comment to fix things. |
I'm still thinking about implementation. I see the following options:
|
not sure if one of the options encapsulates having the action comment. something like https://github.com/marketplace/actions/comment-on-pr could be used internally (not copy-paste) and then the output of the linting is added to a markdown file that that gets commented in the pr? note: this could already be done with two separate jobs. |
thank you! env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} are made from a user's login, |
I'm not sure when I will find time for that but if anyone wishes to help - here is how it can be implemented:
Also, I don't have experience in tests for js, so the current action doesn't have any tests =( It will be very cool if someone can introduce tests (jest?) with this change, because logic here is complex. |
just a drive-by comment, but, wrt tests, it seems there is the beginning of a Go-based SDK for github actions: |
it looks interesting, thank you |
Just came across this and at least from a permissions standpoint comments, especially for forked PRs, could be resolved via |
whats the status of this issue? I find having it in comments is really helpful than in annotations |
This comment was marked as outdated.
This comment was marked as outdated.
Very useful feature to have! |
Annotations are nice, but I have to go hunt them down. Every other aspect of my CI, if its a blocking issue to the pull request, it gets a sticky comment -> https://github.com/marocchino/sticky-pull-request-comment Once said issue is resolved, comment cleans itself up. When I make a round on my outstanding PRs, it'd be nice not to have to click to a handful of views to get the answers I need. Comments ftw. |
Yes, I need him very much!So what's the progress now? |
👀 also curious about update on this. I would much rather prefer a comment versus annotation. usually I just click a link to the main pull request page from slack. it is more often the code reviewer that is actually viewing the 'files changed' tab. |
Like golangci.com has worked.
How annotations look now:
They look similar to comments, but they don't appear in the comments list and on main page of a pull request.
The text was updated successfully, but these errors were encountered: