Skip to content

Commit 0cc2b06

Browse files
authored
Revert "Fix git sync export showing no commit message for computed revisions (#1178) (#1180)
* Revert "Fix git sync export showing no commit message for computed revisions (#1178)" This reverts commit e0de4e2. * Add changeset
1 parent e0de4e2 commit 0cc2b06

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
'@gitbook/integration-gitlab': patch
44
---
55

6-
Fix git sync export showing no commit message for computed revisions
6+
Revert previous gitsync integration changes

integrations/github/src/sync.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@ export async function triggerExport(
141141

142142
logger.info(`Initiating an export from space ${spaceId} to GitHub`);
143143

144-
// We only need the source revision here so mergedFrom is preserved for the export commit
145-
// message. Computed revision details are not needed here because the runner git sync
146-
// computes the revision anyway.
147-
const { data: revision } = await api.spaces.getCurrentRevision(spaceId, { computed: false });
144+
const { data: revision } = await api.spaces.getCurrentRevision(spaceId);
148145

149146
const auth = await getRepositoryAuth(context, config, false);
150147
const repoTreeURL = getGitTreeURL(config);

integrations/gitlab/src/sync.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ export async function triggerExport(
134134

135135
logger.info(`Initiating an export from space ${spaceId} to GitLab`);
136136

137-
// We only need the source revision here so mergedFrom is preserved for the export commit
138-
// message. Computed revision details are not needed here because the runner git sync
139-
// computes the revision anyway.
140-
const { data: revision } = await api.spaces.getCurrentRevision(spaceId, { computed: false });
137+
const { data: revision } = await api.spaces.getCurrentRevision(spaceId);
141138

142139
const auth = await getRepositoryAuth(config);
143140
const repoTreeURL = getGitTreeURL(config);

0 commit comments

Comments
 (0)