mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-11 08:30:51 +02:00
Add new Github fields to FE
This commit is contained in:
parent
f34f373b08
commit
67c26f89e8
@ -190,10 +190,14 @@ const Main = () => {
|
|||||||
repo_name: Yup.string().required(
|
repo_name: Yup.string().required(
|
||||||
"Please enter the name of the repository to index e.g. danswer "
|
"Please enter the name of the repository to index e.g. danswer "
|
||||||
),
|
),
|
||||||
|
include_prs: Yup.boolean().required(),
|
||||||
|
include_issues: Yup.boolean().required(),
|
||||||
})}
|
})}
|
||||||
initialValues={{
|
initialValues={{
|
||||||
repo_owner: "",
|
repo_owner: "",
|
||||||
repo_name: "",
|
repo_name: "",
|
||||||
|
include_prs: true,
|
||||||
|
include_issues: true,
|
||||||
}}
|
}}
|
||||||
refreshFreq={10 * 60} // 10 minutes
|
refreshFreq={10 * 60} // 10 minutes
|
||||||
onSubmit={async (isSuccess, responseJson) => {
|
onSubmit={async (isSuccess, responseJson) => {
|
||||||
|
@ -61,6 +61,8 @@ export interface WebConfig {
|
|||||||
export interface GithubConfig {
|
export interface GithubConfig {
|
||||||
repo_owner: string;
|
repo_owner: string;
|
||||||
repo_name: string;
|
repo_name: string;
|
||||||
|
include_prs: boolean;
|
||||||
|
include_issues: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GoogleDriveConfig {
|
export interface GoogleDriveConfig {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user