esl icon indicating copy to clipboard operation
esl copied to clipboard

[🚀site/chore]: create a workflow to create/update/resolve issue in case StatusCake integration detects site issue

Open ala-n opened this issue 1 year ago • 2 comments

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:

  1. Use a test repository to check the workflow first.
  2. Use official and recommended actions to manipulate GitHub entries (issues, comments).

ala-n avatar Jan 12 '24 08:01 ala-n

Test repository for status check workflow: https://github.com/fshovchko/status-check/pull/1

fshovchko avatar Feb 05 '24 13:02 fshovchko

The issue created by bot looks like this: Screenshot from 2024-02-05 15-24-10

fshovchko avatar Feb 05 '24 13:02 fshovchko