Skip to content

[copilot] add comment to parent issue when creating a new issue#136

Merged
pelikhan merged 4 commits intomainfrom
copilot/fix-135
Aug 20, 2025
Merged

[copilot] add comment to parent issue when creating a new issue#136
pelikhan merged 4 commits intomainfrom
copilot/fix-135

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Aug 20, 2025

This PR reverts the GraphQL-based sub-issue functionality back to the simpler REST API approach that was in place before.

What Changed

The create_issue.js script has been reverted from using GitHub's GraphQL API for creating native sub-issue relationships back to the original REST API implementation that uses text-based references.

Current Behavior

When a workflow with output.issue configuration is triggered from an issue context, the created output issue will:

  1. Text Reference: Add "Related to #parentIssueNumber" to the issue body
  2. Parent Comment: Post a comment on the parent issue saying "Created related issue: #newIssueNumber"
  3. Simple Error Handling: Use straightforward console logging for debugging

Example Workflow Behavior

---
on:
  issues:
    types: [opened]
output:
  issue:
    title-prefix: "[analysis] "
---

# Issue Analyzer
Analyze and provide insights for the current issue.

When triggered by issue #123, this workflow will:

Backward Compatibility

All existing workflows continue to work exactly as before. The change only affects the internal implementation of how issue relationships are created, reverting to the proven text-based approach.

Reverts #135.


💡 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.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] [copilot] output issue in an issue context Add subissue functionality to create_issue.js script for issue context workflows Aug 20, 2025
Copilot AI requested a review from pelikhan August 20, 2025 07:20
…references

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Aug 20, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.contoso.com
    • Triggering command: /tmp/go-build1364988870/b278/cli.test -test.testlogfile=/tmp/go-build1364988870/b278/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title Add subissue functionality to create_issue.js script for issue context workflows Implement GraphQL-based sub-issue relationships for create_issue.js script Aug 20, 2025
Copilot AI requested a review from pelikhan August 20, 2025 11:26
@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot revert last commit

…of text references"

This reverts commit 108a42a, returning to the simpler REST API approach for issue creation with text-based references instead of GraphQL sub-issue relationships.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Aug 20, 2025

@copilot revert last commit

Reverted the GraphQL sub-issue implementation as requested. The system now uses the simpler REST API approach with text-based references instead of native GraphQL sub-issue relationships. Changes committed in 2a84325.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.contoso.com
    • Triggering command: /tmp/go-build2189740609/b278/cli.test -test.testlogfile=/tmp/go-build2189740609/b278/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true (dns block)
    • Triggering command: /tmp/go-build2986130856/b278/cli.test -test.testlogfile=/tmp/go-build2986130856/b278/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title Implement GraphQL-based sub-issue relationships for create_issue.js script Revert GraphQL sub-issue implementation back to REST API approach Aug 20, 2025
@pelikhan pelikhan marked this pull request as ready for review August 20, 2025 11:55
@pelikhan pelikhan changed the title Revert GraphQL sub-issue implementation back to REST API approach [copilot] add comment to parent issue when creating a new issue Aug 20, 2025
@pelikhan pelikhan merged commit f60622c into main Aug 20, 2025
6 checks passed
@pelikhan pelikhan deleted the copilot/fix-135 branch August 20, 2025 11:56
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.

2 participants