esl
esl copied to clipboard
[🚀site/chore]: create a workflow to create/update/resolve issue in case StatusCake integration detects site issue
As an ESL maintainer, I want to have an automated process to report site problems detected by the outside service (in our case Status Cake).
Behavior:
- GitHub workflow runs once an event is received by the webhook or by the cron scheduler if the webhook does not work.
- The workflow creates a specially marked (fixed title or special label) issue on the project (credentials to be provided by the repository secrets).
- The workflow closes the issue automatically in case the service reports a successful check. (Note to self: close with a clear comment that the issue is closed by a successful status).
- The workflow provides a compact but informative status of the check in the issue and updates it if required while the status is not successful.
Technical details:
- Use a test repository to check the workflow first.
- Use official and recommended actions to manipulate GitHub entries (issues, comments).
Test repository for status check workflow: https://github.com/fshovchko/status-check/pull/1
The issue created by bot looks like this: