Skip to content

Commit 585f115

Browse files
authored
add waiting for requester label if attachment comment is provided (#2999)
1 parent 50f282d commit 585f115

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/scripts/bug_firstResponse.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
module.exports = async function ({github, context}) {
42
const issue = await github.rest.issues.get({
53
issue_number: context.issue.number,
@@ -16,7 +14,7 @@ module.exports = async function ({github, context}) {
1614
", thanks for taking the time to create this issue. \
1715
If possible (and applicable), please upload to the issue website ("
1816
+ issue.data.html_url +
19-
") a screenshot showcasing the problem, and/or \
17+
", attaching to an email does not work) a screenshot showcasing the problem, and/or \
2018
a compressed (zipped) .jasp file or the data file \
2119
that causes the issue. If you would prefer not to make your \
2220
data publicly available, you can send your file(s) directly to us,\
@@ -28,5 +26,12 @@ module.exports = async function ({github, context}) {
2826
repo: context.repo.repo,
2927
body: comment
3028
});
29+
30+
github.rest.issues.addLabels({
31+
issue_number: context.issue.number,
32+
owner: context.repo.owner,
33+
repo: context.repo.repo,
34+
labels: ["Waiting for requester"]
35+
});
3136
};
3237
}

0 commit comments

Comments
 (0)