From e00e6093f7c40767c2d2cefd16b141e13a4ba27a Mon Sep 17 00:00:00 2001 From: Shiv Bhonde Date: Thu, 29 Aug 2024 16:03:20 +0900 Subject: [PATCH 1/4] add comment --- packages/nextjs/pages/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nextjs/pages/index.tsx b/packages/nextjs/pages/index.tsx index d591d8b6..b02463c8 100644 --- a/packages/nextjs/pages/index.tsx +++ b/packages/nextjs/pages/index.tsx @@ -17,6 +17,8 @@ import { useAbiNinjaState } from "~~/services/store/store"; import { parseAndCorrectJSON } from "~~/utils/abi"; import { notification } from "~~/utils/scaffold-eth"; +// console.log("Hello world"); + enum TabName { verifiedContract, addressAbi, From 5a2a48b4b1dd1d9613b6dff7f1e1126eaebab00f Mon Sep 17 00:00:00 2001 From: Shiv Bhonde Date: Thu, 29 Aug 2024 16:42:31 +0900 Subject: [PATCH 2/4] update CI so that we share screts when PR is approved --- .github/workflows/test-app.yaml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-app.yaml b/.github/workflows/test-app.yaml index de3f038e..c24399ae 100644 --- a/.github/workflows/test-app.yaml +++ b/.github/workflows/test-app.yaml @@ -4,16 +4,27 @@ on: push: branches: - main - pull_request: - branches: - - main + pull_request_target: + types: [opened, synchronize] jobs: + access_check: + runs-on: ubuntu-latest + steps: + - name: Check user permissions + if: ${{ github.event_name == 'pull_request' && github.event.pull_request.author_association != 'MEMBER' }} + run: | + echo "Action was not triggered by an organization member. Exiting now." + exit 1 + cypress-run: runs-on: ubuntu-latest + needs: access_check steps: - name: Checkout uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Cypress run uses: cypress-io/github-action@v6 @@ -25,4 +36,3 @@ jobs: env: NEXT_PUBLIC_HEIMDALL_URL: "${{ secrets.HEIMDALL_URL }}" CYPRESS_HEIMDALL_URL: "${{ secrets.HEIMDALL_URL }}" - From a3ca2a1dca6ae3a7c2c5efe4d404daf9fc0447bf Mon Sep 17 00:00:00 2001 From: Shiv Bhonde Date: Thu, 29 Aug 2024 16:44:36 +0900 Subject: [PATCH 3/4] add branches as main --- .github/workflows/test-app.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-app.yaml b/.github/workflows/test-app.yaml index c24399ae..a49c3a02 100644 --- a/.github/workflows/test-app.yaml +++ b/.github/workflows/test-app.yaml @@ -6,6 +6,8 @@ on: - main pull_request_target: types: [opened, synchronize] + branches: + - main jobs: access_check: From 2c6e7cef41d5b8ba6f4e83832a63028cf4c0e379 Mon Sep 17 00:00:00 2001 From: Shiv Bhonde Date: Thu, 29 Aug 2024 16:48:09 +0900 Subject: [PATCH 4/4] add edited to types --- .github/workflows/test-app.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-app.yaml b/.github/workflows/test-app.yaml index a49c3a02..baa58b62 100644 --- a/.github/workflows/test-app.yaml +++ b/.github/workflows/test-app.yaml @@ -5,7 +5,7 @@ on: branches: - main pull_request_target: - types: [opened, synchronize] + types: [opened, synchronize, edited] branches: - main