Skip to content

Commit feecd27

Browse files
authored
Merge pull request #6995 from Shopify/add-doc-script-stable
Add doc script stable
2 parents a31090d + 4a88c87 commit feecd27

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

bin/create-doc-pr.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
#!/usr/bin/env node
21

3-
import * as path from "pathe"
42
import {fileURLToPath} from "node:url"
53
import {createRequire} from 'node:module'
4+
5+
import * as path from "pathe"
66
import {findUp} from "find-up"
7+
78
import {withOctokit} from './github-utils.js'
89

910
const require = createRequire(import.meta.url)
@@ -22,11 +23,11 @@ async function createPR() {
2223
files[`areas/platforms/shopify-dev/db/data/docs/templated_apis/shopify_cli/${fileName}`] = (await readFile(path.join(generatedDirectory, fileName))).toString()
2324
}
2425

25-
await withOctokit("shopify", async (octokit) => {
26+
await withOctokit("shop", async (octokit) => {
2627
const response = await octokit
2728
.createPullRequest({
28-
owner: "shopify",
29-
repo: "shopify-dev",
29+
owner: "shop",
30+
repo: "world",
3031
title: `[CLI] Update docs for version: ${version}`,
3132
body: `We are updating the CLI documentation with the contents of the recently released version of the Shopify CLI [${version}](https://www.npmjs.com/package/@shopify/cli/v/${version})`,
3233
head: `shopify-cli-${version}`,
@@ -43,7 +44,7 @@ async function createPR() {
4344
})
4445

4546
if (response) {
46-
console.log(`PR URL: https://github.com/shopify/shopify-dev/pull/${response.data.number}`)
47+
console.log(`PR URL: https://github.com/shop/world/pull/${response.data.number}`)
4748
} else {
4849
console.log("No changes detected, PR not created.")
4950
}

0 commit comments

Comments
 (0)