Closed lampajr closed 7 months ago
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
π’ | Statements | 89.67% (-1.62% π») |
495/552 |
π’ | Branches | 86.24% (+0.05% πΌ) |
188/218 |
π’ | Functions | 87.4% (-1.03% π») |
111/127 |
π’ | Lines | 89.53% (-1.7% π») |
479/535 |
187 tests passing in 17 suites.
Report generated by π§ͺjest coverage report action from 8b0412b1110044e554b9029e7f5b19158885f4ee
Status update:
--enable-err-notification
to enable this new featureBackporting failed: {{error}}
where {{error}}
gets replaced by the actual exception msgOpen points:
TODOs:
@earl-warren fyi
One tiny change otherwise looks great.
Thanks, copy&paste issue lol
I need to drop for today, but I plan to finalize this tomorrow :rocket:
Open points:
* I don't really like the default comment message I set right now, any feedback is welcome
As first implementation let's go with Backporting failed: ${{error}}
* Make the comment message configurable, I think this is a good thing but it can be done in a followup PR
Will create separate issue to make the comment body configurable through templating
TODOs:
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., https://github.com/lampajr/backporting-example/pull/66#issuecomment-2048379252
With latest two commits:
dry-run
is enabledI decided to remove the error from the comment as it could become very huge if the conflicts are many, e.g., https://github.com/lampajr/backporting-example/pull/66#issuecomment-2048357951
@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!!!
Thank you for submitting this pull request
fixes https://github.com/kiegroup/git-backporting/issues/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](https://gist.github.com/qoomon/5dfcdf8eec66a051ecd85625518cfd13) pattern, therefore the commits should have the following format: ```How to prepare for a new release?
There is no need to manually update `package.json` version and `CHANGELOG.md` information. This process has been automated in [Prepare Release](./workflows/prepare-release.yml) *Github* workflow. Therefore whenever enough changes are merged into the `main` branch, one of the maintainers will trigger this workflow that will automatically update `version` and `changelog` based on the commits on the git tree. More details can be found in [package release](https://github.com/kiegroup/git-backporting/blob/main/README.md#package-release) section of the README.