-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
58 lines (54 loc) · 1.68 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
58
name: Repo Activity Monitor
description: Monitor new issues and pull requests in your GitHub repositories and receive timely notifications on Slack or Discord.
author: Shubham Gupta <shubhaamgupta11@gmail.com>
branding:
icon: bell
color: green
inputs:
task:
description: Task to run (monitor-issues or monitor-prs).
required: true
git_secret:
description: GitHub token for authentication.
required: true
repo_owner:
description: Owner of the repository.
required: true
repo_name:
description: Name of the repository.
required: true
fetch_data_interval:
description: How far back to fetch data (e.g., 1 hour, 24 hours).
required: true
notifier:
description: Notification method (slack or discord).
required: true
# Slack-specific inputs
slack_bot_token:
description: Slack bot token to send notifications.
required: false
slack_channel:
description: The Slack channel to send notifications to.
required: false
slack_id_type:
description: Type of Slack ID (user or group).
required: false
slack_ids:
description: Slack IDs of the recipients (user or group) must be comma separated and all must be of same type.
required: false
# Discord-specific inputs
discord_webhook_url:
description: Discord webhook URL to send notifications.
required: false
discord_id_type:
description: Type of Discord ID (user or role).
required: false
discord_ids:
description: Discord IDs of the recipients (user or role) must be comma separated and all must be of same type.
required: false
runs:
using: node20
main: dist/index.js
outputs:
result:
description: Result of the action execution.