Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add skip key words for the pull request handler and issue handler #601

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

xingwanying
Copy link
Contributor

close #599
close #569

Copy link

vercel bot commented Dec 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2024 9:35am

Copy link

Walkthrough

This pull request introduces a mechanism to skip certain tasks in the pull request and issue handlers by adding a list of skip keywords. If any of these keywords are present in the PR title or description, the corresponding task will be skipped. This change aims to improve the efficiency of handling PRs and issues by avoiding unnecessary processing.

Changes

File Summary
server/agent/prompts/pull_request.py Added a skip task whitelist with keywords to skip tasks based on PR title or description.
server/event_handler/discussion.py Integrated fuzzy keyword matching to skip discussions based on title.
server/event_handler/issue.py Integrated fuzzy keyword matching to skip issues based on title.
server/event_handler/pull_request.py Integrated fuzzy keyword matching to skip pull requests based on title.
server/utils/fuzzy_match.py Added a utility function for fuzzy keyword matching.

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

Attention: Patch coverage is 20.00000% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
server/event_handler/discussion.py 0.00% 4 Missing ⚠️
server/event_handler/pull_request.py 20.00% 4 Missing ⚠️
Files with missing lines Coverage Δ
server/agent/prompts/pull_request.py 66.66% <ø> (ø)
server/event_handler/issue.py 29.41% <100.00%> (ø)
server/event_handler/discussion.py 21.00% <0.00%> (ø)
server/event_handler/pull_request.py 36.36% <20.00%> (ø)

... and 2 files with indirect coverage changes

@xingwanying xingwanying merged commit 6b31767 into main Dec 20, 2024
4 of 5 checks passed
@xingwanying xingwanying deleted the feat_skip_git_action branch December 20, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

branch merge 跳过cr RFC 相关的讨论不需要回复
1 participant