Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 25, 2024
1 parent eb67ae9 commit df991e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ee/tabby-schema/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ input EmailSettingInput {

input MessageAttachmentCodeInput {
filepath: String
startLine: Int
"When start line is `None`, it represents the entire file." startLine: Int
content: String!
}

Expand Down Expand Up @@ -498,10 +498,12 @@ type MessageAttachmentClientCode {

type MessageAttachmentCode {
gitUrl: String!
commit: String
filepath: String!
language: String!
content: String!
startLine: Int!
"When start line is `None`, it represents the entire file."
startLine: Int
}

type MessageAttachmentCodeScores {
Expand Down
4 changes: 3 additions & 1 deletion ee/tabby-schema/src/schema/thread/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ pub struct MessageAttachmentClientCode {
#[derive(GraphQLObject, Clone)]
pub struct MessageAttachmentCode {
pub git_url: String,
pub commit: Option<String>,
pub filepath: String,
pub language: String,
pub content: String,
Expand All @@ -85,10 +86,11 @@ impl From<CodeSearchDocument> for MessageAttachmentCode {
fn from(doc: CodeSearchDocument) -> Self {
Self {
git_url: doc.git_url,
commit: doc.commit,

Check warning on line 89 in ee/tabby-schema/src/schema/thread/types.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-schema/src/schema/thread/types.rs#L89

Added line #L89 was not covered by tests
filepath: doc.filepath,
language: doc.language,
content: doc.body,
start_line: doc.start_line.map(|x| x as i32)
start_line: doc.start_line.map(|x| x as i32),

Check warning on line 93 in ee/tabby-schema/src/schema/thread/types.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-schema/src/schema/thread/types.rs#L93

Added line #L93 was not covered by tests
}
}
}
Expand Down

0 comments on commit df991e6

Please sign in to comment.