-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
executable file
·93 lines (84 loc) · 4.03 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Assign Issue Action
author: takanome-dev
description: >
Enable commands that streamline issue assignments:
- /assign-me for contributors to self-assign.
- /unassign-me for self-unassignment.
- /assign @user for maintainers to assign specific users.
- /unassign @user for maintainers to unassign others easily.
This action simplifies issue management for maintainers and contributors, making collaboration more efficient.
runs:
using: node20
main: dist/index.js
branding:
icon: activity
color: white
inputs:
github_token:
default: ${{ github.token }}
required: true
description: The GitHub token used to authenticate API requests.
self_assign_cmd:
description: The command that assigns the issue to the one who triggered it
default: /assign-me
self_unassign_cmd:
description: The command that unassigns the issue from the user who triggered it, if they are already assigned.
default: /unassign-me
assign_user_cmd:
description: The command that assigns the user to the issue
default: /assign
unassign_user_cmd:
description: The command that unassigns the user from the issue, if they are assigned.
default: /unassign
maintainers:
description: >
A list of maintainers authorized to use `/assign` and `/unassign` commands.
List the usernames with comma separated. If not set, the usage of those commands will be ignored.
default: '' # i.e: 'takanome-dev,octokit'
required: true
enable_auto_suggestion:
description: A boolean input that controls whether the action should automatically check user comments for phrases signaling interest in issue assignment. Set to true by default.
default: true
assigned_label:
description: The label applied to issues when they are assigned by this action to track assignments.
default: 📍 Assigned
required_label:
description: If set, the issue must have this label in order for users to self-assign it.
required: false
default: ''
days_until_unassign:
description: The number of days after assignment before the user is automatically unassigned (if the issue remains open).
default: '7'
pin_label:
default: 📌 Pinned
description: A label that prevents automatic unassignment, typically for long-term issues.
assigned_comment:
description: >
The comment posted after a user has assigned themselves to an issue.
default: |
👋 Hey @{{ handle }}, thanks for your interest in this issue! 🎉
> [!NOTE]
> ⏳ Please note, you will be automatically unassigned if the issue isn't closed within **{{ total_days }} days** (by **{{ unassigned_date }}**).
> A maintainer can also add the "**{{ pin_label }}**"" label to prevent automatic unassignment.
already_assigned_comment:
description: >
The comment posted when a user tries to assign themselves to an issue that is already assigned.
default: |
👋 Hey @{{ handle }}, this issue is already assigned to @{{ assignee }}.
> [!NOTE]
> ⏳ If the issue isn't closed within **{{ total_days }} days**, it will be automatically unassigned.
> A maintainer can also add you to the list of assignees or swap you with the current assignee.
unassigned_comment:
description: >
The comment posted after a user is unassigned from an issue.
default: |
👋 Hey @{{ handle }}, you've been automatically unassigned from this issue due to inactivity.
> [!NOTE]
> If you'd like to be re-assigned, just leave another comment or ask a maintainer to assign you again.
> If you're still actively working on the issue, let us know by commenting, and we can pin it to prevent automatic unassignment.
assignment_suggestion_comment:
description: >
The comment posted when someone shows interest in being assigned to an issue without using the assignment commands.
default: |
👋 Hey @{{ handle }}, it looks like you're interested in working on this issue! 🎉
If you'd like to take on this issue, please use the command `/assign-me` to assign yourself.