-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
42 lines (42 loc) · 1.66 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 'Slack Release Notification'
description: 'A GitHub Action to send Slack notifications for release pull requests'
inputs:
slack-bot-token:
description: 'Slack bot token'
required: true
slack-channel-id:
description: 'Slack channel ID'
required: true
github-token:
description: 'GitHub token'
required: true
github-to-slack-map:
description: 'Mapping of GitHub usernames to Slack user IDs in JSON format. Example: {"githubUsername1": "slackUserID1", "githubUsername2": "slackUserID2"}'
required: false
initial-message-template:
description: 'Template for the initial message when a PR is created'
required: false
default: 'New release pull request created: <${prUrl}|${prTitle}>\n*From*: ${branchName} → *To*: ${targetBranch}'
commit-list-message-template:
description: 'Template for the message with the list of commits when a PR is created'
required: false
default: 'Commits in this pull request:\n${commitListMessage}\n\n<${changelogUrl}|Full Changelog: ${branchName} to ${targetBranch}>'
update-message-template:
description: 'Template for the message when a PR is updated with new commits'
required: false
default: 'New commit added: <${commitUrl}|${commitMessage}> by @${githubUser}'
close-message-template:
description: 'Template for the message when a PR is merged'
required: false
default: 'Pull request <${prUrl}|${prTitle}> was merged by @${mergedBy}'
sort-commits:
description: 'Sort commits by types and scopes'
required: false
default: 'false'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'bell'
color: 'blue'
label: 'Slack Release Notifications'