From f17410100d845a28affc25d369733facd3809ab5 Mon Sep 17 00:00:00 2001 From: rajdip-b Date: Sun, 23 Feb 2025 17:42:23 +0530 Subject: [PATCH 1/3] chore(ci): Remove PR unassign script --- .github/workflows/pr-close.yaml | 115 -------------------------------- 1 file changed, 115 deletions(-) delete mode 100644 .github/workflows/pr-close.yaml diff --git a/.github/workflows/pr-close.yaml b/.github/workflows/pr-close.yaml deleted file mode 100644 index 5ecec9f8..00000000 --- a/.github/workflows/pr-close.yaml +++ /dev/null @@ -1,115 +0,0 @@ -name: PR Close - -on: - schedule: - - cron: '0 * * * *' # Runs every hour - -jobs: - pr-close: - runs-on: ubuntu-latest - steps: - - uses: actions/github-script@v7 - env: - CLOSE_PR_ENABLED: ${{ vars.CLOSE_PR_ENABLED }} - CLOSE_PR_AFTER_DAYS: ${{ vars.CLOSE_PR_AFTER_DAYS }} - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const owner = 'keyshade-xyz'; - const repo = 'keyshade'; - const closePrEnabled = process.env.CLOSE_PR_ENABLED || false; - const closePrAfterDays = process.env.CLOSE_PR_AFTER_DAYS || 7; - const closePrAfterMilliseconds = closePrAfterDays * 24 * 60 * 60 * 1000; - const now = Date.now(); - - if(!closePrEnabled) { - console.log('!!! Dry run, there are no changes made !!!'); - } - - async function listOpenPrs() { - const pullRequests = []; - let page = 1; - let hasNextPage = true; - - while (hasNextPage) { - const pullRequestsResponse = await github.rest.pulls.list({ - owner, - repo, - state: 'open', - per_page: 100, - page - }); - - pullRequests.push(...pullRequestsResponse.data); - - hasNextPage = pullRequestsResponse.headers.link && pullRequestsResponse.headers.link.includes('rel="next"'); - page++; - } - - return pullRequests; - } - - async function listPrReviews(pullRequest) { - const reviews = []; - let page = 1; - let hasNextPage = true; - - while (hasNextPage) { - const reviewsResponse = await github.rest.pulls.listReviews({ - owner, - repo, - pull_number: pullRequest.number, - per_page: 100, - page - }); - - reviews.push(...reviewsResponse.data); - - hasNextPage = reviewsResponse.headers.link && reviewsResponse.headers.link.includes('rel="next"'); - page++; - } - - return reviews; - } - - async function closePrs() { - const pullRequests = await listOpenPrs(); - - for (const pullRequest of pullRequests) { - const reviews = await listPrReviews(pullRequest); - const unapprovedReviews = reviews.filter(review => review.state !== 'APPROVED'); - const pullRequestCreatedAt = new Date(pullRequest.created_at); - - // Check if PR has unapproved reviews - if(unapprovedReviews.length === 0) { - continue; - } - - // Check if it is time to close PR - const closePrAfter = new Date(pullRequestCreatedAt.getTime() + closePrAfterMilliseconds); - - if (now < closePrAfter) { - continue; - } - - if(closePrEnabled) { - await github.rest.pulls.update({ - owner, - repo, - pull_number: pullRequest.number, - state: 'closed' - }); - - await github.rest.issues.createComment({ - owner, - repo, - issue_number: pullRequest.number, - body: `PR closed due to inactivity`, - }); - } - - console.log(`PR '${pullRequest.number}' closed`); - } - } - - await closePrs(); \ No newline at end of file From 688e11c201f1cbdc77b8906805f384aad85f90ab Mon Sep 17 00:00:00 2001 From: Agastya sharma <72289680+Agastya221@users.noreply.github.com> Date: Sun, 23 Feb 2025 17:52:59 +0530 Subject: [PATCH 2/3] fix(web): Misalignment of toast message after joining the waitlist (#791) Co-authored-by: Rajdip Bhattacharya --- apps/web/src/components/hero/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/hero/index.tsx b/apps/web/src/components/hero/index.tsx index b87461e2..4004b1e1 100644 --- a/apps/web/src/components/hero/index.tsx +++ b/apps/web/src/components/hero/index.tsx @@ -55,9 +55,9 @@ function Hero(): React.JSX.Element { }) toast.custom((_t) => ( -
+

Welcome to Keyshade 🎉

-

+

You have been added to the waitlist. We will notify you once we launch

From ff891ae378080cbeb7599f1eee6cdaf8cbf283cb Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 23 Feb 2025 12:23:48 +0000 Subject: [PATCH 3/3] chore(release): 2.12.0-stage.16 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [2.12.0-stage.16](https://github.com/keyshade-xyz/keyshade/compare/v2.12.0-stage.15...v2.12.0-stage.16) (2025-02-23) ### 🐛 Bug Fixes * **web:** Misalignment of toast message after joining the waitlist ([#791](https://github.com/keyshade-xyz/keyshade/issues/791)) ([688e11c](https://github.com/keyshade-xyz/keyshade/commit/688e11c201f1cbdc77b8906805f384aad85f90ab)) ### 🔧 Miscellaneous Chores * **ci:** Remove PR unassign script ([f174101](https://github.com/keyshade-xyz/keyshade/commit/f17410100d845a28affc25d369733facd3809ab5)) --- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7831618..60dc3954 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [2.12.0-stage.16](https://github.com/keyshade-xyz/keyshade/compare/v2.12.0-stage.15...v2.12.0-stage.16) (2025-02-23) + +### 🐛 Bug Fixes + +* **web:** Misalignment of toast message after joining the waitlist ([#791](https://github.com/keyshade-xyz/keyshade/issues/791)) ([688e11c](https://github.com/keyshade-xyz/keyshade/commit/688e11c201f1cbdc77b8906805f384aad85f90ab)) + +### 🔧 Miscellaneous Chores + +* **ci:** Remove PR unassign script ([f174101](https://github.com/keyshade-xyz/keyshade/commit/f17410100d845a28affc25d369733facd3809ab5)) + ## [2.12.0-stage.15](https://github.com/keyshade-xyz/keyshade/compare/v2.12.0-stage.14...v2.12.0-stage.15) (2025-02-23) ### 🐛 Bug Fixes diff --git a/package.json b/package.json index 7d031741..c39c2ea1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "keyshade-xyz", - "version": "2.12.0-stage.15", + "version": "2.12.0-stage.16", "license": "MPL-2.0", "private": true, "engineStrict": false,