-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use `event` github context object property rather than payload for repository and commit payload file integration test. Tweak repository and commit fields in payload file test. Tweak author field in payload file test. Drop message, link to user profile for actor field.
- Loading branch information
Showing
4 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
{ | ||
"text": "Incoming Webhook test for slack send", | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "Content of the event name: {{ github.event_name }}", | ||
"emoji": true | ||
} | ||
} | ||
] | ||
"text": "A GitHub Action Event ${{ github.eventName }} has ${{ env.JOB_STATUS }}", | ||
"attachments": [{ | ||
"color": "${{ env.ATTACHMENT_COLOR }}", | ||
"fields": [{ | ||
"title": "Repository", | ||
"short": false, | ||
"value": "<${{ github.payload.repository.html_url }}|${{ github.payload.repository.full_name }}>" | ||
}, { | ||
"title": "Ref", | ||
"short": false, | ||
"value": "${{ github.ref }}" | ||
}, { | ||
"title": "Commit", | ||
"short": false, | ||
"value": "<${{ github.payload.repository.html_url }}/commit/${{ github.sha }}|${{ github.sha }}>" | ||
}, { | ||
"title": "Author", | ||
"short": false, | ||
"value": "<https://github.com/${{ github.actor }}|${{ github.actor }}>" | ||
}, { | ||
"title": "Workflow", | ||
"short": false, | ||
"value": "<${{ github.payload.repository.html_url }}/actions/runs/${{ github.runId }}|${{ github.workflow }}>" | ||
}] | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters