-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: implement error notification as pr comment #124
Conversation
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success187 tests passing in 17 suites. Report generated by 🧪jest coverage report action from 8b0412b |
Status update:
Open points:
TODOs:
|
This comment was marked as off-topic.
This comment was marked as off-topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny change otherwise looks great.
Co-authored-by: Earl Warren <[email protected]>
Thanks, copy&paste issue lol I need to drop for today, but I plan to finalize this tomorrow 🚀 |
As first implementation let's go with
Will create separate issue to make the comment body configurable through templating
Still need to try some real examples, did not have time to setup ad hoc test but will do asap. |
Ok I was able to test it with some real examples, e.g., lampajr/backporting-example#66 (comment) With latest two commits:
I decided to remove the error from the comment as it could become very huge if the conflicts are many, e.g., lampajr/backporting-example#66 (comment) |
@earl-warren If you want to take a further look the PR is ready, otherwise I will go and merge! PS: don't feel obligated, you already did a lot!!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Thank you for submitting this pull request
fixes #123
Description
Implement an optional notification mechanism on the original pull request for error tracking.
If enabled, the tool will create a new comment in the original PR (the one you tried to backport) with some infos of the error that occurred.
This is going to introduce other two inputs:
{{error}}
placeholder that can be replaced by the actual error.How Has This Been Tested?
Checklist
Merge criteria:
First time here?
This project follows git conventional commits pattern, therefore the commits should have the following format:
Where the type must be one of
[build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]
How to prepare for a new release?
There is no need to manually update
package.json
version andCHANGELOG.md
information. This process has been automated in Prepare Release Github workflow.Therefore whenever enough changes are merged into the
main
branch, one of the maintainers will trigger this workflow that will automatically updateversion
andchangelog
based on the commits on the git tree.More details can be found in package release section of the README.