mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-02-22 17:10:27 +00:00
Added support for review_requested hook
This commit is contained in:
parent
a9a064dfa1
commit
1961761a90
2 changed files with 7 additions and 0 deletions
|
@ -29,6 +29,7 @@ on:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
- synchronize
|
- synchronize
|
||||||
|
- review_requested
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
jobs:
|
jobs:
|
||||||
review:
|
review:
|
||||||
|
|
|
@ -194,6 +194,12 @@ async function main() {
|
||||||
prDetails.repo,
|
prDetails.repo,
|
||||||
prDetails.pull_number
|
prDetails.pull_number
|
||||||
);
|
);
|
||||||
|
} else if (eventData.action === "review_requested") {
|
||||||
|
diff = await getDiff(
|
||||||
|
prDetails.owner,
|
||||||
|
prDetails.repo,
|
||||||
|
prDetails.pull_number
|
||||||
|
);
|
||||||
} else if (eventData.action === "synchronize") {
|
} else if (eventData.action === "synchronize") {
|
||||||
const newBaseSha = eventData.before;
|
const newBaseSha = eventData.before;
|
||||||
const newHeadSha = eventData.after;
|
const newHeadSha = eventData.after;
|
||||||
|
|
Loading…
Add table
Reference in a new issue