Compare commits

...

1 Commits

Author SHA1 Message Date
Colin McDonnell b833cdd4af 0.0.141 2025-12-15 23:22:30 -08:00
4 changed files with 9 additions and 5 deletions
+3 -3
View File
@@ -83327,7 +83327,7 @@ function query({
// package.json
var package_default = {
name: "@pullfrog/action",
version: "0.0.140",
version: "0.0.141",
type: "module",
files: [
"index.js",
@@ -123871,10 +123871,10 @@ function setupGit(ctx) {
} catch {
log.debug("No existing authentication headers to remove");
}
process.env.GH_TOKEN = githubInstallationToken2;
$("git", ["config", "--local", "credential.helper", ""], { cwd: repoDir });
$("git", ["config", "--local", "--add", "credential.helper", "!gh auth git-credential"], {
cwd: repoDir,
env: { GH_TOKEN: githubInstallationToken2 }
cwd: repoDir
});
log.info("\u2713 Configured gh as credential helper");
if (payload.event.is_pr !== true || !payload.event.issue_number) {
+1
View File
@@ -7,6 +7,7 @@ import { execute, tool } from "./shared.ts";
export function CreateBranchTool(ctx: Context) {
const defaultBranch = ctx.repo.default_branch || "main";
const CreateBranch = type({
branchName: type.string.describe(
"The name of the branch to create (e.g., 'pullfrog/123-fix-bug')"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@pullfrog/action",
"version": "0.0.140",
"version": "0.0.141",
"type": "module",
"files": [
"index.js",
+4 -1
View File
@@ -89,11 +89,14 @@ export function setupGit(ctx: Context): SetupGitResult {
log.debug("No existing authentication headers to remove");
}
// set GH_TOKEN in process.env so gh auth git-credential uses the installation token
// (not the default GITHUB_TOKEN which has different permissions)
process.env.GH_TOKEN = githubInstallationToken;
// set up gh as credential helper - this makes git use GH_TOKEN for any remote
$("git", ["config", "--local", "credential.helper", ""], { cwd: repoDir });
$("git", ["config", "--local", "--add", "credential.helper", "!gh auth git-credential"], {
cwd: repoDir,
env: { GH_TOKEN: githubInstallationToken },
});
log.info("✓ Configured gh as credential helper");