Skip to content

Commit

Permalink
Update create-new-issue.js
Browse files Browse the repository at this point in the history
update to template per Bonnie's comments hackforla#4788 (comment)
  • Loading branch information
t-will-gillis authored Oct 22, 2023
1 parent d4a96ac commit ffea6d9
Showing 1 changed file with 28 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,43 @@ const createIssue = async (owner, repo, inactiveLists) => {
let removeList = inactiveLists['removedContributors'];
let notifyList = inactiveLists['notifiedContributors'];

let removedList = removeList.map(x => "@" + x).join("\n");
let notifiedList = notifyList.map(x => "@" + x).join("\n");
let removedList = removeList.map(x => "@ " + x).join("\n");
let notifiedList = notifyList.map(x => "@ " + x).join("\n");

let title = "Review Inactive Team Members";
let body = "# Review of Inactive Website Team Members\n"
let body = "# DRAFT\n"
+ "# Review of Inactive Website Team Members\n"
+ "## Inactive Members\n"
+ "Developers: If your name is on the following list, our team bot has determined that you have not been active with the Website team in the last 30 days. If we don't hear back from you in the upcoming weeks, we will unassign you from any issues you may be working on and remove you from the 'website-write' team.\n\n"
+ notifiedList + "\n\n"
+ "## Removed Members\n"
+ "Our team bot has determined that the following member(s) have not been active with the Website team for over 60 days, and therefore the member(s) have been removed from the 'website-write' team.\n\n"
+ removedList + "\n\n\n\n"
+ "### If this is a mistake or if you would like to return to the Hack for LA 'website-write' team, please respond in a comment with one of the two following messages:\n"
+ "#### Our bot made a mistake, let us know!\n"
+ "### Did we make a mistake?\n"
+ "The bot is checking for the following activity:\n"
+ "- If you are assigned to an issue, that you have provided an update on the issue in the past 30 days. The updates are due weekly.\n"
+ "- If your issue is a `Draft` in the "New Issue Approval" column, that you have added to it within the last 30 days.\n"
+ "- If you are reviewing PRs, that you have done some kind of activity in the past 30 days.\n"
+ "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 have been active! See Issue # or PR # \n"
+ "I am responding to Issue #{this issue}.\n"
+ "The Hack for LA website bot made a mistake, I have been active!\n"
+ "See my Issue # or PR # review
+ "```\n"
+ "#### I want to come back to the team!\n"
+ "After you leave the comment, please send us a Slack message on the \"hfla-site\" channel with a link to your comment.\n\n"
+ "### Temporary leave\n"
+ "If you have taken a temporary leave, and you have been authorized to keep your assignment to an issue: \n"
+ "- Your issue should be in the \"Questions/ In Review\" column, with the `Ready for dev lead` label and a note letting us know when you will be back.\n"
+ "- We generally try to encourage you to unassign yourself from the issue and allow us to return it to the prioritized backlog. However, exceptions are sometimes made."

+ "## Removed Members\n"
+ "Our team bot has determined that the following member(s) have not been active with the Website team for over 60 days, and therefore the member(s) have been removed from the 'website-write' team.\n\n"
+ 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"
+ "Please add me back to the write team, I am ready to work on an issue now.\n"
+ "I am responding to Issue #{this issue}.\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"
+ "### If it has been less than 20 days:\n"
+ "- Make sure that you are assigned to an issue, and\n"
+ "- That issue is in the column \"In progress (actively working)\", and\n"
+ "- You are providing weekly progress updates.\n"
+ "### If it has been more than 20 days:\n"
+ "- Please send us a Slack message with a link to your comment\n\n"
+ "After you leave the comment, please send us a Slack message on the \"hfla-site\" channel with a link to your comment.\n\n"
let labels = [
"Feature: Administrative",
"Feature: Onboarding/Contributing.md",
Expand Down

0 comments on commit ffea6d9

Please sign in to comment.