diff --git a/dist/actionItems.js b/dist/actionItems.js index fef6d80..54e22da 100644 --- a/dist/actionItems.js +++ b/dist/actionItems.js @@ -35,19 +35,19 @@ async function GetActionItems() { // Set constants const actionItemsRegEx = new RegExp(`(?<=Action Items\n------------\n)((.|\n)*)(?=Action Items,)`); const meetingListRegEx = new RegExp(`(?<=>fedora_coreos_meeting.)(.*?)=?txt`, `g`); - const meetingNotesURL = `https://meetbot-raw.fedoraproject.org/teams/fedora_coreos_meeting/`; - let lastMeetingNotesUrl = `https://meetbot-raw.fedoraproject.org/teams/fedora_coreos_meeting/fedora_coreos_meeting.`; + const meetingNotesURL = core.getInput('rootURLMeetingLogs'); + let lastMeetingNotesUrl = `fedora_coreos_meeting.`; const listOfMeetings = await fetchData(meetingNotesURL); let matches = listOfMeetings.match(meetingListRegEx); if (matches != null) { const lastMeeting = matches[matches.length - 1]; // This should be the latest meeting`s date in with the format of YYYY-MM-DD-HH.MM.txt - lastMeetingNotesUrl = lastMeetingNotesUrl + lastMeeting; - console.debug("last meeting notes url" + lastMeetingNotesUrl); + lastMeetingNotesUrl = meetingNotesURL + lastMeetingNotesUrl + lastMeeting; + console.debug('last meeting notes url' + lastMeetingNotesUrl); const lastMeetingNotes = await fetchData(lastMeetingNotesUrl); const actionItemMatches = actionItemsRegEx.exec(lastMeetingNotes); if (actionItemMatches) { - console.debug("action item matches" + actionItemMatches[0]); + console.debug('action item matches' + actionItemMatches[0]); // if the match is just new lines, then there were no action items if (actionItemMatches[0].match(/^\s*$/)) { return `#topic there are no action items from the last meeting.`; diff --git a/dist/actionItems.js.map b/dist/actionItems.js.map index beb9fcb..4aee93e 100644 --- a/dist/actionItems.js.map +++ b/dist/actionItems.js.map @@ -1 +1 @@ -{"version":3,"file":"actionItems.js","sourceRoot":"","sources":["../src/actionItems.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AACrC,kDAAyB;AAClB,KAAK,UAAU,cAAc;IAClC,IAAI;QAC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D;IAED,OAAO,4DAA4D,CAAA;AACrE,CAAC;AA1CD,wCA0CC;AAED,KAAK,UAAU,SAAS,CAAC,GAAW;IAClC,MAAM,OAAO,GAAG;QACd,MAAM,EAAE,KAAK;QACb,GAAG;KACJ,CAAA;IACD,OAAO,MAAM,CACX,MAAM,IAAA,eAAK,EAAC,OAAO,CAAC,CACrB,CAAC,IAAI,CAAA;AACR,CAAC"} \ No newline at end of file +{"version":3,"file":"actionItems.js","sourceRoot":"","sources":["../src/actionItems.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AACrC,kDAAyB;AAClB,KAAK,UAAU,cAAc;IAClC,IAAI;QACF,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAA;QACrC,gBAAgB;QAChB,MAAM,gBAAgB,GAAG,IAAI,MAAM,CACjC,6DAA6D,CAC9D,CAAA;QACD,MAAM,gBAAgB,GAAG,IAAI,MAAM,CACjC,wCAAwC,EACxC,GAAG,CACJ,CAAA;QACD,MAAM,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAA;QAC3D,IAAI,mBAAmB,GAAG,wBAAwB,CAAA;QAClD,MAAM,cAAc,GAAG,MAAM,SAAS,CAAC,eAAe,CAAC,CAAA;QACvD,IAAI,OAAO,GAAG,cAAc,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAA;QAEpD,IAAI,OAAO,IAAI,IAAI,EAAE;YACnB,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;YAC/C,sFAAsF;YACtF,mBAAmB,GAAG,eAAe,GAAG,mBAAmB,GAAG,WAAW,CAAA;YACzE,OAAO,CAAC,KAAK,CAAC,wBAAwB,GAAG,mBAAmB,CAAC,CAAA;YAC7D,MAAM,gBAAgB,GAAG,MAAM,SAAS,CAAC,mBAAmB,CAAC,CAAA;YAC7D,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;YAEjE,IAAI,iBAAiB,EAAE;gBACrB,OAAO,CAAC,KAAK,CAAC,qBAAqB,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;gBAC3D,kEAAkE;gBAClE,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;oBACvC,OAAO,yDAAyD,CAAA;iBACjE;gBACD,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAA;aAC5B;SACF;KACF;IAAC,OAAO,KAAK,EAAE;QACd,2CAA2C;QAC3C,IAAI,KAAK,YAAY,KAAK;YAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;KAC1D;IAED,OAAO,4DAA4D,CAAA;AACrE,CAAC;AAvCD,wCAuCC;AAED,KAAK,UAAU,SAAS,CAAC,GAAW;IAClC,MAAM,OAAO,GAAG;QACd,MAAM,EAAE,KAAK;QACb,GAAG;KACJ,CAAA;IACD,OAAO,MAAM,CACX,MAAM,IAAA,eAAK,EAAC,OAAO,CAAC,CACrB,CAAC,IAAI,CAAA;AACR,CAAC"} \ No newline at end of file diff --git a/dist/createIssue.js b/dist/createIssue.js index 9131088..33bb3c7 100644 --- a/dist/createIssue.js +++ b/dist/createIssue.js @@ -26,11 +26,14 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.createThisReposIssue = void 0; const core = __importStar(require("@actions/core")); const octokit_1 = require("octokit"); -async function createThisReposIssue(title, body) { +async function createThisReposIssue(body) { try { const octokit = new octokit_1.Octokit({ auth: process.env.GITHUB_TOKEN }); + // calculate todays date in YYYY-MM-DD format + const today = new Date().toISOString().split('T')[0]; + var title = core.getInput('issueTitle') + ' ' + today; const githubRepository = process.env.GITHUB_REPOSITORY; if (!githubRepository) { throw new Error(`GITHUB_REPOSITORY environment variable is not set`); diff --git a/dist/createIssue.js.map b/dist/createIssue.js.map index b34c454..46266f2 100644 --- a/dist/createIssue.js.map +++ b/dist/createIssue.js.map @@ -1 +1 @@ -{"version":3,"file":"createIssue.js","sourceRoot":"","sources":["../src/createIssue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AACrC,qCAAiC;AAE1B,KAAK,UAAU,oBAAoB,CACxC,KAAa,EACb,IAAY;IAEZ,IAAI;QACF,MAAM,OAAO,GAAG,IAAI,iBAAO,CAAC;YAC1B,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;SAC/B,CAAC,CAAA;QACF,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAA;QACtD,IAAI,CAAC,gBAAgB,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;SACrE;QACD,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAEjD,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;YAC/B,KAAK;YACL,IAAI;YACJ,KAAK;YACL,IAAI;SACL,CAAC,CAAA;KACH;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QAClB,2CAA2C;QAC3C,IAAI,KAAK,YAAY,KAAK;YAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;KAC1D;AACH,CAAC;AAzBD,oDAyBC"} \ No newline at end of file +{"version":3,"file":"createIssue.js","sourceRoot":"","sources":["../src/createIssue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AACrC,qCAAiC;AAE1B,KAAK,UAAU,oBAAoB,CACxC,IAAY;IAEZ,IAAI;QACF,MAAM,OAAO,GAAG,IAAI,iBAAO,CAAC;YAC1B,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;SAC/B,CAAC,CAAA;QACF,6CAA6C;QAC7C,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;QACpD,IAAI,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,GAAG,GAAG,KAAK,CAAA;QACrD,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAA;QACtD,IAAI,CAAC,gBAAgB,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;SACrE;QACD,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAEjD,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;YAC/B,KAAK;YACL,IAAI;YACJ,KAAK;YACL,IAAI;SACL,CAAC,CAAA;KACH;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QAClB,2CAA2C;QAC3C,IAAI,KAAK,YAAY,KAAK;YAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;KAC1D;AACH,CAAC;AA3BD,oDA2BC"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 621f9ea..9a73ec5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -22901,12 +22901,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createThisReposIssue = void 0; const core = __importStar(__nccwpck_require__(2186)); const octokit_1 = __nccwpck_require__(7467); -async function createThisReposIssue(title, body) { +async function createThisReposIssue(body) { try { const octokit = new octokit_1.Octokit({ auth: process.env.GITHUB_TOKEN }); - const title = core.getInput('issueTitle'); + // calculate todays date in YYYY-MM-DD format + const today = new Date().toISOString().split('T')[0]; + var title = core.getInput('issueTitle') + ' ' + today; const githubRepository = process.env.GITHUB_REPOSITORY; if (!githubRepository) { throw new Error(`GITHUB_REPOSITORY environment variable is not set`); @@ -22983,7 +22985,7 @@ async function run() { console.log(meetingTopics); const issueBody = hydrateIssueTemplate(actionItems, meetingTopics); console.log('Create issue'); - (0, createIssue_1.createThisReposIssue)('Fedora CoreOS Weekly Meeting', issueBody); + (0, createIssue_1.createThisReposIssue)(issueBody); } catch (error) { // Fail the workflow run if an error occurs diff --git a/dist/main.js b/dist/main.js index 3d0e48b..8ddf87c 100644 --- a/dist/main.js +++ b/dist/main.js @@ -46,7 +46,7 @@ async function run() { console.log(meetingTopics); const issueBody = hydrateIssueTemplate(actionItems, meetingTopics); console.log('Create issue'); - (0, createIssue_1.createThisReposIssue)('Fedora CoreOS Weekly Meeting', issueBody); + (0, createIssue_1.createThisReposIssue)(issueBody); } catch (error) { // Fail the workflow run if an error occurs diff --git a/dist/main.js.map b/dist/main.js.map index 3beebc8..6a2e710 100644 --- a/dist/main.js.map +++ b/dist/main.js.map @@ -1 +1 @@ -{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AACrC,+CAA8C;AAC9C,mDAAkD;AAClD,+CAAoD;AACpD,4CAAmB;AAEnB;;;GAGG;AACI,KAAK,UAAU,GAAG;IACvB,IAAI;QACF,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;QAC7B,MAAM,WAAW,GAAG,MAAM,IAAA,4BAAc,GAAE,CAAA;QAC1C,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;QAExB,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;QACjC,MAAM,aAAa,GAAG,MAAM,IAAA,gCAAgB,GAAE,CAAA;QAC9C,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;QAE1B,MAAM,SAAS,GAAG,oBAAoB,CAAC,WAAW,EAAE,aAAa,CAAC,CAAA;QAClE,OAAO,CAAC,GAAG,CAAC,cAAc,CA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AAC,OAAO,KAAK,EAAE;QACd,2CAA2C;QAC3C,IAAI,KAAK,YAAY,KAAK;YAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;KAC1D;AACH,CAAC;AAjBD,kBAiBC;AAED,qFAAqF;AACrF,SAAS,oBAAoB,CAC3B,WAAmB,EACnB,aAAqB;IAErB,wBAAwB;IACxB,MAAM,aAAa,GAAG,YAAE,CAAC,YAAY,CAAC,8BAA8B,EAAE,MAAM,CAAC,CAAA;IAC7E,OAAO,aAAa;SACjB,OAAO,CAAC,kBAAkB,EAAE,WAAW,CAAC;SACxC,OAAO,CAAC,oBAAoB,EAAE,aAAa,CAAC,CAAA;AACjD,CAAC"} \ No newline at end of file diff --git a/dist/meetingTopics.js b/dist/meetingTopics.js index 92c4856..9a8dd71 100644 --- a/dist/meetingTopics.js +++ b/dist/meetingTopics.js @@ -31,9 +31,10 @@ async function GetMeetingTopics() { const octokit = new rest_1.Octokit({ auth: process.env.GITHUB_TOKEN }); + const [owner, repo] = core.getInput('trackingRepo').split(`/`); const issues = await octokit.issues.listForRepo({ - owner: `coreos`, - repo: `fedora-coreos-tracker`, + owner, + repo, labels: `meeting`, state: `open` }); diff --git a/dist/meetingTopics.js.map b/dist/meetingTopics.js.map index 9bed119..58ac84b 100644 --- a/dist/meetingTopics.js.map +++ b/dist/meetingTopics.js.map @@ -1 +1 @@ -{"version":3,"file":"meetingTopics.js","sourceRoot":"","sources":["../src/meetingTopics.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AACrC,wCAAuC;AAChC,KAAK,UAAU,gBAAgB;IACpC,IAAI;QACF,MAAM,OAAO,GAAG,IAAI,cAAO,CAAC;YAC1B,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;SAC/B,CAAC,CAAA;QAEF,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC;YAC9C,KAAK,EAAE,QAA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AK;YACL,IAAI;YACJ,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE,MAAM;SACd,CAAC,CAAA;QACF,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,OAAO,iCAAiC,CAAA;SACzC;QAED,IAAI,mBAAmB,GAAG,EAAE,CAAA;QAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC3C,mBAAmB,IAAI,sBAAsB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAA;YACzE,mBAAmB,IAAI,qBAAqB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAA;SAC5E;QACD,OAAO,mBAAmB,CAAA;KAC3B;IAAC,OAAO,KAAK,EAAE;QACd,2CAA2C;QAC3C,IAAI,KAAK,YAAY,KAAK;YAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;KAC1D;IACD,OAAO,8DAA8D,CAAA;AACvE,CAAC;AA5BD,4CA4BC"} \ No newline at end of file diff --git a/src/createIssue.ts b/src/createIssue.ts index a5e5184..37f4891 100644 --- a/src/createIssue.ts +++ b/src/createIssue.ts @@ -1,15 +1,14 @@ import * as core from '@actions/core' import { Octokit } from 'octokit' -export async function createThisReposIssue( - title: string, - body: string -): Promise { +export async function createThisReposIssue(body: string): Promise { try { const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN }) - const title = core.getInput('issueTitle') + // calculate todays date in YYYY-MM-DD format + const today = new Date().toISOString().split('T')[0] + var title = core.getInput('issueTitle') + ' ' + today const githubRepository = process.env.GITHUB_REPOSITORY if (!githubRepository) { throw new Error(`GITHUB_REPOSITORY environment variable is not set`) diff --git a/src/main.ts b/src/main.ts index d62ec03..9ddeef7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,7 +20,7 @@ export async function run(): Promise { const issueBody = hydrateIssueTemplate(actionItems, meetingTopics) console.log('Create issue') - createThisReposIssue('Fedora CoreOS Weekly Meeting', issueBody) + createThisReposIssue(issueBody) } catch (error) { // Fail the workflow run if an error occurs if (error instanceof Error) core.setFailed(error.message)