kiegroup / git-backporting

Git backporting is a CLI tool to execute pull request backporting.
MIT License
16 stars 9 forks source link

Improve final backporting result reports #145

Open lampajr opened 1 month ago

lampajr commented 1 month ago

Is your feature request related to a problem? Please describe. Right now if something went wrong, we list all failures that occurred without linking it to the specific target branch to which it is associated with. This could be annoying when there are many issues or long errors.

Describe the solution you'd like As final step, returns a <target-branch, result> report such that it clearly states which backport failed and which did not.

For instance, something in tabular format:

Target Branch Result Error
develop OK -
prod KO error: ....

Describe alternatives you've considered n/a

Additional context This could also be added in the failure comment added in the original pull request

lampajr commented 1 month ago

It should be probably enough to keep track of the target-branch associated to the occurred failure here https://github.com/kiegroup/git-backporting/blob/2b4b4293566b22a9a1854828f169fa1dc97f8bc2/src/service/runner/runner.ts#L84-L104