Skip to content

Commit a6c7c25

Browse files
committed
Factor out contact info from the warning message
1 parent 9093b2b commit a6c7c25

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ inputs:
2121
description: 'Message posted on issue as unassign warning'
2222
required: false
2323
default: "Thanks for picking up this issue and supporting this project! It looks like there hasn’t been any activity on this ticket in a while. To keep things moving, you will be unassigned from this issue soon if there’s no new activity on it by then. But we encourage you to pick this issue (or a new one) back up in the future!"
24-
office_hours:
25-
description: 'Slack office hours included in warning or unassign message'
26-
required: false
27-
default: ''
24+
contact_message:
25+
description: 'Contact info sent along with the warning'
26+
required: true
2827
runs:
2928
using: 'node12'
3029
main: 'index.js'

index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const unassignInactiveInHours = core.getInput('unassign_inactive_in_hours');
55
const unassignInactiveMessage = core.getInput('unassign_inactive_message');
66
const warningInactiveInHours = core.getInput('warning_inactive_in_hours');
77
const warningInactiveMessage = core.getInput('warning_inactive_message');
8-
const officeHours = core.getInput('office_hours');
8+
const contactMessage = core.getInput('contact_message');
99
const repoOwner = github.context.repo.owner;
1010
const repo = github.context.repo.repo;
1111
const octokit = github.getOctokit(token);
@@ -177,9 +177,7 @@ async function main() {
177177
`hours (${(timeInactiveInHours/24).toFixed(2)} days) ` +
178178
`and will be unassigned after ${willBeUnassignedInHours} ` +
179179
`more hours (${(willBeUnassignedInHours/24).toFixed(2)} days). ` +
180-
`If you have questions, please visit the #casa channel in slack during ` +
181-
`${officeHours}`+ `. ` +
182-
`Link: https://rubyforgood.herokuapp.com/ \n\n` +
180+
`If you have questions, please ${contactMessage} \n\n` +
183181
`${warningInactiveMessage}`;
184182
try {
185183
await octokit.issues.createComment({

0 commit comments

Comments
 (0)