Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 15, 2025

Adds a reusable shared workflow component that provides comprehensive GitHub context information (event type, issue/PR IDs, comment IDs, repository details, commit SHAs, etc.) via a simple import.

Changes

  • .github/workflows/shared/github-context.md - Shared context component with 40+ GitHub context fields:

    • Repository and workflow execution details (run ID, actor, job ID)
    • Event-specific context for all GitHub event types (issues, PRs, comments, reviews, releases, deployments, checks, projects)
    • Commit context (before/after SHAs, head commit)
    • Sanitized content access instructions
  • Example workflows demonstrating usage:

    • test-github-context.md - Basic import example
    • example-context-aware-analyzer.md - Real-world issue analyzer
  • Documentation - Updated docs/src/content/docs/reference/imports.md with "Built-in Shared Imports" section

Usage

---
on: issues
engine: copilot
imports:
  - shared/github-context.md
---

# Your Workflow

The GitHub context will be available above with relevant fields populated based on the triggering event type.

Fields automatically populate based on event type - non-applicable fields evaluate to empty strings. No conditional logic needed.

Original prompt

Create a context share agentic workflow that uses conditonal templating to provide the current complete github invocation context: event type, issue id, pull request id, repo, comment id, parent...


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits November 15, 2025 21:01
…ating

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Create context share agentic workflow with conditional templating Add shared github-context.md import for comprehensive GitHub invocation context Nov 15, 2025
Copilot AI requested a review from pelikhan November 15, 2025 21:11
@pelikhan pelikhan closed this Nov 15, 2025
@pelikhan pelikhan deleted the copilot/create-context-share-agentic-workflow branch November 19, 2025 00: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