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 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}.`); diff --git a/.github/workflows/greet.yml b/.github/workflows/greet.yml index faa0f34203..74a7f0ceda 100644 --- a/.github/workflows/greet.yml +++ b/.github/workflows/greet.yml @@ -27,18 +27,42 @@ jobs: issue_number: number, body: commentBody }); + + - name: Add label if issue body contains "GSSoC24" + id: check_label_gs_soc24 + run: | + if grep -qE "GSSoC24" <<< "${{ github.event.issue.body }}"; then + echo "::set-output name=add_label_gs_soc24::true" + else + echo "::set-output name=add_label_gs_soc24::false" + fi + + - name: Add label "GSSoC24" + if: ${{ steps.check_label_gs_soc24.outputs.add_label_gs_soc24 == '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: ["gssoc"] + }); - 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 }} 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 +}