Skip to content

Commit 25ecff5

Browse files
authored
Add office hours to warning message
1 parent 6745626 commit 25ecff5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +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('offce_hours');
89
const repoOwner = github.context.repo.owner;
910
const repo = github.context.repo.repo;
1011
const octokit = github.getOctokit(token);
@@ -176,9 +177,9 @@ async function main() {
176177
`hours (${(timeInactiveInHours/24).toFixed(2)} days) ` +
177178
`and will be automatically unassigned after ${willBeUnassignedInHours} ` +
178179
`more hours (${(willBeUnassignedInHours/24).toFixed(2)} days). ` +
179-
`If you need help or have questions, please visit slack during ` +
180-
`office hours (Tuesdays 6-8 PM PST) in the #casa channel. ` +
181-
`Link to slack: https://rubyforgood.herokuapp.com/ \n\n` +
180+
`If you have questions, please visit the #casa channel in slack during ` +
181+
`${officeHours}`+ `. ` +
182+
`Link: https://rubyforgood.herokuapp.com/ \n\n` +
182183
`${warningInactiveMessage}`;
183184
try {
184185
await octokit.issues.createComment({

0 commit comments

Comments
 (0)