From ce95a0e5aeaf386ced5c5d4b8e21207b2388b14a Mon Sep 17 00:00:00 2001 From: fullsend-code <278716306+fullsend-ai-coder[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 16:39:49 +0000 Subject: [PATCH 1/2] docs(#242): remove Jira remnants from custom agent guide Remove leftover Jira-specific code from the pre-script example that left an orphaned elif after the Jira branch was deleted. Replace the if/elif/fi block with a direct gh issue view call. Add missing issues: write permission to the workflow permissions block. Remove the unused issue_source workflow input and its references throughout the guide. Closes #242 --- docs/guides/user/building-custom-agents.md | 28 ++++++---------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/docs/guides/user/building-custom-agents.md b/docs/guides/user/building-custom-agents.md index e078237b7..1f4788686 100644 --- a/docs/guides/user/building-custom-agents.md +++ b/docs/guides/user/building-custom-agents.md @@ -263,17 +263,9 @@ set -euo pipefail WORKSPACE="/tmp/workspace" mkdir -p "$WORKSPACE" -if [[ "${ISSUE_SOURCE}" == "jira" ]]; then - AUTH=$(printf '%s:%s' "$JIRA_EMAIL" "$JIRA_API_TOKEN" | base64 -w0) - curl -sSf -H "Authorization: Basic $AUTH" \ - "https://${JIRA_HOST}/rest/api/3/issue/${ISSUE_KEY}" \ - > "$WORKSPACE/my-input.json" - -elif [[ "${ISSUE_SOURCE}" == "github" ]]; then - gh issue view "$ISSUE_KEY" --repo "$REPO_FULL_NAME" \ - --json number,title,body,labels,comments \ - > "$WORKSPACE/my-input.json" -fi +gh issue view "$ISSUE_KEY" --repo "$REPO_FULL_NAME" \ + --json number,title,body,labels,comments \ + > "$WORKSPACE/my-input.json" echo "Pre-script complete." ``` @@ -350,6 +342,7 @@ name: fullsend-my-agent permissions: contents: read id-token: write + issues: write on: workflow_dispatch: @@ -358,11 +351,6 @@ on: description: 'Issue key' required: true type: string - issue_source: - description: 'Issue source: jira or github' - required: true - type: string - default: 'github' concurrency: group: my-agent-${{ inputs.issue_key || 'unknown' }} @@ -429,7 +417,6 @@ jobs: - name: Run my-agent env: ISSUE_KEY: ${{ inputs.issue_key }} - ISSUE_SOURCE: ${{ inputs.issue_source || 'github' }} MY_VAR: ABCD GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ANTHROPIC_VERTEX_PROJECT_ID: ${{ secrets.FULLSEND_GCP_PROJECT_ID }} @@ -468,8 +455,8 @@ jobs: The workflow above uses `workflow_dispatch`, which means you trigger it manually: -- **From the GitHub UI:** Actions → fullsend-my-agent → Run workflow → fill in `issue_key` and `issue_source`. -- **From the CLI:** `gh workflow run my-agent.yml -f issue_key=123 -f issue_source=github` +- **From the GitHub UI:** Actions → fullsend-my-agent → Run workflow → fill in `issue_key`. +- **From the CLI:** `gh workflow run my-agent.yml -f issue_key=123` ### Slash-command dispatch (optional) @@ -502,8 +489,7 @@ jobs: run: | gh workflow run my-agent.yml \ --repo "$REPO" \ - -f issue_key="$ISSUE_NUMBER" \ - -f issue_source="github" + -f issue_key="$ISSUE_NUMBER" gh api "repos/${REPO}/issues/comments/${{ github.event.comment.id }}/reactions" \ -f content="rocket" --silent 2>/dev/null || true From 3d8be7ced5ce601d806e6dc148e246b4565d7f3f Mon Sep 17 00:00:00 2001 From: fullsend-fix <278716306+fullsend-ai-coder[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 17:43:50 +0000 Subject: [PATCH 2/2] fix(#242): add missing REPO_FULL_NAME to example harness and workflow The pre-script example uses $REPO_FULL_NAME but the example harness runner_env and workflow env block did not define it. With set -euo pipefail the example script would fail on the unset variable. Add it to both locations, matching the pattern in customizing-agents.md. Addresses review feedback on #285 --- docs/guides/user/building-custom-agents.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guides/user/building-custom-agents.md b/docs/guides/user/building-custom-agents.md index 1f4788686..f499eb3e5 100644 --- a/docs/guides/user/building-custom-agents.md +++ b/docs/guides/user/building-custom-agents.md @@ -146,6 +146,7 @@ post_script: customized/scripts/post-my-agent.sh runner_env: MY_VAR: "${MY_VAR}" ISSUE_KEY: "${ISSUE_KEY}" + REPO_FULL_NAME: "${REPO_FULL_NAME}" GH_TOKEN: "${GH_TOKEN}" FULLSEND_OUTPUT_SCHEMA: ${FULLSEND_DIR}/customized/schemas/my-agent-result.schema.json @@ -417,6 +418,7 @@ jobs: - name: Run my-agent env: ISSUE_KEY: ${{ inputs.issue_key }} + REPO_FULL_NAME: ${{ github.repository }} MY_VAR: ABCD GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ANTHROPIC_VERTEX_PROJECT_ID: ${{ secrets.FULLSEND_GCP_PROJECT_ID }}