From fa7fc084004f6d8a16865120425a2b31f904e67c Mon Sep 17 00:00:00 2001 From: kunjgit Date: Fri, 10 May 2024 09:42:41 +0530 Subject: [PATCH 1/9] updated label for GSSoC24 --- .github/workflows/greet.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/greet.yml b/.github/workflows/greet.yml index faa0f34203..be066a18d1 100644 --- a/.github/workflows/greet.yml +++ b/.github/workflows/greet.yml @@ -27,6 +27,31 @@ jobs: issue_number: number, body: commentBody }); + + - name: Add label if issue body contains "GSSoC24" + id: check_label_gs_soc + run: | + if grep -qE "GSSoC24" <<< "${{ github.event.issue.body }}"; then + echo "::set-output name=add_label_gs_soc::true" + else + echo "::set-output name=add_label_gs_soc::false" + fi + + - name: Add label "GSSoC24" + if: ${{ steps.check_label_gs_soc.outputs.add_label_gs_soc == 'true' }} + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + + await github.issues.addLabels({ + owner: owner, + repo: repo, + issue_number: number, + labels: ["GSSoC24"] + }); + - name: Add label if issue body contains "GSSoC23" id: check_label_gs_soc @@ -52,6 +77,7 @@ jobs: labels: ["GSSoC23"] }); + - name: Add label if issue body contains "hacktoberfest" id: check_label_hacktoberfest run: | From 09dd95e3ac7bb0afbe70f89acff49a92b1a8b6ea Mon Sep 17 00:00:00 2001 From: Kunj Patel <103763618+kunjgit@users.noreply.github.com> Date: Fri, 10 May 2024 09:46:00 +0530 Subject: [PATCH 2/9] Update close_old_issues.yml --- .github/workflows/close_old_issues.yml | 47 +++++++++----------------- 1 file changed, 16 insertions(+), 31 deletions(-) diff --git a/.github/workflows/close_old_issues.yml b/.github/workflows/close_old_issues.yml index 1274f85848..b5b882a573 100644 --- a/.github/workflows/close_old_issues.yml +++ b/.github/workflows/close_old_issues.yml @@ -2,6 +2,11 @@ name: Close Older Issues on: workflow_dispatch: + inputs: + repo: + description: 'Repository name' + required: true + default: ${{ github.repository }} jobs: close-older-issues: @@ -17,7 +22,7 @@ jobs: node-version: '14' - name: Install dependencies - run: npm install --prefix .github octokit + run: npm install @actions/github - name: Fetch opened issues id: fetch_issues @@ -26,36 +31,23 @@ jobs: github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} script: | const oneWeekAgo = new Date(); - oneWeekAgo.setDate(oneWeekAgo.getDate() - 3); + oneWeekAgo.setDate(oneWeekAgo.getDate() - 7); - let allIssues = []; - let page = 1; - let stopFetching = false; + let olderIssues = []; - while (!stopFetching) { - const { data: issues } = await github.issues.listForRepo({ + for await (const response of github.paginate.iterator( + github.issues.listForRepo.endpoint.merge({ owner: context.repo.owner, repo: context.repo.repo, state: 'open', sort: 'created', direction: 'asc', - per_page: 100, - page - }); - - for (const issue of issues) { - if (issue.pull_request === undefined && new Date(issue.created_at) < oneWeekAgo) { - allIssues.push(issue); - } else { - stopFetching = true; - break; - } - } - - page++; + per_page: 100 + }) + )) { + olderIssues = olderIssues.concat(response.data.filter(issue => new Date(issue.created_at) < oneWeekAgo && !issue.pull_request)); } - const olderIssues = allIssues.filter(issue => issue.pull_request === undefined); core.setOutput('older_issues', olderIssues.map(issue => issue.number).join(',')); - name: Close older issues and comment @@ -64,16 +56,9 @@ jobs: with: github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} script: | - const olderIssueNumbers = Buffer.from('${{ steps.fetch_issues.outputs.older_issues }}', 'utf-8').toString().split(','); + const olderIssueNumbers = '${{ steps.fetch_issues.outputs.older_issues }}'.split(','); for (const issueNumber of olderIssueNumbers) { - // Get the issue details - const { data: issue } = await github.issues.get({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: parseInt(issueNumber) - }); - // Close the older issue await github.issues.update({ owner: context.repo.owner, @@ -87,7 +72,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, issue_number: parseInt(issueNumber), - body: `Hello @${issue.user.login}, Time's Uppp!⏰ \n Sorry for closing your issue! \n But it's more than a week since we haven't received anything from your side 😢 . \n Come up with new ideas, create a new issue and make sure you finish it within a week! 🔥 \n All the best! 🚀 \n Happy Hacking! 💗` + body: `Hello @${issue.user.login}, Time's up!⏰ \n Sorry for closing your issue! \n But it's more than a week since we haven't received anything from your side 😢 . \n Come up with new ideas, create a new issue and make sure you finish it within a week! 🔥 \n All the best! 🚀 \n Happy Hacking! 💗` }); console.log(`Closed and commented on issue #${issueNumber}.`); From 0f5daeac2979aaaf9dad74ca672015fd57eeb050 Mon Sep 17 00:00:00 2001 From: Kunj Patel <103763618+kunjgit@users.noreply.github.com> Date: Fri, 10 May 2024 09:48:47 +0530 Subject: [PATCH 3/9] Update close_old_issues.yml --- .github/workflows/close_old_issues.yml | 47 +++++++++++++++++--------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/.github/workflows/close_old_issues.yml b/.github/workflows/close_old_issues.yml index b5b882a573..1274f85848 100644 --- a/.github/workflows/close_old_issues.yml +++ b/.github/workflows/close_old_issues.yml @@ -2,11 +2,6 @@ name: Close Older Issues on: workflow_dispatch: - inputs: - repo: - description: 'Repository name' - required: true - default: ${{ github.repository }} jobs: close-older-issues: @@ -22,7 +17,7 @@ jobs: node-version: '14' - name: Install dependencies - run: npm install @actions/github + run: npm install --prefix .github octokit - name: Fetch opened issues id: fetch_issues @@ -31,23 +26,36 @@ jobs: github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} script: | const oneWeekAgo = new Date(); - oneWeekAgo.setDate(oneWeekAgo.getDate() - 7); + oneWeekAgo.setDate(oneWeekAgo.getDate() - 3); - let olderIssues = []; + let allIssues = []; + let page = 1; + let stopFetching = false; - for await (const response of github.paginate.iterator( - github.issues.listForRepo.endpoint.merge({ + while (!stopFetching) { + const { data: issues } = await github.issues.listForRepo({ owner: context.repo.owner, repo: context.repo.repo, state: 'open', sort: 'created', direction: 'asc', - per_page: 100 - }) - )) { - olderIssues = olderIssues.concat(response.data.filter(issue => new Date(issue.created_at) < oneWeekAgo && !issue.pull_request)); + per_page: 100, + page + }); + + for (const issue of issues) { + if (issue.pull_request === undefined && new Date(issue.created_at) < oneWeekAgo) { + allIssues.push(issue); + } else { + stopFetching = true; + break; + } + } + + page++; } + const olderIssues = allIssues.filter(issue => issue.pull_request === undefined); core.setOutput('older_issues', olderIssues.map(issue => issue.number).join(',')); - name: Close older issues and comment @@ -56,9 +64,16 @@ jobs: with: github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} script: | - const olderIssueNumbers = '${{ steps.fetch_issues.outputs.older_issues }}'.split(','); + const olderIssueNumbers = Buffer.from('${{ steps.fetch_issues.outputs.older_issues }}', 'utf-8').toString().split(','); for (const issueNumber of olderIssueNumbers) { + // Get the issue details + const { data: issue } = await github.issues.get({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: parseInt(issueNumber) + }); + // Close the older issue await github.issues.update({ owner: context.repo.owner, @@ -72,7 +87,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, issue_number: parseInt(issueNumber), - body: `Hello @${issue.user.login}, Time's up!⏰ \n Sorry for closing your issue! \n But it's more than a week since we haven't received anything from your side 😢 . \n Come up with new ideas, create a new issue and make sure you finish it within a week! 🔥 \n All the best! 🚀 \n Happy Hacking! 💗` + body: `Hello @${issue.user.login}, Time's Uppp!⏰ \n Sorry for closing your issue! \n But it's more than a week since we haven't received anything from your side 😢 . \n Come up with new ideas, create a new issue and make sure you finish it within a week! 🔥 \n All the best! 🚀 \n Happy Hacking! 💗` }); console.log(`Closed and commented on issue #${issueNumber}.`); From e1ad1b94c651868c33b8463e7439030872897501 Mon Sep 17 00:00:00 2001 From: Kunj Patel <103763618+kunjgit@users.noreply.github.com> Date: Fri, 10 May 2024 09:52:04 +0530 Subject: [PATCH 4/9] Update close_old_issues.yml --- .github/workflows/close_old_issues.yml | 48 ++++++++------------------ 1 file changed, 15 insertions(+), 33 deletions(-) diff --git a/.github/workflows/close_old_issues.yml b/.github/workflows/close_old_issues.yml index 1274f85848..a8ad679805 100644 --- a/.github/workflows/close_old_issues.yml +++ b/.github/workflows/close_old_issues.yml @@ -17,7 +17,7 @@ jobs: node-version: '14' - name: Install dependencies - run: npm install --prefix .github octokit + run: npm install @actions/github - name: Fetch opened issues id: fetch_issues @@ -26,36 +26,18 @@ jobs: github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} script: | const oneWeekAgo = new Date(); - oneWeekAgo.setDate(oneWeekAgo.getDate() - 3); - - let allIssues = []; - let page = 1; - let stopFetching = false; - - while (!stopFetching) { - const { data: issues } = await github.issues.listForRepo({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open', - sort: 'created', - direction: 'asc', - per_page: 100, - page - }); - - for (const issue of issues) { - if (issue.pull_request === undefined && new Date(issue.created_at) < oneWeekAgo) { - allIssues.push(issue); - } else { - stopFetching = true; - break; - } - } - - page++; - } - - const olderIssues = allIssues.filter(issue => issue.pull_request === undefined); + oneWeekAgo.setDate(oneWeekAgo.getDate() - 7); + + const { data: issues } = await github.issues.listForRepo({ + owner: context.repo.owner, + repo: context.repo.repo, + state: 'open', + sort: 'created', + direction: 'asc', + per_page: 100 + }); + + const olderIssues = issues.filter(issue => issue.pull_request === undefined && new Date(issue.created_at) < oneWeekAgo); core.setOutput('older_issues', olderIssues.map(issue => issue.number).join(',')); - name: Close older issues and comment @@ -64,7 +46,7 @@ jobs: with: github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} script: | - const olderIssueNumbers = Buffer.from('${{ steps.fetch_issues.outputs.older_issues }}', 'utf-8').toString().split(','); + const olderIssueNumbers = '${{ steps.fetch_issues.outputs.older_issues }}'.split(','); for (const issueNumber of olderIssueNumbers) { // Get the issue details @@ -87,7 +69,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, issue_number: parseInt(issueNumber), - body: `Hello @${issue.user.login}, Time's Uppp!⏰ \n Sorry for closing your issue! \n But it's more than a week since we haven't received anything from your side 😢 . \n Come up with new ideas, create a new issue and make sure you finish it within a week! 🔥 \n All the best! 🚀 \n Happy Hacking! 💗` + body: `Hello @${issue.user.login}, Time's up!⏰ \n Sorry for closing your issue! \n But it's more than a week since we haven't received anything from your side 😢 . \n Come up with new ideas, create a new issue and make sure you finish it within a week! 🔥 \n All the best! 🚀 \n Happy Hacking! 💗` }); console.log(`Closed and commented on issue #${issueNumber}.`); From 2f8972655c4a1c6959a8893d133cb5b904989327 Mon Sep 17 00:00:00 2001 From: kunjgit Date: Fri, 10 May 2024 10:02:25 +0530 Subject: [PATCH 5/9] updated the templates for GSSoC24 --- .github/ISSUE_TEMPLATE/bug_report.yml | 1 + .github/ISSUE_TEMPLATE/documentation_bug.yml | 1 + .github/ISSUE_TEMPLATE/game_enhancement.yml | 1 + .github/ISSUE_TEMPLATE/new_game_request.yml | 1 + .github/ISSUE_TEMPLATE/question_and_support.yml | 1 + 5 files changed, 5 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 380582c378..26702a3e74 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -40,6 +40,7 @@ body: label: Select program in which you are contributing multiple: true options: + - GSSoC24 - IWOC2024 - hacktoberfest - GSSoC23 diff --git a/.github/ISSUE_TEMPLATE/documentation_bug.yml b/.github/ISSUE_TEMPLATE/documentation_bug.yml index 9cf61b51c7..cf6b325f92 100644 --- a/.github/ISSUE_TEMPLATE/documentation_bug.yml +++ b/.github/ISSUE_TEMPLATE/documentation_bug.yml @@ -31,6 +31,7 @@ body: label: Select program in which you are contributing multiple: true options: + - GSSoC24 - IWOC2024 - hacktoberfest - GSSoC23 diff --git a/.github/ISSUE_TEMPLATE/game_enhancement.yml b/.github/ISSUE_TEMPLATE/game_enhancement.yml index 04a1a904c8..73bcf0fae2 100644 --- a/.github/ISSUE_TEMPLATE/game_enhancement.yml +++ b/.github/ISSUE_TEMPLATE/game_enhancement.yml @@ -31,6 +31,7 @@ body: label: Select program in which you are contributing multiple: true options: + - GSSoC24 - IWOC2024 - hacktoberfest - GSSoC23 diff --git a/.github/ISSUE_TEMPLATE/new_game_request.yml b/.github/ISSUE_TEMPLATE/new_game_request.yml index e650646349..5b4dd15ff9 100644 --- a/.github/ISSUE_TEMPLATE/new_game_request.yml +++ b/.github/ISSUE_TEMPLATE/new_game_request.yml @@ -32,6 +32,7 @@ body: multiple: true options: - IWOC2024 + - GSSoC24 - hacktoberfest - GSSoC23 - Other diff --git a/.github/ISSUE_TEMPLATE/question_and_support.yml b/.github/ISSUE_TEMPLATE/question_and_support.yml index 9cb48166d6..980b72a71c 100644 --- a/.github/ISSUE_TEMPLATE/question_and_support.yml +++ b/.github/ISSUE_TEMPLATE/question_and_support.yml @@ -22,6 +22,7 @@ body: label: Select program in which you are contributing multiple: true options: + - GSSoC24 - IWOC2024 - hacktobefest - GSSoC23 From 523e7ee7398e5a66f60a413e8ab43841748ea11f Mon Sep 17 00:00:00 2001 From: Disha Thakurata <146114938+dishathakurata@users.noreply.github.com> Date: Sat, 11 May 2024 02:21:45 +0530 Subject: [PATCH 6/9] Update style.css --- assets/css/style.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 956fb8b59f..41fd7bb61f 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -2473,7 +2473,6 @@ textarea.form-input::-webkit-resizer { color: var(--white-1); justify-content: center; align-items: center; - margin-top: 5rem; width: 100%; gap: 2rem; } @@ -2512,6 +2511,7 @@ textarea.form-input::-webkit-resizer { flex-wrap: wrap; margin-right: 5px; gap: 5px; + padding-top: 0%; } /* pagination styling */ @@ -2617,8 +2617,8 @@ textarea.form-input::-webkit-resizer { height: auto; text-align: center; color: snow; - padding-bottom: 6%; - padding-top: 3%; + padding-bottom: 40%; + padding-top: 10%; } span { @@ -2844,4 +2844,4 @@ box-shadow: 0px 0px 21px 0px rgba(204,153,255,1); */ background: linear-gradient(343deg, rgba(120, 47, 152, 1) 0%, rgba(5, 50, 129, 1) 82%, rgba(52, 39, 100, 1) 100%); filter: blur(600px); z-index: -10; -} \ No newline at end of file +} From aa107aa42d5dfe72893466c291c6bf19314126ef Mon Sep 17 00:00:00 2001 From: Kunj Patel <103763618+kunjgit@users.noreply.github.com> Date: Sat, 11 May 2024 10:06:17 +0530 Subject: [PATCH 7/9] Update greet.yml --- .github/workflows/greet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/greet.yml b/.github/workflows/greet.yml index be066a18d1..da417ce1b7 100644 --- a/.github/workflows/greet.yml +++ b/.github/workflows/greet.yml @@ -49,7 +49,7 @@ jobs: owner: owner, repo: repo, issue_number: number, - labels: ["GSSoC24"] + labels: ["gssoc"] }); From b769cc0ff48a5ff8c9a5580b95c96ae125d15ff1 Mon Sep 17 00:00:00 2001 From: Kunj Patel <103763618+kunjgit@users.noreply.github.com> Date: Sat, 11 May 2024 10:34:30 +0530 Subject: [PATCH 8/9] Update greet.yml --- .github/workflows/greet.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/greet.yml b/.github/workflows/greet.yml index da417ce1b7..6436a431f3 100644 --- a/.github/workflows/greet.yml +++ b/.github/workflows/greet.yml @@ -29,16 +29,16 @@ jobs: }); - name: Add label if issue body contains "GSSoC24" - id: check_label_gs_soc + id: check_label_gs_soc24 run: | if grep -qE "GSSoC24" <<< "${{ github.event.issue.body }}"; then - echo "::set-output name=add_label_gs_soc::true" + echo "::set-output name=add_label_gs_soc24::true" else - echo "::set-output name=add_label_gs_soc::false" + echo "::set-output name=add_label_gs_soc24::false" fi - name: Add label "GSSoC24" - if: ${{ steps.check_label_gs_soc.outputs.add_label_gs_soc == 'true' }} + if: ${{ steps.check_label_gs_soc24.outputs.add_label_gs_soc24 == 'true' }} uses: actions/github-script@v4 with: github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} @@ -49,21 +49,20 @@ jobs: owner: owner, repo: repo, issue_number: number, - labels: ["gssoc"] + labels: ["GSSoC24"] }); - - name: Add label if issue body contains "GSSoC23" - id: check_label_gs_soc + id: check_label_gs_soc23 run: | if grep -qE "GSSoC23" <<< "${{ github.event.issue.body }}"; then - echo "::set-output name=add_label_gs_soc::true" + echo "::set-output name=add_label_gs_soc23::true" else - echo "::set-output name=add_label_gs_soc::false" + echo "::set-output name=add_label_gs_soc23::false" fi - name: Add label "GSSoC23" - if: ${{ steps.check_label_gs_soc.outputs.add_label_gs_soc == 'true' }} + if: ${{ steps.check_label_gs_soc23.outputs.add_label_gs_soc23 == 'true' }} uses: actions/github-script@v4 with: github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} @@ -77,7 +76,6 @@ jobs: labels: ["GSSoC23"] }); - - name: Add label if issue body contains "hacktoberfest" id: check_label_hacktoberfest run: | From 0f3b4eb73084c5172d6108a370827cb3222a9735 Mon Sep 17 00:00:00 2001 From: Kunj Patel <103763618+kunjgit@users.noreply.github.com> Date: Sat, 11 May 2024 10:38:05 +0530 Subject: [PATCH 9/9] Update greet.yml --- .github/workflows/greet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/greet.yml b/.github/workflows/greet.yml index 6436a431f3..74a7f0ceda 100644 --- a/.github/workflows/greet.yml +++ b/.github/workflows/greet.yml @@ -49,7 +49,7 @@ jobs: owner: owner, repo: repo, issue_number: number, - labels: ["GSSoC24"] + labels: ["gssoc"] }); - name: Add label if issue body contains "GSSoC23"