Skip to content

docs: clarify update-issue target support in documentation - #1141

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-e667ef5a-312a-4ab7-9b12-68df98695e83
Oct 2, 2025
Merged

pelikhan merged 2 commits into
mainfrom
copilot/fix-e667ef5a-312a-4ab7-9b12-68df98695e83

Conversation

Copilot AI commented Oct 2, 2025 •

Copy link
Copy Markdown
Contributor

Summary

This PR clarifies in the documentation that update-issue supports the target option, addressing the issue titled "update-issue does not support target".

Background

After investigating the issue, I discovered that the target feature is fully implemented and working for update-issue. The feature supports three modes:

  1. "triggering" (default) - Updates only the triggering issue
  2. "*" - Allows updating any issue (requires issue_number in agent output)
  3. Explicit number (e.g., "123") - Updates a specific issue number

The implementation includes:

  • Go struct with Target field that's properly parsed
  • Environment variable GITHUB_AW_UPDATE_TARGET passed to JavaScript
  • Complete JavaScript handling of all three target modes
  • Full test coverage (3 Go tests, 9 JavaScript tests)
  • Configuration example documentation

The Issue

While the configuration example already showed the target option, the introductory paragraph for update-issue didn't explicitly mention it. Compare with add-comment, which states:

"By default, comments are posted on the triggering issue or pull request, but this can be configured using the target option."

Changes

Updated the update-issue documentation introduction to explicitly mention target support:

Before:

"Adding update-issue: to the safe-outputs: section declares that the workflow should conclude with updating GitHub issues based on the coding agent's analysis. You can configure which fields are allowed to be updated."

After:

"Adding update-issue: to the safe-outputs: section declares that the workflow should conclude with updating GitHub issues based on the coding agent's analysis. By default, updates are applied to the triggering issue, but this can be configured using the target option. You can also configure which fields are allowed to be updated."

Example Usage

safe-outputs:
  update-issue:
    target: "*"                    # Allow updating any issue
    title:                         # Allow updating title
    body:                          # Allow updating body
    status:                        # Allow updating status

Testing

  • ✅ All Go unit tests pass
  • ✅ All JavaScript tests pass (9 tests for update_issue.cjs)
  • ✅ Build successful
  • ✅ Verified compilation with all three target modes
  • ✅ Code review completed with no issues

This is a documentation-only change that clarifies existing, working functionality.

Original prompt

This section details on the original issue you should resolve

<issue_title>update-issue does not support target</issue_title>
<issue_description>Just like add-comment, update-issue should support a target.</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #1101

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] update-issue does not support target docs: clarify update-issue target support in documentation Oct 2, 2025
Copilot AI requested a review from pelikhan October 2, 2025 02:18
@pelikhan
pelikhan marked this pull request as ready for review October 2, 2025 02:54
@pelikhan
pelikhan merged commit 0eb4de0 into main Oct 2, 2025
@pelikhan
pelikhan deleted the copilot/fix-e667ef5a-312a-4ab7-9b12-68df98695e83 branch October 2, 2025 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update-issue does not support target

2 participants