Skip to content

Commit aa9765e

Browse files
committed
fix repo name
1 parent 26ee8ad commit aa9765e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

scripts/generateJsonSchema.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const octokit = new Octokit({ auth });
3434

3535
export const fetchFileFromRepo = async ({
3636
owner = "goodrxoss",
37-
repo = "temp-lifecycle-core",
37+
repo = "lifecycle-core",
3838
path = "docs/schema/yaml/2.3.0.yaml",
3939
branch = "main",
4040
debug = false,
@@ -85,7 +85,7 @@ export const convertYamlToJson = <T = Record<string, unknown>>(
8585
export const syncYamlFile = async (options: SyncOptions) => {
8686
const {
8787
owner = "goodrxoss",
88-
repo = "temp-lifecycle-core",
88+
repo = "lifecycle-core",
8989
// docs/schema/yaml/2.3.0.yaml
9090
path = "docs/schema/yaml/2.3.0.yaml",
9191
dest = "src/lib/data/lifecycle-schema",
@@ -126,14 +126,14 @@ export const syncYamlFile = async (options: SyncOptions) => {
126126
const program = new Command();
127127

128128
program
129-
.option("-r, --repo <repo>", "Source repository name", "temp-lifecycle-core")
129+
.option("-r, --repo <repo>", "Source repository name", "lifecycle-core")
130130
.option("-p, --path <path>", "Path to YAML file in source repo")
131131
.option(
132132
"-d, --dest <dest>",
133133
"Path to store YAML and JSON files locally",
134134
"src/lib/data/lifecycle-schema",
135135
)
136-
.option("-n, --name <name>", "Base name for output files", "temp-lifecycle-core") // New option for output file naming
136+
.option("-n, --name <name>", "Base name for output files", "lifecycle-core") // New option for output file naming
137137
.option("-o, --owner <owner>", "GitHub owner or organization", "goodrxoss")
138138
.option("-b, --branch <branch>", "GitHub branch to fetch from", "main")
139139
.option("--debug", "Enable debug logging", false);

scripts/syncDocDates.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const updateFrontmatter = async (
5454
export const getLatestCommitsForFiles = async ({
5555
files,
5656
owner = "goodrxoss",
57-
repo = "temp-lifecycle-docs",
57+
repo = "lifecycle-docs",
5858
}): Promise<FileCommit[]> => {
5959
const limit = pLimit(10);
6060
try {
@@ -99,7 +99,7 @@ export const getLatestCommitsForFiles = async ({
9999
export const syncDocDatesAction = async ({
100100
files,
101101
owner = "goodrxoss",
102-
repo = "temp-lifecycle-docs",
102+
repo = "lifecycle-docs",
103103
}: SyncDocDatesActionOptions): Promise<void> => {
104104
const resolvedFiles = await fg(files);
105105
if (resolvedFiles.length === 0) {
@@ -123,7 +123,7 @@ const program = new Command();
123123
program
124124
.description("Update .mdx frontmatter with the latest Git commit date.")
125125
.option("-o, --owner <owner>", "GitHub repository owner", "goodrxoss")
126-
.option("-r, --repo <repo>", "GitHub repository name", "temp-lifecycle-docs")
126+
.option("-r, --repo <repo>", "GitHub repository name", "lifecycle-docs")
127127
.arguments("<files...>")
128128
.action((files: string[], options: ActionOptions) =>
129129
syncDocDatesAction({ ...options, files }),

0 commit comments

Comments
 (0)