mirror of
https://github.com/hustcer/deepseek-review.git
synced 2026-05-13 05:16:05 +08:00
[RR] Add Trigger for Skipping CR (#199)
* new constants and check * Update * Delete comments
This commit is contained in:
@@ -80,6 +80,13 @@ def get-pr-diff [
|
|||||||
exit $ECODE.SUCCESS
|
exit $ECODE.SUCCESS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let commit_msg = http get -H $BASE_HEADER $'($GITHUB_API_BASE)/repos/($repo)/pulls/($pr_number)/commits'
|
||||||
|
| last | get commit.message
|
||||||
|
if ($IGNORE_REVIEW_KEYWORDS | any {|it| $commit_msg =~ $it }) {
|
||||||
|
print $'(ansi r)The latest PR commit message contains keywords to skip the review, bye...(ansi reset)'
|
||||||
|
exit $ECODE.SUCCESS
|
||||||
|
}
|
||||||
|
|
||||||
# Get the diff content of the PR
|
# Get the diff content of the PR
|
||||||
http get -H $DIFF_HEADER $'($GITHUB_API_BASE)/repos/($repo)/pulls/($pr_number)' | str trim
|
http get -H $DIFF_HEADER $'($GITHUB_API_BASE)/repos/($repo)/pulls/($pr_number)' | str trim
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user