Skip to content

Commit fec4682

Browse files
Update bot to not reference CASA/RubyForGood, tweak other variables
1 parent 9093b2b commit fec4682

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ inputs:
88
unassign_inactive_in_hours:
99
description: 'Number of hours to wait before unassigning an issue'
1010
required: false
11-
default: 168 # 7 days
11+
default: 336 # 7 days
1212
unassign_inactive_message:
1313
description: 'Message posted on issue when unassigning'
1414
required: false
15-
default: "You’ve just been unassigned from this ticket due to inactivity – but feel free to pick it back up (or a new one!) in the future! Thank you again for your contribution to this project."
15+
default: "You’ve just been unassigned from this ticket due to inactivity – but feel free to pick it back up (or a new one!) in the future! Thank you for your interest in contributing to this project."
1616
warning_inactive_in_hours:
1717
description: 'Number of hours to wait before posting a warning message in an issue'
1818
required: false
@@ -21,10 +21,10 @@ 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+
# office_hours:
25+
# description: 'Slack office hours included in warning or unassign message'
26+
# required: false
27+
# default: ''
2828
runs:
2929
using: 'node12'
3030
main: 'index.js'

index.js

Lines changed: 5 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 officeHours = core.getInput('office_hours');
99
const repoOwner = github.context.repo.owner;
1010
const repo = github.context.repo.repo;
1111
const octokit = github.getOctokit(token);
@@ -177,9 +177,10 @@ 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 leave a comment, message ` +
181+
`[@codethesaurus](https://twitter.com/codethesaurus) ` +
182+
`or [@geekygirlsarah](https://twitter.com/geekygirlsarah) ` +
183+
`on Twitter, or email [[email protected]]([email protected]).` +
183184
`${warningInactiveMessage}`;
184185
try {
185186
await octokit.issues.createComment({

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"name": "unassign-issues",
33
"version": "1.0.0",
4-
"description": "",
4+
"description": "A bot to warn then unassign users when an assigned issue hasn't been worked on",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
99
"repository": {
1010
"type": "git",
11-
"url": "git+https://github.com/bjthompson805/unassign-issues.git"
11+
"url": "git+https://github.com/codethesaurus/unassign-issues.git"
1212
},
1313
"author": "",
1414
"license": "ISC",
1515
"bugs": {
16-
"url": "https://github.com/bjthompson805/unassign-issues/issues"
16+
"url": "https://github.com/codethesaurus/unassign-issues/issues"
1717
},
18-
"homepage": "https://github.com/bjthompson805/unassign-issues#readme",
18+
"homepage": "https://github.com/codethesaurus/unassign-issues#readme",
1919
"dependencies": {
2020
"@actions/core": "^1.2.6",
2121
"@actions/github": "^4.0.0"

0 commit comments

Comments
 (0)