Skip to content

Commit

Permalink
Update create-new-issue.js
Browse files Browse the repository at this point in the history
  • Loading branch information
t-will-gillis authored Oct 29, 2023
1 parent 73cd3a0 commit 3e5eef4
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,7 @@ const createIssue = async (owner, repo, inactiveLists) => {
per_page: 1,
page: 1,
});
console.log('0000 Hey this is working');
console.log(thisIssuePredict.data);
console.log('1111 Hey this is working');
console.log(thisIssuePredict['data']['number']);
console.log('2222 Hey this is working');
console.log(thisIssuePredict['data'][0]['number']);
console.log('3333 Hey this is working');
// console.log(thisIssuePredict.data.issue_number);
let thisIssueNumber = thisIssuePredict['data'][0]['number'] + 1

let title = "Review Inactive Team Members";
let body = "# DRAFT\n"
Expand All @@ -66,7 +59,7 @@ const createIssue = async (owner, repo, inactiveLists) => {
+ "If you have been inactive in the last 30 days (using the above measurements), you can become active again by doing at least one of the above actions.\n\n"
+ "If you were active during the last 30 days (using the above measurements) and the bot made a mistake, let us know by responding in a comment (reopening this issue) with this message:\n"
+ "```\n"
+ "I am responding to Issue #_{thisIssue}_.\n"
+ "I am responding to Issue #" + thisIssueNumber + ".\n"
+ "The Hack for LA website bot made a mistake, I have been active!\n"
+ "See my Issue # or my review in PR # \n"
+ "```\n"
Expand All @@ -81,7 +74,7 @@ const createIssue = async (owner, repo, inactiveLists) => {
+ removedList + "\n\n"
+ "If this is a mistake or if you would like to return to the Hack for LA Website team, please respond in a comment with this message:\n"
+ "```\n"
+ "I am responding to Issue #_{thisIssue}_.\n"
+ "I am responding to Issue #" + thisIssueNumber + ".\n"
+ "I want to come back to the team!\n"
+ "Please add me back to the 'website-write' team, I am ready to work on an issue now.\n"
+ "```\n"
Expand Down

0 comments on commit 3e5eef4

Please sign in to comment.