@aspruyt/xfg 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -66,7 +66,8 @@ export class GitLabPRStrategy extends BasePRStrategy {
|
|
|
66
66
|
}
|
|
67
67
|
const repoFlag = this.getRepoFlag(repoInfo);
|
|
68
68
|
// Use glab mr list with JSON output for reliable parsing
|
|
69
|
-
|
|
69
|
+
// Note: glab mr list returns open MRs by default (use -c for closed, -M for merged)
|
|
70
|
+
const command = `glab mr list --source-branch ${escapeShellArg(branchName)} -R ${escapeShellArg(repoFlag)} -F json`;
|
|
70
71
|
try {
|
|
71
72
|
const result = await withRetry(() => this.executor.exec(command, workDir), { retries });
|
|
72
73
|
if (!result || result.trim() === "" || result.trim() === "[]") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aspruyt/xfg",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "CLI tool to sync JSON or YAML configuration files across multiple GitHub, Azure DevOps, and GitLab repositories",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"test": "node --import tsx --test src/config.test.ts src/merge.test.ts src/env.test.ts src/repo-detector.test.ts src/pr-creator.test.ts src/git-ops.test.ts src/logger.test.ts src/workspace-utils.test.ts src/strategies/pr-strategy.test.ts src/strategies/github-pr-strategy.test.ts src/strategies/azure-pr-strategy.test.ts src/strategies/gitlab-pr-strategy.test.ts src/repository-processor.test.ts src/retry-utils.test.ts src/command-executor.test.ts src/shell-utils.test.ts src/index.test.ts src/config-formatter.test.ts src/config-validator.test.ts src/config-normalizer.test.ts src/diff-utils.test.ts",
|
|
30
30
|
"test:integration:github": "npm run build && node --import tsx --test src/integration-github.test.ts",
|
|
31
31
|
"test:integration:ado": "npm run build && node --import tsx --test src/integration-ado.test.ts",
|
|
32
|
+
"test:integration:gitlab": "npm run build && node --import tsx --test src/integration-gitlab.test.ts",
|
|
32
33
|
"prepublishOnly": "npm run build"
|
|
33
34
|
},
|
|
34
35
|
"keywords": [
|