-
Notifications
You must be signed in to change notification settings - Fork 58
Add issue assistant workflow for automated triage #138
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
Conversation
Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Refactor wiki integration and AI response handling in issue assistant workflow. Improved logging and error handling. Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
|
@microsoft-github-policy-service agree |
|
@chrisnielsen-MS, lets wait on this one, I need to add all the secrets that workflow in PR is relies on. Also, workflow will use cheapest model GPT-4.1 that is literally free for us 0x usage on tokens, it is enough for us. |
This workflow refreshes the wiki cache daily and allows manual triggering. It clones the wiki repository, builds a context file from various markdown files, and commits changes if there are updates. Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Implement security validation module for MSDO Issue Assistant, including prompt injection detection, suspicious content detection, rate limiting, and input sanitization. Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Updated issue assistant workflow to include bot-loop protection and improved error handling for API calls. Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Adds an automated issue-triage assistant workflow that uses GitHub Models, with a companion workflow to cache wiki content into the repo for retrieval during triage.
Changes:
- Add
issue-assistant.ymlworkflow to validate issue/comment input and post an AI-assisted triage comment. - Add
refresh-wiki-cache.ymlworkflow to build and commit a cached.github/wiki-context.mdfrom the repo wiki. - Add
.github/issue-assistant/src/security.jsmodule implementing prompt-injection detection, sanitization, and rate limiting.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 10 comments.
| File | Description |
|---|---|
.github/workflows/refresh-wiki-cache.yml |
Scheduled/manual workflow to clone the repo wiki, generate .github/wiki-context.md, and commit it back to the repo. |
.github/workflows/issue-assistant.yml |
Issue/issue_comment workflow that loads the cached wiki context, calls GitHub Models, validates the response, and posts a comment. |
.github/issue-assistant/src/security.js |
Shared security/validation logic used by the issue assistant workflow (sanitization, injection detection, rate limiting, issue type detection). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
chrisnielsen-MS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks exciting! The AI made some good suggestions for making some specific scripts more robust, those look worth following up on. I also left a comment about the inline comments becoming a little messy mixing together comments that explain logic with comments that are explaining fixes applied to the logic -- the metadata about what was fixed/changed should probably be removed.
Removed extensive comments and added safety measures for regex flags. Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
Added security validation module documentation and design overview. Signed-off-by: Dima Birenbaum <dvlasenko86@gmail.com>
No description provided.