From 85cb2f771a570e9d17e11f8aa6e999a8d99e36ab Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 13:47:37 +0530 Subject: [PATCH 01/35] workflow is triggered on issues event --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 440f962..a87c74b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,7 @@ name: GitHub CI on: + issues: push: schedule: # * is a special character in YAML so you have to quote this string From 7a019df02be24b584b4037656bf78bb9cdb8dde9 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 14:41:03 +0530 Subject: [PATCH 02/35] issue summary info --- dist/summaryAction/index.js | 36 ++++++++++++++++++++++---------- src/Action/summaryAction.ts | 41 ++++++++++++++++++++++++++----------- 2 files changed, 54 insertions(+), 23 deletions(-) diff --git a/dist/summaryAction/index.js b/dist/summaryAction/index.js index 89f3656..6c01e16 100644 --- a/dist/summaryAction/index.js +++ b/dist/summaryAction/index.js @@ -2844,34 +2844,48 @@ async function run() { const token = core.getInput('githubToken'); const octokit = github.getOctokit(token); const { repo, owner } = github.context.repo; + const allIssueResponse = await octokit.issues.listForRepo({ + repo, + owner, + state: 'all', + }); const openIssueResponse = await octokit.issues.listForRepo({ repo, owner, state: 'open', }); - const openUnassignedIssueResponse = await octokit.issues.listForRepo({ + const closedIssueResponse = await octokit.issues.listForRepo({ repo, owner, - state: 'open', - assignee: 'none', + state: 'closed', }); + const allIssues = allIssueResponse.data; + const allIssuesResp = allIssueResponse; const openIssues = openIssueResponse.data; const openIssuesResp = openIssueResponse; - let openIssuesLink = openIssuesResp.url; - const openUnassignedIssues = openUnassignedIssueResponse.data; - let openIssuesUnassignedLink = ''; + const closedIssues = closedIssueResponse.data; + const closedIssuesResp = closedIssueResponse; + let allIssuesLink = allIssuesResp.url; + let openIssuesLink = allIssuesResp.url; + let closedIssuesLink = allIssuesResp.url; + core.setOutput('allIssues', `${allIssues.length}`); core.setOutput('openIssues', `${openIssues.length}`); - core.setOutput('openIssuesUnassigned', `${openUnassignedIssues.length}`); + core.setOutput('closedIssues', `${closedIssues.length}`); + allIssuesLink = allIssuesLink.replace('api.github.com/repos/', 'github.com/'); openIssuesLink = openIssuesLink.replace('api.github.com/repos/', 'github.com/'); - openIssuesUnassignedLink = openIssuesLink.replace('state=open', 'q=is%3Aopen+no%3Aassignee'); + closedIssuesLink = closedIssuesLink.replace('api.github.com/repos/', 'github.com/'); + core.setOutput('allIssuesLink', allIssuesLink); core.setOutput('openIssuesLink', openIssuesLink); - core.setOutput('openIssuesUnassignedLink', openIssuesUnassignedLink); + core.setOutput('closedIssuesLink', closedIssuesLink); core.setOutput('openIssueSummary', { + allIssues: allIssues.length, openIssues: openIssues.length, - openIssuesUnassigned: openUnassignedIssues.length, + closedIssues: closedIssues.length, + allIssuesLink, openIssuesLink, - openIssuesUnassignedLink, + closedIssuesLink, }); + console.log(openIssueResponse); } catch (error) { core.setFailed(error.message); diff --git a/src/Action/summaryAction.ts b/src/Action/summaryAction.ts index 51a8a2e..765f416 100644 --- a/src/Action/summaryAction.ts +++ b/src/Action/summaryAction.ts @@ -6,40 +6,57 @@ async function run(): Promise { const token: string = core.getInput('githubToken'); const octokit = github.getOctokit(token); const { repo, owner } = github.context.repo; + const allIssueResponse = await octokit.issues.listForRepo({ + repo, + owner, + state: 'all', + }); const openIssueResponse = await octokit.issues.listForRepo({ repo, owner, state: 'open', }); - const openUnassignedIssueResponse = await octokit.issues.listForRepo({ + const closedIssueResponse = await octokit.issues.listForRepo({ repo, owner, - state: 'open', - assignee: 'none', + state: 'closed', }); + const allIssues = allIssueResponse.data; + const allIssuesResp: any = allIssueResponse; const openIssues = openIssueResponse.data; const openIssuesResp: any = openIssueResponse; - let openIssuesLink: string = openIssuesResp.url; - const openUnassignedIssues = openUnassignedIssueResponse.data; - let openIssuesUnassignedLink = ''; + const closedIssues = closedIssueResponse.data; + const closedIssuesResp: any = closedIssueResponse; + let allIssuesLink: string = allIssuesResp.url; + let openIssuesLink: string = allIssuesResp.url; + let closedIssuesLink: string = allIssuesResp.url; + core.setOutput('allIssues', `${allIssues.length}`); core.setOutput('openIssues', `${openIssues.length}`); - core.setOutput('openIssuesUnassigned', `${openUnassignedIssues.length}`); + core.setOutput('closedIssues', `${closedIssues.length}`); + allIssuesLink = allIssuesLink.replace('api.github.com/repos/', 'github.com/'); openIssuesLink = openIssuesLink.replace('api.github.com/repos/', 'github.com/'); - openIssuesUnassignedLink = openIssuesLink.replace('state=open', 'q=is%3Aopen+no%3Aassignee'); + closedIssuesLink = closedIssuesLink.replace('api.github.com/repos/', 'github.com/'); + core.setOutput( + 'allIssuesLink', + allIssuesLink, + ); core.setOutput( 'openIssuesLink', openIssuesLink, ); core.setOutput( - 'openIssuesUnassignedLink', - openIssuesUnassignedLink, + 'closedIssuesLink', + closedIssuesLink, ); core.setOutput('openIssueSummary', { + allIssues: allIssues.length, openIssues: openIssues.length, - openIssuesUnassigned: openUnassignedIssues.length, + closedIssues: closedIssues.length, + allIssuesLink, openIssuesLink, - openIssuesUnassignedLink, + closedIssuesLink, }); + console.log(openIssueResponse) } catch (error) { core.setFailed(error.message); } From d178803801d12ef6b636eb7ed44b466fd3f3d478 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 14:55:43 +0530 Subject: [PATCH 03/35] workflow changes to render issue report card --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a87c74b..ec121a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,10 +20,10 @@ jobs: uses: ./ with: repoName : ProtocolRedefined/Ecosystem-Template-Repository - branchName : master + branchName : mesav/demoAction data: ${{ steps.issueSummary.outputs.openIssueSummary }} templateType: HandleBars - sourceType: IssueSummary + sourceType: IssueReport ClientType: Teams - name: PrintOutput run: echo "${{ github.event }}" From bea8a91195e2faba2ea6452dc8b08c3d0349deae Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 15:00:04 +0530 Subject: [PATCH 04/35] removed console log --- dist/summaryAction/index.js | 1 - src/Action/summaryAction.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/dist/summaryAction/index.js b/dist/summaryAction/index.js index 6c01e16..61ff05e 100644 --- a/dist/summaryAction/index.js +++ b/dist/summaryAction/index.js @@ -2885,7 +2885,6 @@ async function run() { openIssuesLink, closedIssuesLink, }); - console.log(openIssueResponse); } catch (error) { core.setFailed(error.message); diff --git a/src/Action/summaryAction.ts b/src/Action/summaryAction.ts index 765f416..cc04fc0 100644 --- a/src/Action/summaryAction.ts +++ b/src/Action/summaryAction.ts @@ -56,7 +56,6 @@ async function run(): Promise { openIssuesLink, closedIssuesLink, }); - console.log(openIssueResponse) } catch (error) { core.setFailed(error.message); } From 3e2b5b4cd4a166bb1f1973a1769252d5c1f74ebe Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 16:21:39 +0530 Subject: [PATCH 05/35] removed console log --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ec121a5..09bd629 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,11 +1,10 @@ name: GitHub CI on: - issues: push: schedule: # * is a special character in YAML so you have to quote this string - - cron: '0 10 * * *' + - cron: '53 10 * * *' jobs: test: From 0bcd6ca1fab0d915f8a90d6742bb59abf283a5ac Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 16:29:12 +0530 Subject: [PATCH 06/35] removed console log --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 09bd629..7297c14 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: push: schedule: # * is a special character in YAML so you have to quote this string - - cron: '53 10 * * *' + - cron: '30 16 * * *' jobs: test: From e49ed2ee14b1efdb3a408dab96d34099246e5acb Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 16:31:48 +0530 Subject: [PATCH 07/35] removed console log --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7297c14..d30c39e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: push: schedule: # * is a special character in YAML so you have to quote this string - - cron: '30 16 * * *' + - cron: '*/2 * * * *' jobs: test: From d85b92cfce4c24e17c6c6d38414ecc05fceda7c2 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 17:41:16 +0530 Subject: [PATCH 08/35] removed console log --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d30c39e..91bd5e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: push: schedule: # * is a special character in YAML so you have to quote this string - - cron: '*/2 * * * *' + - cron: '* * * * *' jobs: test: From fd791d697a8d253a65f7a104ffefe7f72f7c2f3f Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 17:48:06 +0530 Subject: [PATCH 09/35] removed console log --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 91bd5e6..e6453c1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + ref: mesav/demoAction - name: IssueSummary id: issueSummary uses: ./.github/actions/summaryAction From dfd1c66811bec423a72b0d41e068739d9a3fe51b Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 17:52:30 +0530 Subject: [PATCH 10/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6453c1..cfbb22c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: push: schedule: - # * is a special character in YAML so you have to quote this string + # * is a special character in YAML so you have to quote this strin - cron: '* * * * *' jobs: From 1963cebfc9f186bf6edb1b8bdfeee066ff122fd5 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 17:55:25 +0530 Subject: [PATCH 11/35] scheduling --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cfbb22c..fcea17d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,8 @@ name: GitHub CI on: - push: schedule: - # * is a special character in YAML so you have to quote this strin + # * is a special character in YAML so you have to quote this string - cron: '* * * * *' jobs: From 15193e95e689ec04779afa6bf113dd76e67f87d3 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 18:01:03 +0530 Subject: [PATCH 12/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fcea17d..8745551 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '* * * * *' + - cron: '32 12 * * *' jobs: test: From 6b2a1637ef376adf3bebd943b3a92c658153db9f Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 18:04:44 +0530 Subject: [PATCH 13/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8745551..f139898 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '32 12 * * *' + - cron: '*5 * * * *' jobs: test: From da7e2b1b422d06d7653c0b2dbdaebbd059e523e0 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 18:05:52 +0530 Subject: [PATCH 14/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f139898..ac766bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '*5 * * * *' + - cron: '*/5 * * * *' jobs: test: From 6240430a0fa22a68ebab9f0221214f2cd40f3aa7 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 18:11:21 +0530 Subject: [PATCH 15/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac766bf..fcea17d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '*/5 * * * *' + - cron: '* * * * *' jobs: test: From bde31e89a12d6fbdc77e2d79881a23da8e303ec7 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 19:10:17 +0530 Subject: [PATCH 16/35] scheduling --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fcea17d..95bce98 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,15 +3,13 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '* * * * *' + - cron: '42 13 * * *' jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - with: - ref: mesav/demoAction - name: IssueSummary id: issueSummary uses: ./.github/actions/summaryAction From 9f2184ce43d9834eb4ee3b3c5287ff2971009632 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 19:16:27 +0530 Subject: [PATCH 17/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 95bce98..caa66c2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '42 13 * * *' + - cron: '18 19 * * *' jobs: test: From b48ef8ab4112fb602d6410a085eb05d6acb26b1f Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 19:18:27 +0530 Subject: [PATCH 18/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index caa66c2..6990326 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '18 19 * * *' + - cron: '50 13 * * *' jobs: test: From ffa70fa95da809549bcdb78fec8c78575caadf1f Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 20:16:46 +0530 Subject: [PATCH 19/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6990326..58671ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '50 13 * * *' + - cron: '50 14 * * *' jobs: test: From 79963eb2152a09400e474f1afdc2273c4e361d27 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 20:20:44 +0530 Subject: [PATCH 20/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 58671ed..2d10ded 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '50 14 * * *' + - cron: '55 14 * * *' jobs: test: From 91be66e2a12e8958cec4215d143c9b355ea4a9f6 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 20:30:03 +0530 Subject: [PATCH 21/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2d10ded..20b502a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '55 14 * * *' + - cron: '05 15 * * *' jobs: test: From d2258f93268054bb3b1a231981f50b072dd5f975 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Thu, 25 Jun 2020 20:41:30 +0530 Subject: [PATCH 22/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20b502a..22025f3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '05 15 * * *' + - cron: '12 15 * * *' jobs: test: From 353068642de0c7c093f46ee7ada51883097d185f Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Fri, 26 Jun 2020 10:43:06 +0530 Subject: [PATCH 23/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 22025f3..b33d959 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '12 15 * * *' + - cron: '15 5 * * *' jobs: test: From 6a94f9ba9dc6070b0b92a726729257ba05f84486 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Fri, 26 Jun 2020 10:49:55 +0530 Subject: [PATCH 24/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b33d959..a7045d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '15 5 * * *' + - cron: '20 5 * * *' jobs: test: From c24a7f13929d641c60d1ece4bf60303854eaddf7 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Fri, 26 Jun 2020 10:56:15 +0530 Subject: [PATCH 25/35] scheduling --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a7045d0..1717804 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,7 @@ name: GitHub CI on: + issues: schedule: # * is a special character in YAML so you have to quote this string - cron: '20 5 * * *' From 2d9ac0c224bf4f2fefe41c1f71972dd75e2873d5 Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Fri, 26 Jun 2020 11:11:21 +0530 Subject: [PATCH 26/35] scheduling --- dist/summaryAction/index.js | 4 ++-- src/Action/summaryAction.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/summaryAction/index.js b/dist/summaryAction/index.js index 61ff05e..565cc9f 100644 --- a/dist/summaryAction/index.js +++ b/dist/summaryAction/index.js @@ -2872,8 +2872,8 @@ async function run() { core.setOutput('openIssues', `${openIssues.length}`); core.setOutput('closedIssues', `${closedIssues.length}`); allIssuesLink = allIssuesLink.replace('api.github.com/repos/', 'github.com/'); - openIssuesLink = openIssuesLink.replace('api.github.com/repos/', 'github.com/'); - closedIssuesLink = closedIssuesLink.replace('api.github.com/repos/', 'github.com/'); + openIssuesLink = allIssuesLink + '?q=is%3Aopen+is%3Aissue'; + closedIssuesLink = allIssuesLink + '?q=is%3Aissue+is%3Aclosed'; core.setOutput('allIssuesLink', allIssuesLink); core.setOutput('openIssuesLink', openIssuesLink); core.setOutput('closedIssuesLink', closedIssuesLink); diff --git a/src/Action/summaryAction.ts b/src/Action/summaryAction.ts index cc04fc0..f1703cc 100644 --- a/src/Action/summaryAction.ts +++ b/src/Action/summaryAction.ts @@ -34,8 +34,8 @@ async function run(): Promise { core.setOutput('openIssues', `${openIssues.length}`); core.setOutput('closedIssues', `${closedIssues.length}`); allIssuesLink = allIssuesLink.replace('api.github.com/repos/', 'github.com/'); - openIssuesLink = openIssuesLink.replace('api.github.com/repos/', 'github.com/'); - closedIssuesLink = closedIssuesLink.replace('api.github.com/repos/', 'github.com/'); + openIssuesLink = allIssuesLink + '?q=is%3Aopen+is%3Aissue'; + closedIssuesLink = allIssuesLink + '?q=is%3Aissue+is%3Aclosed'; core.setOutput( 'allIssuesLink', allIssuesLink, From 5e334a8e629d470f4242d0e47758ca34202e3e7e Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Fri, 26 Jun 2020 11:16:34 +0530 Subject: [PATCH 27/35] scheduling --- dist/summaryAction/index.js | 4 ++-- src/Action/summaryAction.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/summaryAction/index.js b/dist/summaryAction/index.js index 565cc9f..4330cab 100644 --- a/dist/summaryAction/index.js +++ b/dist/summaryAction/index.js @@ -2872,8 +2872,8 @@ async function run() { core.setOutput('openIssues', `${openIssues.length}`); core.setOutput('closedIssues', `${closedIssues.length}`); allIssuesLink = allIssuesLink.replace('api.github.com/repos/', 'github.com/'); - openIssuesLink = allIssuesLink + '?q=is%3Aopen+is%3Aissue'; - closedIssuesLink = allIssuesLink + '?q=is%3Aissue+is%3Aclosed'; + openIssuesLink = allIssuesLink.concat('?q=is%3Aopen+is%3Aissue'); + closedIssuesLink = allIssuesLink.concat('?q=is%3Aissue+is%3Aclosed'); core.setOutput('allIssuesLink', allIssuesLink); core.setOutput('openIssuesLink', openIssuesLink); core.setOutput('closedIssuesLink', closedIssuesLink); diff --git a/src/Action/summaryAction.ts b/src/Action/summaryAction.ts index f1703cc..a823546 100644 --- a/src/Action/summaryAction.ts +++ b/src/Action/summaryAction.ts @@ -34,8 +34,8 @@ async function run(): Promise { core.setOutput('openIssues', `${openIssues.length}`); core.setOutput('closedIssues', `${closedIssues.length}`); allIssuesLink = allIssuesLink.replace('api.github.com/repos/', 'github.com/'); - openIssuesLink = allIssuesLink + '?q=is%3Aopen+is%3Aissue'; - closedIssuesLink = allIssuesLink + '?q=is%3Aissue+is%3Aclosed'; + openIssuesLink = allIssuesLink.concat('?q=is%3Aopen+is%3Aissue'); + closedIssuesLink = allIssuesLink.concat('?q=is%3Aissue+is%3Aclosed'); core.setOutput( 'allIssuesLink', allIssuesLink, From 3bc65338f3f08e9cebb510168b25b08c219ff35c Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Fri, 26 Jun 2020 11:24:30 +0530 Subject: [PATCH 28/35] scheduling --- dist/summaryAction/index.js | 4 ++-- src/Action/summaryAction.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/summaryAction/index.js b/dist/summaryAction/index.js index 4330cab..9015c0e 100644 --- a/dist/summaryAction/index.js +++ b/dist/summaryAction/index.js @@ -2872,8 +2872,8 @@ async function run() { core.setOutput('openIssues', `${openIssues.length}`); core.setOutput('closedIssues', `${closedIssues.length}`); allIssuesLink = allIssuesLink.replace('api.github.com/repos/', 'github.com/'); - openIssuesLink = allIssuesLink.concat('?q=is%3Aopen+is%3Aissue'); - closedIssuesLink = allIssuesLink.concat('?q=is%3Aissue+is%3Aclosed'); + openIssuesLink = allIssuesLink.concat('is%3Aopen+is%3Aissue'); + closedIssuesLink = allIssuesLink.concat('is%3Aissue+is%3Aclosed'); core.setOutput('allIssuesLink', allIssuesLink); core.setOutput('openIssuesLink', openIssuesLink); core.setOutput('closedIssuesLink', closedIssuesLink); diff --git a/src/Action/summaryAction.ts b/src/Action/summaryAction.ts index a823546..0d1ae7c 100644 --- a/src/Action/summaryAction.ts +++ b/src/Action/summaryAction.ts @@ -34,8 +34,8 @@ async function run(): Promise { core.setOutput('openIssues', `${openIssues.length}`); core.setOutput('closedIssues', `${closedIssues.length}`); allIssuesLink = allIssuesLink.replace('api.github.com/repos/', 'github.com/'); - openIssuesLink = allIssuesLink.concat('?q=is%3Aopen+is%3Aissue'); - closedIssuesLink = allIssuesLink.concat('?q=is%3Aissue+is%3Aclosed'); + openIssuesLink = allIssuesLink.concat('is%3Aopen+is%3Aissue'); + closedIssuesLink = allIssuesLink.concat('is%3Aissue+is%3Aclosed'); core.setOutput( 'allIssuesLink', allIssuesLink, From e911d84a3025b0e81f4c04d5768049f145558aec Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Fri, 26 Jun 2020 11:41:55 +0530 Subject: [PATCH 29/35] scheduling --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1717804..d97ecc4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: issues: schedule: # * is a special character in YAML so you have to quote this string - - cron: '20 5 * * *' + - cron: '12 6 * * *' jobs: test: From e005d769708b96849f193b48851d02fdb79978da Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Fri, 26 Jun 2020 12:03:37 +0530 Subject: [PATCH 30/35] scheduling --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d97ecc4..a6a54e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,9 @@ name: GitHub CI on: - issues: schedule: # * is a special character in YAML so you have to quote this string - - cron: '12 6 * * *' + - cron: '35 6 * * *' jobs: test: From 369b69777b91f8ae2e6e344fccff14810645781d Mon Sep 17 00:00:00 2001 From: meghnasavit Date: Fri, 26 Jun 2020 12:21:42 +0530 Subject: [PATCH 31/35] scheduling --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a6a54e9..9db3be8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,8 @@ name: GitHub CI on: schedule: # * is a special character in YAML so you have to quote this string - - cron: '35 6 * * *' + - cron: '01 7 * * *' + issues: jobs: test: From e0c324cb8adc2c9a34e76b4b3e4ea62cfac633c2 Mon Sep 17 00:00:00 2001 From: Anuraag Puri Date: Sun, 28 Jun 2020 22:48:06 +0530 Subject: [PATCH 32/35] Create .licensed.yml --- .licensed.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .licensed.yml diff --git a/.licensed.yml b/.licensed.yml new file mode 100644 index 0000000..364e038 --- /dev/null +++ b/.licensed.yml @@ -0,0 +1,48 @@ +# If not set, defaults to the directory name of `source_path` +name: 'Test To Do' + +# Path is relative to the location of the configuration file and specifies +# the root to expand all paths from +# If not set, defaults to a git repository root +# root: 'relative/path/from/configuration/file/directory' + +# Path is relative to configuration root and specifies where cached metadata will be stored. +# If not set, defaults to '.licenses' +cache_path: '.github/.licensed/cache' + +# Path is relative to configuration root and specifies the working directory when enumerating dependencies +# Optional for single app configuration, required when specifying multiple apps +# Defaults to current directory when running `licensed` +# source_path: 'relative/path/to/source' + +# Sources of metadata +sources: + npm: + production_only: false + +# Dependencies with these licenses are allowed and will not raise errors or warnings. +# This list does not have a default value and is required for `licensed status` +# to succeed. +allowed: + - mit + - isc + - apache-2.0 + - bsd-2-clause + - bsd-3-clause + - cc0-1.0 + +# These dependencies are ignored during enumeration. +# They will not be cached, and will not raise errors or warnings. +# This configuration is intended to be used for dependencies that don't need to +# be included for compliance purposes, such as other projects owned by the current +# project's owner, internal dependencies, and dependencies that aren't shipped with +# the project like test frameworks. +# ignored: + +# These dependencies have licenses not on the `allowed` list and have been reviewed. +# They will be cached and checked, but will not raise errors or warnings for a +# non-allowed license. Dependencies on this list will still raise errors if +# license text cannot be found for the dependency. +#reviewed: +# bundler: +# - bcrypt-ruby From 39da33a3306f03316d5cc5e927e1f7e1cde257b9 Mon Sep 17 00:00:00 2001 From: snankani <33274891+snankani@users.noreply.github.com> Date: Thu, 30 Jul 2020 12:57:56 +0530 Subject: [PATCH 33/35] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d6bd41..2da3366 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# Ecosystem \ No newline at end of file +# Dynamic Template Engine From 3b2818f538bb95208c6d5ba42d4e0d0dafde04c1 Mon Sep 17 00:00:00 2001 From: sushmita-m <63236940+sushmita-m@users.noreply.github.com> Date: Tue, 13 Oct 2020 16:47:20 +0530 Subject: [PATCH 34/35] Update TransformContract.ts --- src/Transformer/Core/TransformContract.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Transformer/Core/TransformContract.ts b/src/Transformer/Core/TransformContract.ts index 8d089b5..0808477 100644 --- a/src/Transformer/Core/TransformContract.ts +++ b/src/Transformer/Core/TransformContract.ts @@ -12,4 +12,5 @@ export enum TemplateType { */ export enum ClientType { Teams = 'Teams', + Slack = 'Slack', } From 8e25ac9d3c557aff33a5725235853541390c1501 Mon Sep 17 00:00:00 2001 From: sushmita-m Date: Tue, 13 Oct 2020 16:55:50 +0530 Subject: [PATCH 35/35] packing after slack in client type --- dist/index.js | 1 + dist/src/Transformer/Core/TransformContract.d.ts | 3 ++- dist/summaryAction/src/Transformer/Core/TransformContract.d.ts | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index a3de0c1..63deb52 100644 --- a/dist/index.js +++ b/dist/index.js @@ -21952,6 +21952,7 @@ var TemplateType; var ClientType; (function (ClientType) { ClientType["Teams"] = "Teams"; + ClientType["Slack"] = "Slack"; })(ClientType = exports.ClientType || (exports.ClientType = {})); diff --git a/dist/src/Transformer/Core/TransformContract.d.ts b/dist/src/Transformer/Core/TransformContract.d.ts index 0da1f9f..2f8e6bf 100644 --- a/dist/src/Transformer/Core/TransformContract.d.ts +++ b/dist/src/Transformer/Core/TransformContract.d.ts @@ -10,5 +10,6 @@ export declare enum TemplateType { * The client for which the event card needs to be rendered */ export declare enum ClientType { - Teams = "Teams" + Teams = "Teams", + Slack = "Slack" } diff --git a/dist/summaryAction/src/Transformer/Core/TransformContract.d.ts b/dist/summaryAction/src/Transformer/Core/TransformContract.d.ts index 0da1f9f..2f8e6bf 100644 --- a/dist/summaryAction/src/Transformer/Core/TransformContract.d.ts +++ b/dist/summaryAction/src/Transformer/Core/TransformContract.d.ts @@ -10,5 +10,6 @@ export declare enum TemplateType { * The client for which the event card needs to be rendered */ export declare enum ClientType { - Teams = "Teams" + Teams = "Teams", + Slack = "Slack" }