Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 30, 2025

Adds github.actor to the GitHub context injected into agent prompts, eliminating the need for agents to call get_me to identify who triggered the workflow.

Changes

  • pkg/workflow/prompts/github_context_prompt.md: Added github.actor and simplified the context template to use markdown bullet points instead of XML tags
  • pkg/workflow/github_context_test.go: Updated tests to verify github.actor presence

Result

Agents now receive:

<github-context>
The following GitHub context information is available for this workflow:
- **actor**: octocat
- **repository**: owner/repo
- **issue-number**: #123
...
</github-context>
Original prompt

Update the github context prompt to include the github.actor so that the user does not have to query get_me


💡 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 and others added 2 commits November 30, 2025 13:59
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan
Copy link
Contributor

@copilot simplify the context template for each individual values. Instead of xml context tags just do markdown button points

Copilot AI changed the title [WIP] Update GitHub context prompt to include github.actor Add github.actor to GitHub context prompt Nov 30, 2025
Copilot AI requested a review from pelikhan November 30, 2025 14:17
Copilot finished work on behalf of pelikhan November 30, 2025 14:17
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 30, 2025

@copilot simplify the context template for each individual values. Instead of xml context tags just do markdown button points

Simplified the context template to use markdown bullet points in 44f209d.

The new format:

<github-context>
The following GitHub context information is available for this workflow:
- **actor**: octocat
- **repository**: owner/repo
- **issue-number**: #123
...
</github-context>

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:

  • https://api.github.com/user
    • Triggering command: /usr/bin/gh gh api user --jq .login (http block)

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

Copilot finished work on behalf of pelikhan November 30, 2025 14:29
@pelikhan pelikhan marked this pull request as ready for review November 30, 2025 14:33
@pelikhan pelikhan merged commit 9b95b86 into main Nov 30, 2025
83 checks passed
@pelikhan pelikhan deleted the copilot/update-github-context-prompt branch November 30, 2025 14:34
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