Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d9edc82
Update README.md
rouzwelt Jun 30, 2025
08d0e92
Update chore.yml
rouzwelt Jun 30, 2025
11be507
Update chore.yml
rouzwelt Jun 30, 2025
423ed6b
Update chore.yml
rouzwelt Jun 30, 2025
317bf64
Update chore.yml
rouzwelt Jun 30, 2025
66bd702
Update chore.yml
rouzwelt Jun 30, 2025
f72d83c
Update chore.yml
rouzwelt Jun 30, 2025
2b2c534
Update chore.yml
rouzwelt Jun 30, 2025
b32404d
Update chore.yml
rouzwelt Jun 30, 2025
26eaed3
Update chore.yml
rouzwelt Jun 30, 2025
5fad396
Update chore.yml
rouzwelt Jun 30, 2025
4cfb8b0
Update chore.yml
rouzwelt Jun 30, 2025
9f66f52
Update chore.yml
rouzwelt Jun 30, 2025
4a971fc
Update chore.yml
rouzwelt Jun 30, 2025
0cda043
Update chore.yml
rouzwelt Jun 30, 2025
7540eac
Update chore.yml
rouzwelt Jun 30, 2025
314a3a0
Update chore.yml
rouzwelt Jun 30, 2025
59c0d88
Update chore.yml
rouzwelt Jun 30, 2025
c9633b1
Update chore.yml
rouzwelt Jun 30, 2025
14eb2cd
Update chore.yml
rouzwelt Jun 30, 2025
04beb59
Update chore.yml
rouzwelt Jun 30, 2025
1200178
Update chore.yml
rouzwelt Jun 30, 2025
cdf1449
Update chore.yml
rouzwelt Jun 30, 2025
68a84bb
Update chore.yml
rouzwelt Jun 30, 2025
efaf2ba
Update chore.yml
rouzwelt Jun 30, 2025
08706de
Update chore.yml
rouzwelt Jun 30, 2025
3181d10
Update chore.yml
rouzwelt Jun 30, 2025
8bea8b0
Update chore.yml
rouzwelt Jun 30, 2025
7aad67f
Update chore.yml
rouzwelt Jun 30, 2025
ee47f01
Update chore.yml
rouzwelt Jun 30, 2025
36e42a7
Update chore.yml
rouzwelt Jun 30, 2025
37f931b
Update chore.yml
rouzwelt Jun 30, 2025
5513726
Update chore.yml
rouzwelt Jun 30, 2025
4a6b4dc
Update chore.yml
rouzwelt Jun 30, 2025
0a878f4
Update chore.yml
rouzwelt Jun 30, 2025
373b728
update
rouzwelt Jun 30, 2025
0c54236
Update chore.yml
rouzwelt Jun 30, 2025
d352e7c
Update chore.yml
rouzwelt Jun 30, 2025
b8039a3
Update chore.yml
rouzwelt Jun 30, 2025
dc0e24e
Update instructions.txt
rouzwelt Jun 30, 2025
ffbce95
Update instructions.txt
rouzwelt Jun 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/chore.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
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:
- uses: actions/checkout@v4
- name: Comment on the PR
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.payload.pull_request.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"
repo: context.repo.repo,
body
})
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# github-chore
# github-chore

this repo contains chore github actions for rainlanguage org
9 changes: 9 additions & 0 deletions instructions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +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:

- 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 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