-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
57 lines (52 loc) · 2.05 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Discuss on Discord
description: A GitHub action that creates a thread on Discord for every issue
inputs:
discord_bot_token:
description: The token to use to communicate with the Discord API
required: true
destination:
description: >
The link to the message or channel to post messages and create threads in.
If a channel link is used, the thread will be created on a new message in
that channel. Otherwise, the thread will be created on the linked message.
required: true
discord_message:
description: The body of the message to send in the Discord channel (if any)
default: >-
New issue in `${{ github.repository }}`:
<https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }}>
existing_discord_thread:
description: The link to the existing Discord thread to use
default: ''
issue_comment:
description: >
The body of the comment to post on the issue; set it to an empty string to disable issue comments.
Any match of `$THREAD_LINK$` will be replaced with the link to the Discord thread.
default: Hey 👋, I've just created a thread on Discord for this issue, you can find it [here]($THREAD_LINK$)
issue_comment_tag:
description: Whether to include a link to the action at the end of the GitHub comment
default: 'true'
issue_number:
description: The issue number to create a thread for
default: ${{ github.event.issue.number }}
issue_repo:
description: The repository that the issue is in
default: ${{ github.repository }}
github_token:
description: The token to use to communicate with the GitHub API
default: ${{ github.token }}
outputs:
comment_id:
description: The ID of the comment that was posted on the issue
comment_link:
description: The link to the comment that was posted on the issue
thread_id:
description: The ID of the thread that was created
thread_link:
description: The link to the thread that was created
runs:
using: node20
main: build/index.js
branding:
icon: rss
color: blue