From d9edc82b6178546987d5b1404c71ab9cdd2f5bb5 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:23:55 +0000 Subject: [PATCH 01/41] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 13aa6ef..f2fd11c 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# github-chore \ No newline at end of file +# github-chore + +this repo contains chore github actions for rainlanguage org \ No newline at end of file From 08d0e9242d365b6366ea1bad8de9d5a4b53de7f5 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:24:41 +0000 Subject: [PATCH 02/41] Update chore.yml --- .github/workflows/chore.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 12d5993..b893f1b 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -1,12 +1,12 @@ name: GitHub PR Chore -on: - pull_request: - types: - - closed +on: push + # pull_request: + # types: + # - closed jobs: comment-on-merge: - if: github.event.pull_request.merged == true + # if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: From 11be507bbfd9a76f3457372c1e29c8fc2e0cdae2 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:30:31 +0000 Subject: [PATCH 03/41] Update chore.yml --- .github/workflows/chore.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index b893f1b..14199c2 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -1,12 +1,12 @@ name: GitHub PR Chore -on: push - # pull_request: - # types: - # - closed +on: + pull_request: + types: + - closed jobs: comment-on-merge: - # if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: @@ -15,7 +15,7 @@ jobs: with: script: | github.rest.issues.createComment({ - issue_number: context.payload.pull_request.number, + issue_number: github.context.issue.number, owner: context.repo.owner, repo: context.repo.name, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From 423ed6b611986d4483b5a7151562e23a96a995d0 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:31:01 +0000 Subject: [PATCH 04/41] Update chore.yml --- .github/workflows/chore.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 14199c2..9cc7623 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -1,12 +1,12 @@ name: GitHub PR Chore -on: - pull_request: - types: - - closed +on: push + # pull_request: + # types: + # - closed jobs: comment-on-merge: - if: github.event.pull_request.merged == true + # if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: From 317bf64c0d4169a1ab09fe50ad1c6eb2fedf94ef Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:34:04 +0000 Subject: [PATCH 05/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 9cc7623..29589e0 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -15,7 +15,7 @@ jobs: with: script: | github.rest.issues.createComment({ - issue_number: github.context.issue.number, + issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.name, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From 66bd702e62677166941b4155f851f78f1bf32c04 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:36:24 +0000 Subject: [PATCH 06/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 29589e0..4a8bee9 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -17,6 +17,6 @@ jobs: github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, - repo: context.repo.name, + repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" }) From f72d83c8335b8f1771f553e58e7a25306294cc5f Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:39:01 +0000 Subject: [PATCH 07/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 4a8bee9..616fe4e 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -15,7 +15,7 @@ jobs: with: script: | github.rest.issues.createComment({ - issue_number: context.issue.number, + issue_number: context.pull_request.number, owner: context.repo.owner, repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From 2b2c534836635b64a442bc3b0bfcb062c0c97106 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:41:00 +0000 Subject: [PATCH 08/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 616fe4e..3a6c680 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -15,7 +15,7 @@ jobs: with: script: | github.rest.issues.createComment({ - issue_number: context.pull_request.number, + issue_number: context.payload.pull_request.number, owner: context.repo.owner, repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From b32404d904dde23fe66e5571e0c578b60a9bb1d5 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:42:19 +0000 Subject: [PATCH 09/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 3a6c680..453e861 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -15,7 +15,7 @@ jobs: with: script: | github.rest.issues.createComment({ - issue_number: context.payload.pull_request.number, + issue_number: github.context.payload.pull_request.number, owner: context.repo.owner, repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From 26eaed3260dc81543ac0e631d25d2ad89bac22e3 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:45:39 +0000 Subject: [PATCH 10/41] Update chore.yml --- .github/workflows/chore.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 453e861..dc35654 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -14,8 +14,9 @@ jobs: uses: actions/github-script@v7 with: script: | + console.log(github, context); github.rest.issues.createComment({ - issue_number: github.context.payload.pull_request.number, + issue_number: github.context.issue.number, owner: context.repo.owner, repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From 5fad39644e4b1ac85857bd625a50399b25797151 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:52:21 +0000 Subject: [PATCH 11/41] Update chore.yml --- .github/workflows/chore.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index dc35654..6065bc4 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -14,9 +14,9 @@ jobs: uses: actions/github-script@v7 with: script: | - console.log(github, context); + console.log(context.issue); github.rest.issues.createComment({ - issue_number: github.context.issue.number, + issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From 4cfb8b01211410bd12c4637c9b32048666be3b0a Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:52:54 +0000 Subject: [PATCH 12/41] Update chore.yml --- .github/workflows/chore.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 6065bc4..0abcb7f 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -15,8 +15,8 @@ jobs: with: script: | console.log(context.issue); - github.rest.issues.createComment({ - issue_number: context.issue.number, + github.rest.pulls.createComment({ + issue_number: context.pull.number, owner: context.repo.owner, repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From 9f66f52d55f80fc9ea7a587b338146ff8c8e940b Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:53:58 +0000 Subject: [PATCH 13/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 0abcb7f..1e0a43a 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -16,7 +16,7 @@ jobs: script: | console.log(context.issue); github.rest.pulls.createComment({ - issue_number: context.pull.number, + issue_number: context.pull_request.number, owner: context.repo.owner, repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From 4a971fc4e10bc7f5febe519abde5f5c0a84f4541 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 04:55:24 +0000 Subject: [PATCH 14/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 1e0a43a..b08c170 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -14,7 +14,7 @@ jobs: uses: actions/github-script@v7 with: script: | - console.log(context.issue); + console.log(context, context.pull, context.pull_request, context.pullRequest); github.rest.pulls.createComment({ issue_number: context.pull_request.number, owner: context.repo.owner, From 0cda0430a6a111edacc4dce414c6314f51c66281 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:00:38 +0000 Subject: [PATCH 15/41] Update chore.yml --- .github/workflows/chore.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index b08c170..9b3ee4e 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -14,9 +14,9 @@ jobs: uses: actions/github-script@v7 with: script: | - console.log(context, context.pull, context.pull_request, context.pullRequest); + console.log(context.pull_request, github.context); github.rest.pulls.createComment({ - issue_number: context.pull_request.number, + pull_number: context.pull_request.number, owner: context.repo.owner, repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From 7540eac5543f26d863d78c92473c1b533e1fb04b Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:03:15 +0000 Subject: [PATCH 16/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 9b3ee4e..51b62b5 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -16,7 +16,7 @@ jobs: script: | console.log(context.pull_request, github.context); github.rest.pulls.createComment({ - pull_number: context.pull_request.number, + pull_number: 1, owner: context.repo.owner, repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From 314a3a0c2a97aea5dd98dc43f17b477ea8b7dfa7 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:04:24 +0000 Subject: [PATCH 17/41] Update chore.yml --- .github/workflows/chore.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 51b62b5..0bbea0f 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -15,8 +15,8 @@ jobs: with: script: | console.log(context.pull_request, github.context); - github.rest.pulls.createComment({ - pull_number: 1, + github.rest.issues.createComment({ + issue_number: 1, owner: context.repo.owner, repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From 59c0d88f7dbf91f40dbabe9fbaeb34a8447d973f Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:07:26 +0000 Subject: [PATCH 18/41] Update chore.yml --- .github/workflows/chore.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 0bbea0f..3edef17 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -14,9 +14,9 @@ jobs: uses: actions/github-script@v7 with: script: | - console.log(context.pull_request, github.context); + console.log(github.context.payload.pull_request); github.rest.issues.createComment({ - issue_number: 1, + issue_number: undefined, owner: context.repo.owner, repo: context.repo.repo, body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" From c9633b106ff95e61a514d52c398bca93e61ac3ef Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:08:54 +0000 Subject: [PATCH 19/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 3edef17..c092ed3 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -14,7 +14,7 @@ jobs: uses: actions/github-script@v7 with: script: | - console.log(github.context.payload.pull_request); + console.log(github.payload.pull_request); github.rest.issues.createComment({ issue_number: undefined, owner: context.repo.owner, From 14eb2cd0bc50c43519a578e06768c62f260b2459 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:10:00 +0000 Subject: [PATCH 20/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index c092ed3..ef92f72 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -14,7 +14,7 @@ jobs: uses: actions/github-script@v7 with: script: | - console.log(github.payload.pull_request); + console.log(github.payload, github.payload.pull); github.rest.issues.createComment({ issue_number: undefined, owner: context.repo.owner, From 04beb59670f8978ce792b21fe1b4e99ba44e9c6a Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:10:53 +0000 Subject: [PATCH 21/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index ef92f72..2018981 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -14,7 +14,7 @@ jobs: uses: actions/github-script@v7 with: script: | - console.log(github.payload, github.payload.pull); + console.log(github.payload); github.rest.issues.createComment({ issue_number: undefined, owner: context.repo.owner, From 12001783b207dfbac20075c5071ca87ab0085ba8 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:12:03 +0000 Subject: [PATCH 22/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 2018981..6b9fd1f 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -14,7 +14,7 @@ jobs: uses: actions/github-script@v7 with: script: | - console.log(github.payload); + console.log(context.payload, context.payload.pull, context.payload.pull_request, context.payload.pullRequest); github.rest.issues.createComment({ issue_number: undefined, owner: context.repo.owner, From cdf1449b6def41344892283eebcdda586de54b47 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:13:46 +0000 Subject: [PATCH 23/41] Update chore.yml --- .github/workflows/chore.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 6b9fd1f..a07ef4b 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -10,11 +10,14 @@ jobs: runs-on: ubuntu-latest steps: + - name: Set PR number + run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV - name: Comment on the PR uses: actions/github-script@v7 with: script: | - console.log(context.payload, context.payload.pull, context.payload.pull_request, context.payload.pullRequest); + const prNumber = process.env.PR_NUMBER; + console.log(prNumber); github.rest.issues.createComment({ issue_number: undefined, owner: context.repo.owner, From 68a84bb75acbccfa40d037dfb786d31a3c6fee3e Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:21:02 +0000 Subject: [PATCH 24/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index a07ef4b..643d112 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Set PR number - run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV + run: echo "PR_NUMBER=${{ github.event.number }}" >> $GITHUB_ENV - name: Comment on the PR uses: actions/github-script@v7 with: From efaf2ba1cd69555f94f59bebaf487cef9f02330c Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:25:30 +0000 Subject: [PATCH 25/41] Update chore.yml --- .github/workflows/chore.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 643d112..6229f4c 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -10,14 +10,17 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set PR number - run: echo "PR_NUMBER=${{ github.event.number }}" >> $GITHUB_ENV + # - name: Set PR number + # run: echo "PR_NUMBER=${{ github.event.number }}" >> $GITHUB_ENV + - name: Get Pull Request Number + id: pr + run: echo "PR_NUMBER=$(gh pr view --json number -q .number || echo "")" >> $GITHUB_ENV - name: Comment on the PR uses: actions/github-script@v7 with: script: | const prNumber = process.env.PR_NUMBER; - console.log(prNumber); + console.log(context.payload.number, "qwe", prNumber); github.rest.issues.createComment({ issue_number: undefined, owner: context.repo.owner, From 08706de1e3a8552c022062225f0b0ae743419df2 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:27:48 +0000 Subject: [PATCH 26/41] Update chore.yml --- .github/workflows/chore.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 6229f4c..3bcdfa5 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -15,6 +15,8 @@ jobs: - name: Get Pull Request Number id: pr run: echo "PR_NUMBER=$(gh pr view --json number -q .number || echo "")" >> $GITHUB_ENV + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Comment on the PR uses: actions/github-script@v7 with: From 3181d1074df4973387827f92e6734d5b39f45662 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:31:34 +0000 Subject: [PATCH 27/41] Update chore.yml --- .github/workflows/chore.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 3bcdfa5..8a02d8f 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -1,8 +1,8 @@ name: GitHub PR Chore -on: push - # pull_request: - # types: - # - closed +on: + pull_request: + types: + - closed jobs: comment-on-merge: @@ -12,17 +12,16 @@ jobs: steps: # - name: Set PR number # run: echo "PR_NUMBER=${{ github.event.number }}" >> $GITHUB_ENV - - name: Get Pull Request Number - id: pr - run: echo "PR_NUMBER=$(gh pr view --json number -q .number || echo "")" >> $GITHUB_ENV - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - name: Get Pull Request Number + # id: pr + # run: echo "PR_NUMBER=$(gh pr view --json number -q .number || echo "")" >> $GITHUB_ENV + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Comment on the PR uses: actions/github-script@v7 with: script: | - const prNumber = process.env.PR_NUMBER; - console.log(context.payload.number, "qwe", prNumber); + console.log(context.payload.pull_request, "qwe", context.issue); github.rest.issues.createComment({ issue_number: undefined, owner: context.repo.owner, From 8bea8b076158ec9149dce437795a26460196343b Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:34:19 +0000 Subject: [PATCH 28/41] Update chore.yml --- .github/workflows/chore.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 8a02d8f..24c8a73 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -6,25 +6,17 @@ on: jobs: comment-on-merge: - # if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - # - name: Set PR number - # run: echo "PR_NUMBER=${{ github.event.number }}" >> $GITHUB_ENV - # - name: Get Pull Request Number - # id: pr - # run: echo "PR_NUMBER=$(gh pr view --json number -q .number || echo "")" >> $GITHUB_ENV - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Comment on the PR uses: actions/github-script@v7 with: script: | - console.log(context.payload.pull_request, "qwe", context.issue); github.rest.issues.createComment({ - issue_number: undefined, + issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections" + body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections \n- do NOT also tag me or anyone else on your comment" }) From 7aad67f6ebd50b2dc111eaf7ded1648b6872d726 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:35:36 +0000 Subject: [PATCH 29/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 24c8a73..1367fbc 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -6,7 +6,7 @@ on: jobs: comment-on-merge: - if: github.event.pull_request.merged == true + # if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: From ee47f018ba674cc63aacbc79bab2e3ebb9259dca Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:38:07 +0000 Subject: [PATCH 30/41] Update chore.yml --- .github/workflows/chore.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 1367fbc..0d4fc58 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -1,12 +1,12 @@ -name: GitHub PR Chore +name: GitHub PR Size Assessment Trigger on: pull_request: types: - closed jobs: - comment-on-merge: - # if: github.event.pull_request.merged == true + assess-pr-size-on-merge: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: From 36e42a726061ca3db4d7860f97bcf88778f57d7b Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:39:29 +0000 Subject: [PATCH 31/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 0d4fc58..7bfffd3 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -18,5 +18,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files like lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections \n- do NOT also tag me or anyone else on your comment" + body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files such as lock files should be excluded \n- the assessment should be in the format of where TOTAL is sum of ADDITIONS and DELETIONS: ADDITIONS=number DELETIONS=number TOTAL=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections \n- do NOT also tag me or anyone else on your comment" }) From 37f931bc2f1dd34fae8d9b2adf1390e0625cbcf4 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:39:58 +0000 Subject: [PATCH 32/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 7bfffd3..2dee36f 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -18,5 +18,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: "@coderabbitai assess this PR size with the following criteria and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files such as lock files should be excluded \n- the assessment should be in the format of where TOTAL is sum of ADDITIONS and DELETIONS: ADDITIONS=number DELETIONS=number TOTAL=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections \n- do NOT also tag me or anyone else on your comment" + body: "@coderabbitai assess this PR size with the following criterias and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files such as lock files should be excluded \n- the assessment should be in the format of where TOTAL is sum of ADDITIONS and DELETIONS: ADDITIONS=number DELETIONS=number TOTAL=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections \n- do NOT also tag me or anyone else on your comment" }) From 551372693279a0a68d24f638c67957ec276d6117 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:41:10 +0000 Subject: [PATCH 33/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 2dee36f..6bc86b7 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -18,5 +18,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: "@coderabbitai assess this PR size with the following criterias and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files such as lock files should be excluded \n- the assessment should be in the format of where TOTAL is sum of ADDITIONS and DELETIONS: ADDITIONS=number DELETIONS=number TOTAL=number \n- no other text and explanation should be in your comment, just the number of addition and deletions that you have assessed \n- you assessment comment should also not include any of your tips or other sections \n- do NOT also tag me or anyone else on your comment" + body: "@coderabbitai assess this PR size with the following criterias and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files such as lock files should be excluded \n- the assessment should be in the format of where TOTAL is sum of ADDITIONS and DELETIONS: ADDITIONS=number DELETIONS=number TOTAL=number \n- no other text and explanation should be in your comment, just the number of addition, deletions and total that you have assessed \n- you assessment comment should also not include any of your tips or other sections \n- do NOT tag me or anyone else on your comment" }) From 4a6b4dcfe718efa3ae984ef57899b79a6c8b288b Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 05:59:53 +0000 Subject: [PATCH 34/41] Update chore.yml --- .github/workflows/chore.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 6bc86b7..572ac8b 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -6,7 +6,7 @@ on: jobs: assess-pr-size-on-merge: - if: github.event.pull_request.merged == true + # if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: @@ -18,5 +18,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: "@coderabbitai assess this PR size with the following criterias and report it in your comment: \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files such as lock files should be excluded \n- the assessment should be in the format of where TOTAL is sum of ADDITIONS and DELETIONS: ADDITIONS=number DELETIONS=number TOTAL=number \n- no other text and explanation should be in your comment, just the number of addition, deletions and total that you have assessed \n- you assessment comment should also not include any of your tips or other sections \n- do NOT tag me or anyone else on your comment" + body: "@coderabbitai assess this PR size (number of total, addition and deletion diff) for the totality of the PR with the following criterias and report it in your comment: \n- the assessment must be for the totality of the PR, that means from the first commit to the last commit \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files such as lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number TOTAL=number , where TOTAL is sum of ADDITIONS and DELETIONS \n- the PR size is for the most part the same as the PR diff, but excluding the changes in irrevelant file, the ones that explained earlier \n- no other text and explanation should be in your comment, just the number of addition, deletions and total that you have assessed \n- you assessment comment should also not include any of your tips or other sections \n- do NOT tag me or anyone else on your comment" }) From 0a878f4e1e413cb90d09c97eba6c1c5b7c3fe721 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 06:01:05 +0000 Subject: [PATCH 35/41] Update chore.yml --- .github/workflows/chore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 572ac8b..87e5fe7 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -6,7 +6,7 @@ on: jobs: assess-pr-size-on-merge: - # if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: From 373b728b44783dd7f5608d4a8266cfa853583226 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 06:09:47 +0000 Subject: [PATCH 36/41] update --- .github/workflows/chore.yml | 6 ++++-- instructions.txt | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 instructions.txt diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 87e5fe7..dcd04ae 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -6,10 +6,12 @@ on: jobs: assess-pr-size-on-merge: - if: github.event.pull_request.merged == true + # if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: + - name: Read Instructions + run: echo "INSTRUCTIONS=$(cat ./instructions.txt)" >> $GITHUB_ENV - name: Comment on the PR uses: actions/github-script@v7 with: @@ -18,5 +20,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: "@coderabbitai assess this PR size (number of total, addition and deletion diff) for the totality of the PR with the following criterias and report it in your comment: \n- the assessment must be for the totality of the PR, that means from the first commit to the last commit \n- only include the relevant and main source files and changes in your assessment, for example changes in generated files such as lock files should be excluded \n- the assessment should be in the format of: ADDITIONS=number DELETIONS=number TOTAL=number , where TOTAL is sum of ADDITIONS and DELETIONS \n- the PR size is for the most part the same as the PR diff, but excluding the changes in irrevelant file, the ones that explained earlier \n- no other text and explanation should be in your comment, just the number of addition, deletions and total that you have assessed \n- you assessment comment should also not include any of your tips or other sections \n- do NOT tag me or anyone else on your comment" + body: process.env.INSTRUCTIONS }) diff --git a/instructions.txt b/instructions.txt new file mode 100644 index 0000000..0d38add --- /dev/null +++ b/instructions.txt @@ -0,0 +1,8 @@ +@coderabbitai assess this PR size (PR diff) for the totality of the PR with the following criterias and report it in your comment: +- the assessment must be for the totality of the PR, that means comparing the base branch to the last commit of the PR +- only include the relevant and main source files and changes in your assessment, for example changes in generated files such as lock files should be excluded +- the assessment should be in the format of: ADDITIONS=number DELETIONS=number TOTAL=number , where TOTAL is sum of ADDITIONS and DELETIONS +- the PR size is for the most part the same as the PR diff, but excluding the changes in irrevelant file, the ones that explained earlier +- no other text and explanation should be in your comment, just the number of additions, deletions and total that you have assessed +- you assessment comment should also not include any of your tips or other sections +- do NOT tag me or anyone else on your comment \ No newline at end of file From 0c542364a4a66482ed176f5de95aded1b31e9322 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 06:13:47 +0000 Subject: [PATCH 37/41] Update chore.yml --- .github/workflows/chore.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index dcd04ae..8f269bf 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -10,6 +10,7 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - name: Read Instructions run: echo "INSTRUCTIONS=$(cat ./instructions.txt)" >> $GITHUB_ENV - name: Comment on the PR From d352e7c663eb8ba6a37485742e9bc44c220c98a4 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 06:18:24 +0000 Subject: [PATCH 38/41] Update chore.yml --- .github/workflows/chore.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 8f269bf..5d0e730 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -11,15 +11,14 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Read Instructions - run: echo "INSTRUCTIONS=$(cat ./instructions.txt)" >> $GITHUB_ENV - name: Comment on the PR uses: actions/github-script@v7 with: script: | + const body = fs.readFileSync('instructions.txt', 'utf8'); github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: process.env.INSTRUCTIONS + body }) From b8039a333e6404fa49cafd996b0909c2afbc3b79 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 06:19:39 +0000 Subject: [PATCH 39/41] Update chore.yml --- .github/workflows/chore.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/chore.yml b/.github/workflows/chore.yml index 5d0e730..7d4476b 100644 --- a/.github/workflows/chore.yml +++ b/.github/workflows/chore.yml @@ -15,6 +15,7 @@ jobs: uses: actions/github-script@v7 with: script: | + const fs = require('fs'); const body = fs.readFileSync('instructions.txt', 'utf8'); github.rest.issues.createComment({ issue_number: context.issue.number, From dc0e24e1490e4c854082ae6dea08d78c36abe3a9 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 06:22:48 +0000 Subject: [PATCH 40/41] Update instructions.txt --- instructions.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/instructions.txt b/instructions.txt index 0d38add..159ed08 100644 --- a/instructions.txt +++ b/instructions.txt @@ -1,8 +1,9 @@ -@coderabbitai assess this PR size (PR diff) for the totality of the PR with the following criterias and report it in your comment: +@coderabbitai assess this PR size (PR diff) for the totality of the PR with the following criterias and report it in your comment: + - the assessment must be for the totality of the PR, that means comparing the base branch to the last commit of the PR - only include the relevant and main source files and changes in your assessment, for example changes in generated files such as lock files should be excluded - the assessment should be in the format of: ADDITIONS=number DELETIONS=number TOTAL=number , where TOTAL is sum of ADDITIONS and DELETIONS -- the PR size is for the most part the same as the PR diff, but excluding the changes in irrevelant file, the ones that explained earlier +- the PR size is for the most part the same as the PR diff, but excluding the changes in irrevelant files that were explained earlier - no other text and explanation should be in your comment, just the number of additions, deletions and total that you have assessed - you assessment comment should also not include any of your tips or other sections - do NOT tag me or anyone else on your comment \ No newline at end of file From ffbce951c8d0fab77fb0390ccdd39a4222ec11fe Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Mon, 30 Jun 2025 06:30:44 +0000 Subject: [PATCH 41/41] Update instructions.txt --- instructions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instructions.txt b/instructions.txt index 159ed08..d3571be 100644 --- a/instructions.txt +++ b/instructions.txt @@ -3,7 +3,7 @@ - the assessment must be for the totality of the PR, that means comparing the base branch to the last commit of the PR - only include the relevant and main source files and changes in your assessment, for example changes in generated files such as lock files should be excluded - the assessment should be in the format of: ADDITIONS=number DELETIONS=number TOTAL=number , where TOTAL is sum of ADDITIONS and DELETIONS -- the PR size is for the most part the same as the PR diff, but excluding the changes in irrevelant files that were explained earlier +- the PR size is for the most part the same as the PR diff, but excluding the diff of irrevelant files that were explained earlier - no other text and explanation should be in your comment, just the number of additions, deletions and total that you have assessed - you assessment comment should also not include any of your tips or other sections - do NOT tag me or anyone else on your comment \ No newline at end of file