Comments (1)
I was able to add some formatting by editing the file contents before commenting it. I added another step before the comment step:
...
- name: overwrite parts of the comment file
env:
FILE_PATH: ${{ path_to_file }}
run: |
echo "\`\`\`js" > tmp
cat $FILE_PATH >> tmp
echo "\`\`\`" >> tmp
mv tmp $FILE_PATH
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
filePath: ${{ path_to_file }}
comment_tag: pr_comment
...
After this, the message sent was in js format.
from actions-comment-pull-request.
Related Issues (20)
- Upload images HOT 1
- Allow to silently exit on no PR error HOT 1
- How to link to a file created in previous step of a github action? HOT 1
- Custom Pr_number after merge to master not working HOT 3
- Populate an output variable with the input message HOT 1
- Formatting of message HOT 1
- Question: how to use a file content as comment messages on a PR? HOT 1
- Split PR comment if it is too long HOT 3
- Can I use this action to comment on PRs coming from a fork? HOT 1
- Parameter token or opts.auth is required
- Github actions Verified creator HOT 1
- Failing to add html file as comment on PR from forked repository HOT 1
- Node.js 16 actions are deprecated HOT 1
- Wrong Release Name HOT 1
- Changing icon and commenter name?
- On `delete` mode new comment always will be created HOT 3
- Feature request: `append` mode to add to existing comment HOT 2
- Improvement: Automatically check to see if a PR actually triggered the action HOT 2
- Feature request: variable support when using `filePath` option?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-comment-pull-request.