Repository navigation
Description
Problem
When a Jira-sourced code run ends without a PR (the agent finds the work already done, makes no branch, or changes no files), nothing is written to the Jira issue. The person who started the run gets no PR, no comment and no status change. The only trace is a ::notice line in the workflow log.
GitHub and GitLab issues get a "No PR created" comment in the same situation, with the reason, the agent's explanation and the run link.
Cause
In scripts/post-code.src.sh, post_noop_comment returns early for external work items:
if [ "${EXTERNAL_WORK_ITEM}" = "true" ]; then
gha_echo notice "No PR created for ${WORK_ITEM_KEY}: ${reason}"
return 0
fiThe only Jira writer, post_jira_stage_update, runs on the PR path and requires a PR/MR URL. So no path reports a no-op to Jira.
The post script already has what it needs: the Jira overlay in harness/code.yaml passes the Jira credentials and FULLSEND_DIR to the runner, and the credential-isolation block at the top of post-code.src.sh stashes them before the no-op exits run.
Scope
Files: scripts/post-code.src.sh, the regenerated scripts/post-code.sh (make script-build), and scripts/post-code-test.sh. Nothing under .github/, and no change to harness/code.yaml.
- In
post_noop_comment, when the tracker is Jira (WORK_ITEM_TRACKERisjira), post a comment to the Jira issue instead of returning. Keep the::noticeline. - Reuse the existing Jira write path: the same identity checks, credential selection (
jira_auth_select,jira_auth_fullsend),fullsend issues post-comment --tracker jiracall and<!-- fullsend:code-agent -->marker as_post_jira_stage_update_inner. Factor the shared part into a helper rather than copying it. Because the marker is shared, a later run that opens a PR replaces the no-op comment. - Comment body, plain text that renders in Jira:
No PR created for <KEY>: the code agent determined no changes are needed.Reason: <reason>- The agent's context from
pr_bodyin the result file, after the samesanitize_failure_detailand gitleaksscan_public_textchecks the GitHub comment uses. Omit it if the scan fails. Workflow run: <run URL>
- Best-effort: if the Jira write fails, log a warning and keep exit 0. Do not run
maybe_transition_jira_pr_readyon this path. - Non-Jira external trackers keep today's behaviour (notice only).
- Tests in
scripts/post-code-test.sh, using a stubfullsendbinary onPATHthat records its arguments and stdin:- Jira no-op posts one comment with the marker, the reason and the run URL.
- A failing stub CLI still yields exit 0 and a warning.
- The GitHub no-op comment is unchanged.
Acceptance
- A Jira-sourced run that ends with no PR leaves a "No PR created" comment on the Jira issue with the reason and run link.
- A Jira write failure on this path does not fail the run.
make script-buildleaves no diff, andscripts/post-code-test.shpasses.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
waynesun09 commentedon Nov 23, 2026
/fs-code
Do not sign off. No
git commit -s, noSigned-off-bytrailer.fullsend-ai-triage commentedon Nov 23, 2026
🤖 Finished Triage · ✅ Success · Started 4:18 PM UTC · Completed 4:20 PM UTC
Commit:
a4d3b9f· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.25
fullsend-ai-coder commentedon Nov 23, 2026
🤖 Code · ❌ Terminated · Started 4:18 PM UTC · Ended 4:27 PM UTC
Commit:
a4d3b9f· View workflow run →fullsend-ai-triage commentedon Nov 23, 2026
This is actionable as written. The cited code on main matches:
post_noop_commentreturns early for external work items, and_post_jira_stage_update_inneralready holds the Jira identity checks, credential selection and marker you want to reuse. No open PR addresses this.Related work: #1953 is open and overlaps with this issue. It covers the same no-op case plus a post-script failure case. If both are implemented, coordinate the shared-helper refactor of the Jira write path so they don't conflict.
Notes for implementation
scripts/, so it does not require workflow-file changes./fs-code, and the sign-off exclusion for pipeline agents applies.Proposed test case
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-coder commentedon Nov 23, 2026
🤖 Finished Code · ✅ Success · Started 4:18 PM UTC · Completed 4:27 PM UTC
Commit:
a4d3b9f· View workflow run →Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $1.96
waynesun09 commentedon Nov 23, 2026
Duplicate of #1953. PR #2010 implements it, including the no-op case described here.