Skip to content
Permalink
Browse files
read from templates instead
  • Loading branch information
Humbedooh committed Mar 26, 2022
1 parent cbf300b commit 79d9d9c7f84003ab7b91ef6255c1caba1f434cea
Showing 1 changed file with 2 additions and 32 deletions.
@@ -25,38 +25,8 @@
"""Simple GHA Workflow Status Notifier"""


JOB_FAILED = """
[GitHub] [{job_repo}]: Workflow run "{job_name}" failed!
--
The GitHub Actions job "{job_name}" on {job_repo}.git has failed.
Run started by GitHub user {job_actor} (triggered by {job_trigger}).
Head commit for run:
{trigger_hash} / {trigger_author} <{trigger_email}>
{trigger_log}
Report URL: {job_url}
With regards,
GitHub Actions via GitBox
"""

JOB_SUCCEEDED = """
[GitHub] [{job_repo}]: Workflow run "{job_name}" was fixed!
--
The GitHub Actions job "{job_name}" on {job_repo}.git has succeeded.
Run started by GitHub user {job_actor} (triggered by {job_trigger}).
Head commit for run:
{trigger_hash} / {trigger_author} <{trigger_email}>
{trigger_log}
Report URL: {job_url}
With regards,
GitHub Actions via GitBox
"""

JOB_FAILED = open("templates/job_failed.txt").read()
JOB_SUCCEEDED = open("templates/job_fixed.txt").read()
JOB_STATUS_SUCCESS = "success"
JOB_STATUS_FAILURE = "failure"

0 comments on commit 79d9d9c

Please sign in to comment.