Skip to content

Commit

Permalink
update repo name in code (#163)
Browse files Browse the repository at this point in the history
* update repo name in code

* Trigger build
  • Loading branch information
mongodben authored Sep 18, 2023
1 parent 5ad9cd0 commit f9628bb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ steps:
- name: promote-staging-chat-server
image: drone/cli:1.4.0-alpine
commands:
- drone build promote mongodb/docs-chatbot ${DRONE_BUILD_NUMBER} staging
- drone build promote mongodb/chatbot ${DRONE_BUILD_NUMBER} staging
environment:
DRONE_SERVER: ${DRONE_SYSTEM_PROTO}://${DRONE_SYSTEM_HOST}
DRONE_TOKEN:
Expand Down Expand Up @@ -191,7 +191,7 @@ steps:
- name: promote-qa-chat-server
image: drone/cli:1.4.0-alpine
commands:
- drone build promote mongodb/docs-chatbot ${DRONE_BUILD_NUMBER} staging
- drone build promote mongodb/chatbot ${DRONE_BUILD_NUMBER} staging
environment:
DRONE_SERVER: ${DRONE_SYSTEM_PROTO}://${DRONE_SYSTEM_HOST}
DRONE_TOKEN:
Expand Down Expand Up @@ -271,7 +271,7 @@ steps:
- name: promote-production-chat-server
image: drone/cli:1.4.0-alpine
commands:
- drone build promote mongodb/docs-chatbot ${DRONE_BUILD_NUMBER} production
- drone build promote mongodb/chatbot ${DRONE_BUILD_NUMBER} production
environment:
DRONE_SERVER: ${DRONE_SYSTEM_PROTO}://${DRONE_SYSTEM_HOST}
DRONE_TOKEN:
Expand Down Expand Up @@ -358,7 +358,7 @@ steps:
- name: promote-staging-ingest-service
image: drone/cli:1.4.0-alpine
commands:
- drone build promote mongodb/docs-chatbot ${DRONE_BUILD_NUMBER} staging
- drone build promote mongodb/chatbot ${DRONE_BUILD_NUMBER} staging
environment:
DRONE_SERVER: ${DRONE_SYSTEM_PROTO}://${DRONE_SYSTEM_HOST}
DRONE_TOKEN:
Expand Down Expand Up @@ -443,7 +443,7 @@ steps:
- name: promote-production-ingest-service
image: drone/cli:1.4.0-alpine
commands:
- drone build promote mongodb/docs-chatbot ${DRONE_BUILD_NUMBER} production
- drone build promote mongodb/chatbot ${DRONE_BUILD_NUMBER} production
environment:
DRONE_SERVER: ${DRONE_SYSTEM_PROTO}://${DRONE_SYSTEM_HOST}
DRONE_TOKEN:
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ production.
To publish to QA:

1. Check out the `qa` branch and pull any upstream changes. Here, `upstream` is
the name of the `mongodb/docs-chatbot` remote repo.
the name of the `mongodb/chatbot` remote repo.

```sh
git fetch upstream
Expand Down Expand Up @@ -195,7 +195,7 @@ To create a new production release:

4. Once the PR is approved and merged, publish the draft release. You can find
the release draft in the draft tag:
<https://github.com/mongodb/docs-chatbot/releases>.
<https://github.com/mongodb/chatbot/releases>.

When the release is published, the Drone CI picks up the corresponding git tag
and then automatically builds and deploys the branch to production.
Expand Down
Empty file added chat-server/trigger.me
Empty file.
14 changes: 6 additions & 8 deletions chat-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { canUseServerSentEvents } from "./utils";
import { Overline, Link } from "@leafygreen-ui/typography";
import Toggle from "@leafygreen-ui/toggle";

const prefersDarkMode = () => window.matchMedia?.('(prefers-color-scheme: dark)').matches ?? false;
const prefersDarkMode = () =>
window.matchMedia?.("(prefers-color-scheme: dark)").matches ?? false;

function App() {
const [shouldStream, setShouldStream] = useState(canUseServerSentEvents());
Expand Down Expand Up @@ -55,11 +56,7 @@ function App() {
}

function Controls(props: { children: React.ReactNode }) {
return (
<div className={styles.controls_container}>
{props.children}
</div>
)
return <div className={styles.controls_container}>{props.children}</div>;
}

type ToggleControlProps = {
Expand All @@ -71,7 +68,8 @@ type ToggleControlProps = {
};

function ToggleControl(props: ToggleControlProps) {
const { contextDarkMode: darkMode = props.darkMode ?? false } = useDarkModeContext();
const { contextDarkMode: darkMode = props.darkMode ?? false } =
useDarkModeContext();
const label = `${props.labelId}-toggle-control-label`;
return (
<div className={styles.streaming_toggle}>
Expand Down Expand Up @@ -113,7 +111,7 @@ function GitCommitLink() {
Git commit:{" "}
<Link
hideExternalIcon
href={`https://github.com/mongodb/docs-chatbot/commit/${VITE_GIT_COMMIT}`}
href={`https://github.com/mongodb/chatbot/commit/${VITE_GIT_COMMIT}`}
>
<Overline style={{ color }}>{VITE_GIT_COMMIT}</Overline>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion ingest/src/projectSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ const cppSourceConstructor = async () => {

export const mongoDbCorpDataSourceConfig: MakeMdOnGithubDataSourceParams = {
name: "mongodb-corp",
repoUrl: "https://github.com/mongodb/docs-chatbot/",
repoUrl: "https://github.com/mongodb/chatbot/",
repoLoaderOptions: {
branch: "main",
ignoreFiles: [/^(?!^mongodb-corp\/).*/, /^(mongodb-corp\/README\.md)$/],
Expand Down

0 comments on commit f9628bb

Please sign in to comment.