Add GitPullRequestHelpHandler class
A new job handler has been created so that packit-service now has the ability to respond to the help command in PR comments. The bot then should automatically generate a comment, which contains a help message that includes the usage, link to documentation and contacts. A test for Github PR was made to test this new functionality.
TODO:
- [ ] Update or write new documentation in
packit/packit.dev. - [ ] In the help message, add reference to
/packit-ciwhen user uses/packitand the other way around. This is in case the user uses/packitwhen they should be using/packit-ciand vice versa.
This PR is a draft at the moment because the help message is going to be generated via argparse, which is being used in my other PR to define comment parses (these parsers were added in that PR to handle the latest --package argument). Once that is merged, I will uncomment the code that requires these parsers to generate the help message. At the moment, a placeholder help message is used.
Fixes #1668
Related to
Merge after #2850
RELEASE NOTES BEGIN
Packit-service now supports the help command in PR comments.
RELEASE NOTES END
Build succeeded. https://softwarefactory-project.io/zuul/t/packit-service/buildset/e290e79dc06e4a90b50b767ffe5ade24
:heavy_check_mark: pre-commit SUCCESS in 1m 57s :heavy_check_mark: packit-service-tests SUCCESS in 4m 00s
Build failed. https://softwarefactory-project.io/zuul/t/packit-service/buildset/fcbf4c54690144ecbc74459c2d03192c
:x: pre-commit FAILURE in 1m 43s :x: packit-service-tests FAILURE in 3m 16s
Build failed. https://softwarefactory-project.io/zuul/t/packit-service/buildset/0a5eb2726eaa453d8ca04ca29a9e2c64
:heavy_check_mark: pre-commit SUCCESS in 1m 48s :x: packit-service-tests FAILURE in 3m 44s
/gemini review
Build failed. https://softwarefactory-project.io/zuul/t/packit-service/buildset/a2ec59f70be24ec190d4271826221ea5
:heavy_check_mark: pre-commit SUCCESS in 1m 48s :x: packit-service-tests FAILURE in 3m 21s
Build failed. https://softwarefactory-project.io/zuul/t/packit-service/buildset/b04c8fcfe32f4deeb0d488cfc7c1d7b7
:x: pre-commit FAILURE in 1m 49s :x: packit-service-tests FAILURE in 3m 19s
Build succeeded. https://softwarefactory-project.io/zuul/t/packit-service/buildset/5b73e40d72694c5ab127842c4b6818e0
:heavy_check_mark: pre-commit SUCCESS in 1m 46s :heavy_check_mark: packit-service-tests SUCCESS in 4m 22s
Build succeeded. https://softwarefactory-project.io/zuul/t/packit-service/buildset/2052ab8a59b34d5d9253ef585322a7f4
:heavy_check_mark: pre-commit SUCCESS in 2m 13s :heavy_check_mark: packit-service-tests SUCCESS in 3m 36s
/gemini review
/gemini review
Build succeeded. https://softwarefactory-project.io/zuul/t/packit-service/buildset/c032e01aa4f14eefa491a43d23f0bcb0
:heavy_check_mark: pre-commit SUCCESS in 1m 46s :heavy_check_mark: packit-service-tests SUCCESS in 3m 47s
Build succeeded. https://softwarefactory-project.io/zuul/t/packit-service/buildset/5cd9379bfffd48979c8d1a5525924b46
:heavy_check_mark: pre-commit SUCCESS in 1m 41s :heavy_check_mark: packit-service-tests SUCCESS in 3m 27s