Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update issue number of Mon. Dev/PM meeting agenda #7871

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ const postComment = require('../../utils/post-issue-comment');
var github;
var context;

const AGENDA_ISSUE_NUM = 7859; // Issue number of the Dev/PM meeting agenda on Mondays

/**
* @description - Function to create a new issue that lists inactive and removed members and posts
* a notification to the Dev/PM meeting agenda about inactive members with open issues
* @param {Object} g - GitHub object
* @param {Object} c - Context object
*/
async function main({ g, c }) {
github = g;
context = c;
Expand All @@ -19,15 +27,14 @@ async function main({ g, c }) {

const owner = context.repo.owner;
const repo = context.repo.repo;
const agendaIssueNum = 2607; // Issue number of the Dev/PM meeting agenda on Mondays

// Create a new issue in repo, return the issue id for later: creating the project card linked to this issue
const issue = await createIssue(owner, repo, inactiveLists);
const issueNumber = issue.number;

// Add issue number used to reference the issue and comment on the `Dev/PM Agenda and Notes`
const commentBody = `**Review Inactive Team Members:** #` + issueNumber + inactiveWithOpen;
await postComment(agendaIssueNum, commentBody, github, context);
await postComment(AGENDA_ISSUE_NUM, commentBody, github, context);
}

const createIssue = async (owner, repo, inactiveLists) => {
Expand Down