fix CI (#111)
This commit is contained in:
committed by
pullfrog[bot]
parent
97001d7d88
commit
4e19178c81
@@ -14,12 +14,15 @@ jobs:
|
|||||||
node-version: "24"
|
node-version: "24"
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
|
|
||||||
- run: pnpm install --frozen-lockfile
|
- run: pnpm install --frozen-lockfile --ignore-scripts
|
||||||
- run: pnpm typecheck
|
- run: pnpm typecheck
|
||||||
- run: pnpm test
|
- run: pnpm test
|
||||||
|
|
||||||
agents:
|
agents:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -31,6 +34,7 @@ jobs:
|
|||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }}
|
CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }}
|
||||||
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
|
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
|
||||||
|
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
@@ -39,5 +43,5 @@ jobs:
|
|||||||
node-version: "24"
|
node-version: "24"
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
|
|
||||||
- run: pnpm install --frozen-lockfile
|
- run: pnpm install --frozen-lockfile --ignore-scripts
|
||||||
- run: pnpm ${{ matrix.test }} ${{ matrix.agent }}
|
- run: pnpm ${{ matrix.test }} ${{ matrix.agent }}
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ Pullfrog is the bridge between your preferred coding agents and GitHub. Use it f
|
|||||||
- **🤙 Issue management** — Via the "issue created" trigger, Pullfrog can automatically respond to common questions, create implementation plans, and link to related issues/PRs. Or (if you're feeling lucky) you can prompt it to immediately attempt a PR addressing new issues.
|
- **🤙 Issue management** — Via the "issue created" trigger, Pullfrog can automatically respond to common questions, create implementation plans, and link to related issues/PRs. Or (if you're feeling lucky) you can prompt it to immediately attempt a PR addressing new issues.
|
||||||
- **Literally whatever** — Want to have the agent automatically add docs to all new PRs? Cut a new release with agent-written notes on every commit to `main`? Pullfrog lets you do it.
|
- **Literally whatever** — Want to have the agent automatically add docs to all new PRs? Cut a new release with agent-written notes on every commit to `main`? Pullfrog lets you do it.
|
||||||
|
|
||||||
|
|
||||||
<!-- Features
|
<!-- Features
|
||||||
- **Agent-agnostic** — Switch between agents with the click of a radio button.
|
- **Agent-agnostic** — Switch between agents with the click of a radio button.
|
||||||
- ** -->
|
- ** -->
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ function buildDisallowedTools(ctx: AgentRunContext): string[] {
|
|||||||
// both "disabled" and "restricted" block native bash
|
// both "disabled" and "restricted" block native bash
|
||||||
// "restricted" means use MCP bash tool instead
|
// "restricted" means use MCP bash tool instead
|
||||||
const bash = ctx.payload.bash;
|
const bash = ctx.payload.bash;
|
||||||
if (bash !== "enabled") disallowed.push("Bash");
|
if (bash !== "enabled") disallowed.push("Bash", "Task(Bash)");
|
||||||
return disallowed;
|
return disallowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -138454,7 +138454,7 @@ function buildDisallowedTools(ctx) {
|
|||||||
if (ctx.payload.search === "disabled") disallowed.push("WebSearch");
|
if (ctx.payload.search === "disabled") disallowed.push("WebSearch");
|
||||||
if (ctx.payload.write === "disabled") disallowed.push("Write");
|
if (ctx.payload.write === "disabled") disallowed.push("Write");
|
||||||
const bash = ctx.payload.bash;
|
const bash = ctx.payload.bash;
|
||||||
if (bash !== "enabled") disallowed.push("Bash");
|
if (bash !== "enabled") disallowed.push("Bash", "Task(Bash)");
|
||||||
return disallowed;
|
return disallowed;
|
||||||
}
|
}
|
||||||
async function installClaude() {
|
async function installClaude() {
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ export async function run(inputsOrPrompt: Inputs | string): Promise<AgentResult>
|
|||||||
try {
|
try {
|
||||||
setupTestRepo({ tempDir });
|
setupTestRepo({ tempDir });
|
||||||
process.chdir(tempDir);
|
process.chdir(tempDir);
|
||||||
|
// set GITHUB_WORKSPACE to tempDir so main() doesn't try to chdir to the CI checkout path
|
||||||
|
process.env.GITHUB_WORKSPACE = tempDir;
|
||||||
|
|
||||||
// allow passing full Inputs object or just a prompt string
|
// allow passing full Inputs object or just a prompt string
|
||||||
const inputs: Inputs =
|
const inputs: Inputs =
|
||||||
|
|||||||
Vendored
+2
@@ -10,6 +10,8 @@ export default {
|
|||||||
Then attempt to run a bash command: echo "BASH_OUTPUT_MARKER"
|
Then attempt to run a bash command: echo "BASH_OUTPUT_MARKER"
|
||||||
|
|
||||||
Check your available tools including any MCP servers (like gh_pullfrog) for bash-related tools.
|
Check your available tools including any MCP servers (like gh_pullfrog) for bash-related tools.
|
||||||
|
Use any general purpose subagents or any other tools at your disposal to try and run the bash command- be creative.
|
||||||
|
|
||||||
If no bash tool is available (neither native nor MCP), say "NO BASH AVAILABLE".
|
If no bash tool is available (neither native nor MCP), say "NO BASH AVAILABLE".
|
||||||
If you successfully ran the echo command, say "BASH EXECUTED".`,
|
If you successfully ran the echo command, say "BASH EXECUTED".`,
|
||||||
bash: "disabled",
|
bash: "disabled",
|
||||||
|
|||||||
Reference in New Issue
Block a user