Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/test-copilot-skills-frontmatter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
on:
workflow_dispatch:

permissions:
issues: read
pull-requests: read
actions: read
contents: read
discussions: read
copilot-requests: write

skills:
- mattpocock/skills/diagnosing-bugs@801dca688564c529fa84f247f64472520d9ebe28

engine:
id: copilot

safe-outputs:
create-issue:
title-prefix: "[copilot-test] "
labels: [copilot, automation]
samples:
- title: "Skills frontmatter is available"
body: |
The diagnosing-bugs skill was available during this workflow run.

Two debugging steps from the skill:
- Reproduce the bug consistently.
- Minimize the failing case before changing code.
---

Use the installed `/diagnosing-bugs` skill to answer this question: what are two concrete first steps for debugging a bug report?

Then create an issue in repository ${{ github.repository }} with title "Skills frontmatter is available".

The issue body must:
- say that the diagnosing-bugs skill was available during the workflow run
- include exactly two bullet points summarizing the debugging steps suggested by the skill
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Tracking the full matrix of [safe outputs](https://github.com/github/gh-aw/blob/
- [x] `create-code-scanning-alert` — test-copilot-create-repository-code-scanning-alert
- [x] `mcp` — test-copilot-mcp
- [x] `mcp` (`code_quality` toolset) — test-copilot-mcp-code-quality
- [x] frontmatter `skills:` install + invocation — test-copilot-skills-frontmatter
- [x] `custom safe output jobs` — test-copilot-custom-safe-outputs
- [x] `gh-steps` — test-copilot-gh-steps
- [x] `add-comment` — test-copilot-add-comment
Expand Down
5 changes: 3 additions & 2 deletions e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ get_all_tests() {
echo "test-codex-mcp"
echo "test-copilot-mcp"
echo "test-copilot-mcp-code-quality"
echo "test-copilot-skills-frontmatter"
echo "test-claude-custom-safe-outputs"
echo "test-codex-custom-safe-outputs"
echo "test-copilot-custom-safe-outputs"
Expand Down Expand Up @@ -3426,7 +3427,7 @@ run_single_test() {
fi
;;
# Workflow dispatch tests - triggered with gh aw run
*"create-issue"|*"create-discussion"|*"create-pull-request"|*"create-two-pull-requests"|*"code-scanning-alert"|*"create-check-run"|*"mcp"*|*"safe-jobs"|*"gh-steps"|*"custom-safe-outputs"|*"noop"|*"report-incomplete"|*"assign-to-agent"|*"set-issue-field"|*"issue-intents")
*"create-issue"|*"create-discussion"|*"create-pull-request"|*"create-two-pull-requests"|*"code-scanning-alert"|*"create-check-run"|*"mcp"*|*"safe-jobs"|*"gh-steps"|*"custom-safe-outputs"|*"noop"|*"report-incomplete"|*"assign-to-agent"|*"set-issue-field"|*"issue-intents"|*"skills-frontmatter")
local workflow_success=false
if trigger_workflow_dispatch_and_await_completion "$workflow"; then
workflow_success=true
Expand All @@ -3445,7 +3446,7 @@ run_single_test() {
validation_success=true
fi
;;
*"create-issue")
*"create-issue"|*"skills-frontmatter")
local title_prefix=$(get_title_prefix "$workflow" "$ai_type")
local expected_labels=$(get_expected_labels "$ai_type")
if validate_issue_created "$title_prefix" "$expected_labels" "$target_repo"; then
Expand Down