Skip to content

Commit b2f5797

Browse files
reverted back to original changes
1 parent 1bc9e41 commit b2f5797

1 file changed

Lines changed: 3 additions & 20 deletions

File tree

scripts/release-make-it-native.mjs

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -130,29 +130,12 @@ async function cloneDocsRepo() {
130130

131131
process.chdir(DOCS_REPO_NAME);
132132

133-
// Re-initialize simpleGit after chdir so it operates inside the cloned repo.
134-
const repoGit = simpleGit();
135-
136-
await repoGit.addConfig("user.name", GIT_AUTHOR_NAME, false, "global");
137-
await repoGit.addConfig("user.email", GIT_AUTHOR_EMAIL, false, "global");
138-
}
139-
140-
async function getUpstreamDevelopmentSha() {
141-
// Use the GitHub API to get the latest commit SHA of mendix/docs:development.
142-
// This lets us branch from the exact upstream state without needing direct clone access,
143-
// avoiding fork-only commits (e.g., sync.yml) from appearing in the PR.
144-
const { data: branch } = await octokit.repos.getBranch({
145-
owner: DOCS_UPSTREAM_OWNER,
146-
repo: DOCS_REPO_NAME,
147-
branch: "development",
148-
});
149-
console.log(`Branching from upstream development SHA: ${branch.commit.sha}`);
150-
return branch.commit.sha;
133+
await git.addConfig("user.name", GIT_AUTHOR_NAME, false, "global");
134+
await git.addConfig("user.email", GIT_AUTHOR_EMAIL, false, "global");
151135
}
152136

153137
async function checkoutLocalBranch(git) {
154-
const upstreamSha = await getUpstreamDevelopmentSha();
155-
await git.checkout(["-b", DOCS_BRANCH_NAME, upstreamSha]);
138+
await git.checkoutLocalBranch(DOCS_BRANCH_NAME);
156139
}
157140

158141
async function updateDocsMiNReleaseNotes(unreleasedContent) {

0 commit comments

Comments
 (0)