forked from 0GiS0/ADO_CodingAgent
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (29 loc) · 1.22 KB
/
copilot-coder.yml
File metadata and controls
34 lines (29 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ============================================================================
# GitHub Copilot Coder - Caller Workflow
# ============================================================================
# This is a lightweight caller workflow that invokes the master workflow
# from the central GHES_CodingAgent repository.
#
# Benefits:
# - No scripts folder needed in this repository
# - Automatic updates when master workflow is improved
# - Consistent behavior across all repositories
#
# Prerequisites:
# - GH_TOKEN secret: Classic PAT with repo and workflow scopes
# - COPILOT_TOKEN secret: Token for GitHub Copilot API access
# - CONTEXT7_API_KEY secret (optional): API key for Context7 service
# ============================================================================
name: 🤖 GitHub Copilot Coder
on:
issues:
types: [labeled]
jobs:
copilot:
# Only run when the issue has the 'copilot' label
if: contains(github.event.issue.labels.*.name, 'copilot')
# Call the master workflow from the central repository
# Replace <org> with your GHES organization name
uses: ghes-test/GHES_CodingAgent/.github/workflows/copilot-coder-master.yml@main
# Pass all secrets to the called workflow
secrets: inherit