Skip to content

Commit

Permalink
More workflow & push template work
Browse files Browse the repository at this point in the history
  • Loading branch information
DEVTomatoCake committed Nov 3, 2023
1 parent e15e4ae commit 912d5c7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions templates/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ module.exports = [
name: "{{ sender.login }}",
icon_url: "{{ sender.avatar_url }}"
},
title: "[{{ repository.name }}:{{ base_ref }}] {{ count(commits) }} new commit(s)",
title: "[{{ repository.name }}:{{ head_commit.tree_id }}] {{ count(commits) }} new commit(s)",
url: "{{ compare }}",
color: color("black")
color: color("gray")
}]
}
]
4 changes: 2 additions & 2 deletions templates/team_add.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module.exports = [
name: "{{ sender.login }}",
icon_url: "{{ sender.avatar_url }}"
},
title: "[{{ repository.name }}:{{ repository.default_branch }}] `team_add`",
url: "{{ repository.html_url }}",
title: "[{{ repository.name }}] Team **{{ team.name }}** added",
url: "{{ team.html_url }}",
color: color("black")
}]
}
Expand Down
18 changes: 9 additions & 9 deletions templates/workflow_job.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ module.exports = [
name: "{{ sender.login }}",
icon_url: "{{ sender.avatar_url }}"
},
title: "[{{ repository.name }}:{{ repository.default_branch }}] `workflow_job` (`completed`)",
url: "{{ repository.html_url }}",
title: "[{{ repository.name }}] Workflow **{{ workflow.name }}** {{ workflow_run.conclusion }}",
url: "{{ workflow_run.html_url }}",
color: color("black")
}]
},{
Expand All @@ -19,8 +19,8 @@ module.exports = [
name: "{{ sender.login }}",
icon_url: "{{ sender.avatar_url }}"
},
title: "[{{ repository.name }}:{{ repository.default_branch }}] `workflow_job` (`in_progress`)",
url: "{{ repository.html_url }}",
title: "[{{ repository.name }}] Workflow **{{ workflow.name }}** {{ workflow_run.status }}",
url: "{{ workflow_run.html_url }}",
color: color("black")
}]
},{
Expand All @@ -30,8 +30,8 @@ module.exports = [
name: "{{ sender.login }}",
icon_url: "{{ sender.avatar_url }}"
},
title: "[{{ repository.name }}:{{ repository.default_branch }}] Workflow **{{ workflow.name }}** queued",
url: "{{ repository.html_url }}",
title: "[{{ repository.name }}] Workflow **{{ workflow.name }}** queued",
url: "{{ workflow_run.html_url }}",
color: color("gray")
}]
},{
Expand All @@ -41,9 +41,9 @@ module.exports = [
name: "{{ sender.login }}",
icon_url: "{{ sender.avatar_url }}"
},
title: "[{{ repository.name }}:{{ repository.default_branch }}] `workflow_job` (`waiting`)",
url: "{{ repository.html_url }}",
color: color("black")
title: "[{{ repository.name }}] Workflow **{{ workflow.name }}** waiting",
url: "{{ workflow_run.html_url }}",
color: color("gray")
}]
}
]
4 changes: 2 additions & 2 deletions templates/workflow_run.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = [
image: {
url: "{{ workflow_run.badge_url }}"
},
color: color("green")
color: color("magenta")
}]
},{
action: "in_progress",
Expand All @@ -29,7 +29,7 @@ module.exports = [
image: {
url: "{{ workflow_run.badge_url }}"
},
color: color("black")
color: color("yellow")
}]
},{
action: "requested",
Expand Down

0 comments on commit 912d5c7

Please sign in to comment.