-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Automate spam issue detection #11316
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c7c6892
ci: add spam issue detection scripts
babakks 43e1634
ci: add spam issue detection workflow
babakks e90336a
ci: remove unused env vars
babakks 1447400
ci: use `issue.html_url` instead of `issue.url`
babakks 7996a6c
ci: fix potentially confusing typo in system prompt
babakks 9aae4a5
docs: fix typo in script docs
babakks 1779103
ci: correct `sed` usage to remove Markdown front matter
babakks 6a5fbdd
ci: add `models: read` permission
babakks 8a235ec
ci: echo spam detection result
babakks 8610d8b
First pass to optimize and improve
andyfeller 03cc1d8
Remove unnecessary file for heredoc
andyfeller f7448c1
Update eval script comments
andyfeller 0c105af
Use gh go templating for user prompt
andyfeller aa955e1
Update .github/workflows/scripts/spam-detection/generate-sys-prompt.sh
andyfeller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
First pass to optimize and improve
- Loading branch information
commit 8610d8ba8acf261143029969a9001b1d1396a29b
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
.github/workflows/scripts/spam-detection/check-issue-prompts.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: Detect spam | ||
model: openai/gpt-4o-mini | ||
messages: | ||
- role: system | ||
content: "" # Since it's not a fix value, it should be generated and replaced at runtime | ||
- role: user | ||
content: "" # This will be replaced at runtime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.