rbfx/GitHub on Discord
Doing stuff so you dont have to.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| action-task | Task this action is to perform. One of: discord-commits, discord-jobs. | yes | — |
| github-token | GitHub access token. | yes | — |
| discord-webhook | Discord webhook. | no | — |
| discord-username | Username of discord bot. | no | — |
| discord-avatar-url | URL to avatar of discord bot. | no | — |
| discord-filter | Filter expression which decides whether this job will be processed. | no | '{{ github.branch }}' == 'master' |
| discord-commit-message | Commit message template | no | {{ commit.author.name }} ([@{{ github.context.payload.head_commit.author.username }}](https://github.com/{{ github.context.payload.head_commit.author.username }}/)) commited: [{{ commit.title }}]({{ commit.url }}) |
| discord-commit-embed | Commit embed template | no | { "title": "{{ commit.title }}", "description": "{{ commit.description }}", "url": "{{ commit.url }}", "timestamp": "{{ commit.timestamp }}", "author": { "name": "{{ commit.author.name }} ({{ commit.author.username }})", "icon_url": "https://unavatar.now.sh/gravatar/{{ commit.author.email }}" }, "color": "0x294A70" } |
| discord-commit-push-all | Push all commits instead of just latest one. | no | false |
| discord-job-new-failure-message | Template of new job failure message. | no | Failing commit diff: {{ github.context.payload.compare }} |
| discord-job-new-failure-embed | Embed template for reporting new job failures. | no | { "title": "`{{ job.name }}` job is failing!", "description": "Bad [@{{ github.context.payload.head_commit.author.username }}](https://github.com/{{ github.context.payload.head_commit.author.username }}/)!\nCommit [{{ github.context.payload.head_commit.title }}]({{ github.context.payload.head_commit.url }}) pushed to [{{ github.branch }}]({{ github.branch_url }}) broke job [{{ job.name }}]({{ job.url }}).\nFailing steps: {{ failing_steps }}", "url": "{{ job.url }}", "color": "0xFF0000", "timestamp": "{{ run.updated_at }}" } |
| discord-job-fixed-failure-message | Title of fixed job failure message. | no | [{{ github.branch }}]({{ github.branch_url }}) branch is no longer failing! |
| discord-job-fixed-failure-embed | Message template for reporting previously failed job succeeding. | no | { "title": "`{{ github.branch }}` branch is no longer failing!", "description": "Build failures were fixed on [{{ github.branch }}]({{ github.branch_url }}) branch. Good job [@{{ github.context.payload.head_commit.author.username }}](https://github.com/{{ github.context.payload.head_commit.author.username }}/)!", "color": "0x00FF00", "url": "{{ github.context.payload.head_commit.url }}", "timestamp": "{{ run.completed_at }}" } |
Outputs
no outputs