-
Notifications
You must be signed in to change notification settings - Fork 1k
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(ui): fill repository context into chat sidebar. #1950
Conversation
acf2b09
to
b1c0104
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1950 +/- ##
==========================================
- Coverage 57.01% 56.91% -0.10%
==========================================
Files 136 136
Lines 12376 12401 +25
==========================================
+ Hits 7056 7058 +2
- Misses 5320 5343 +23 ☔ View full report in Codecov by Sentry. |
15aa0c6
to
ecd7db7
Compare
const numLines = doc.body.split(/\r\n|\r|\n/).length | ||
const fromLine = doc.start_line | ||
const toLine = doc.start_line + numLines - 1 | ||
const reference = `\`\`\`${language} is_reference=1 path=${repo}/${doc.filepath} line_from=${fromLine} line_to=${toLine} |
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.
const reference = `\`\`\`${language} is_reference=1 path=${repo}/${doc.filepath} line_from=${fromLine} line_to=${toLine} | |
const reference = `\`\`\`${language} reference_group=1 path=${repo}/${doc.filepath} line_from=${fromLine} line_to=${toLine} |
2a369b9
to
380720f
Compare
|
||
const tokens = code.split(/[^\w]/).filter(x => x) | ||
|
||
// FIXME(jueliang): restrict query with `git_url` of `repo`. |
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.
@liangfung as we have git_url
from repositoryList
, please fill it in a query like
git_url:${gitUrl}
, and append it to AND ${gitUrlQuery}
No description provided.