add-pr-comment | uses: mshick/add-pr-comment@v2 | Continous Integration library
kandi X-RAY | add-pr-comment Summary
kandi X-RAY | add-pr-comment Summary
uses: mshick/add-pr-comment@v1
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of add-pr-comment
add-pr-comment Key Features
add-pr-comment Examples and Code Snippets
Community Discussions
Trending Discussions on add-pr-comment
QUESTION
I built a pylint git action, for pull request, which actually works really well:
...ANSWER
Answered 2022-Feb-12 at 12:39Yes it's doable.
I am using combination of 2 actions:
- one to find comment id
- second one to update or create comment
Here you have a working example coming from an action I use for comments editing and creation: https://github.com/peter-evans/create-or-update-comment#where-to-find-the-id-of-a-comment
QUESTION
I am setting up my github CI pipeline, currently I am trying to setup pylint to be ran automatically on pull requests. How do I write the results from pylint into a PR comment?
This is what I have. I try to use the github action on mshick/add-pr-comment@v1. However, I am not sure how to pipe the result from the previous step. Is it possible to only write the final score instead of the whole result, because it's very long.
...ANSWER
Answered 2022-Feb-11 at 22:00To achieve what you want, you would have to use a sceipt or a shell command (which I don't know as it depends on the context) to extract just the part of the command output you want (e.g: Your code has been rated at 3.31/10), then add it as env variable (or output) to use it in the next step.
I would do something like this in your job:
QUESTION
I have the following Github Action workflow that is intended to read our lines of code coverage from a coverage.txt file and print the coverage as a comment.
...ANSWER
Answered 2021-Aug-21 at 18:11You can create a step that gets the coverage to an output variable that then can be accessed by the next step.
Notice that for utilizing this method you will need to give the step and id and the set output variable a variable name so that you can access it in follow up steps within the same job.
Sample with your workflow below, but if you want to see a running demo here is the repo https://github.com/meroware/demo-coverage-set-output
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install add-pr-comment
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page