should_heartbeat: factor out in internal method to avoid reparsing message

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
4 jobs for master
Status Job ID Name Coverage
  Lint
failed #33340
allowed to fail
lint-3.7-mypy

failed #33338
allowed to fail
lint-3.7-pylint

failed #33341
allowed to fail
lint-3.8-mypy

failed #33339
allowed to fail
lint-3.8-pylint

 
Name Stage Failure
failed
lint-3.8-pylint Lint There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log
failed
lint-3.8-mypy Lint There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log
failed
lint-3.7-mypy Lint There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log
failed
lint-3.7-pylint Lint There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log