@rallycry/conveyor-agent 8.10.0 → 8.12.0
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.
- package/dist/{chunk-D7JSB2IF.js → chunk-FSUVTOFP.js} +27 -19
- package/dist/chunk-FSUVTOFP.js.map +1 -0
- package/dist/cli.js +106 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-D7JSB2IF.js.map +0 -1
|
@@ -1141,9 +1141,10 @@ function stageAndCommit(cwd, message) {
|
|
|
1141
1141
|
return null;
|
|
1142
1142
|
}
|
|
1143
1143
|
}
|
|
1144
|
-
function tryPush(cwd, branch) {
|
|
1144
|
+
function tryPush(cwd, branch, skipVerify = false) {
|
|
1145
|
+
const noVerify = skipVerify ? "--no-verify " : "";
|
|
1145
1146
|
try {
|
|
1146
|
-
execSync(`git push origin ${branch}`, {
|
|
1147
|
+
execSync(`git push ${noVerify}origin ${branch}`, {
|
|
1147
1148
|
cwd,
|
|
1148
1149
|
stdio: ["ignore", "pipe", "pipe"],
|
|
1149
1150
|
timeout: 3e4
|
|
@@ -1151,7 +1152,7 @@ function tryPush(cwd, branch) {
|
|
|
1151
1152
|
return true;
|
|
1152
1153
|
} catch {
|
|
1153
1154
|
try {
|
|
1154
|
-
execSync(`git push --force-with-lease origin ${branch}`, {
|
|
1155
|
+
execSync(`git push ${noVerify}--force-with-lease origin ${branch}`, {
|
|
1155
1156
|
cwd,
|
|
1156
1157
|
stdio: ["ignore", "pipe", "pipe"],
|
|
1157
1158
|
timeout: 3e4
|
|
@@ -1211,7 +1212,7 @@ function createWipSnapshot(cwd, message) {
|
|
|
1211
1212
|
}
|
|
1212
1213
|
function tryPushRefspec(cwd, refspec, force = false) {
|
|
1213
1214
|
try {
|
|
1214
|
-
execSync(`git push ${force ? "--force " : ""}origin ${JSON.stringify(refspec)}`, {
|
|
1215
|
+
execSync(`git push --no-verify ${force ? "--force " : ""}origin ${JSON.stringify(refspec)}`, {
|
|
1215
1216
|
cwd,
|
|
1216
1217
|
stdio: ["ignore", "pipe", "pipe"],
|
|
1217
1218
|
timeout: 3e4
|
|
@@ -1300,7 +1301,7 @@ async function dropStaleWipRef(cwd, branch, refreshToken) {
|
|
|
1300
1301
|
wipRefPushed.delete(cwd);
|
|
1301
1302
|
}
|
|
1302
1303
|
}
|
|
1303
|
-
async function pushToOrigin(cwd, refreshToken) {
|
|
1304
|
+
async function pushToOrigin(cwd, refreshToken, skipVerify = false) {
|
|
1304
1305
|
try {
|
|
1305
1306
|
const currentBranch = getCurrentBranch(cwd);
|
|
1306
1307
|
if (!currentBranch) return false;
|
|
@@ -1315,14 +1316,14 @@ async function pushToOrigin(cwd, refreshToken) {
|
|
|
1315
1316
|
} catch {
|
|
1316
1317
|
}
|
|
1317
1318
|
}
|
|
1318
|
-
if (tryPush(cwd, currentBranch)) return true;
|
|
1319
|
+
if (tryPush(cwd, currentBranch, skipVerify)) return true;
|
|
1319
1320
|
if (refreshToken && isAuthError(cwd)) {
|
|
1320
1321
|
const token = await refreshToken();
|
|
1321
1322
|
if (token) {
|
|
1322
1323
|
updateRemoteToken(cwd, token);
|
|
1323
1324
|
process.env.GITHUB_TOKEN = token;
|
|
1324
1325
|
process.env.GH_TOKEN = token;
|
|
1325
|
-
return tryPush(cwd, currentBranch);
|
|
1326
|
+
return tryPush(cwd, currentBranch, skipVerify);
|
|
1326
1327
|
}
|
|
1327
1328
|
}
|
|
1328
1329
|
return false;
|
|
@@ -3887,9 +3888,12 @@ function buildCreatePullRequestTool(connection, config) {
|
|
|
3887
3888
|
),
|
|
3888
3889
|
commitMessage: z6.string().optional().describe(
|
|
3889
3890
|
"Commit message for staging uncommitted changes. If not provided, a default message based on the PR title will be used."
|
|
3891
|
+
),
|
|
3892
|
+
skipVerify: z6.boolean().optional().describe(
|
|
3893
|
+
"Pass --no-verify to the git push, bypassing the local pre-push quality gate (lint/typecheck/test). Use this if a previous attempt failed on the pre-push hook in an environment where you've already run the gates yourself \u2014 CI still runs on the resulting PR."
|
|
3890
3894
|
)
|
|
3891
3895
|
},
|
|
3892
|
-
async ({ title, body, branch, baseBranch, commitMessage }) => {
|
|
3896
|
+
async ({ title, body, branch, baseBranch, commitMessage, skipVerify }) => {
|
|
3893
3897
|
try {
|
|
3894
3898
|
const cwd = config.workspaceDir;
|
|
3895
3899
|
if (hasUncommittedChanges(cwd)) {
|
|
@@ -3909,16 +3913,20 @@ Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>`;
|
|
|
3909
3913
|
}
|
|
3910
3914
|
}
|
|
3911
3915
|
if (hasUnpushedCommits(cwd)) {
|
|
3912
|
-
const pushSuccess = await pushToOrigin(
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3916
|
+
const pushSuccess = await pushToOrigin(
|
|
3917
|
+
cwd,
|
|
3918
|
+
async () => {
|
|
3919
|
+
try {
|
|
3920
|
+
const result2 = await connection.call("refreshGithubToken", {
|
|
3921
|
+
sessionId: connection.sessionId
|
|
3922
|
+
});
|
|
3923
|
+
return result2.token;
|
|
3924
|
+
} catch {
|
|
3925
|
+
return void 0;
|
|
3926
|
+
}
|
|
3927
|
+
},
|
|
3928
|
+
skipVerify ?? false
|
|
3929
|
+
);
|
|
3922
3930
|
if (pushSuccess) {
|
|
3923
3931
|
connection.sendEvent({
|
|
3924
3932
|
type: "message",
|
|
@@ -10794,4 +10802,4 @@ export {
|
|
|
10794
10802
|
loadConveyorConfig,
|
|
10795
10803
|
unshallowRepo
|
|
10796
10804
|
};
|
|
10797
|
-
//# sourceMappingURL=chunk-
|
|
10805
|
+
//# sourceMappingURL=chunk-FSUVTOFP.js.map
|