1
---
2
name: "Learning Hub Updater"
3
description: "Daily check for new GitHub Copilot features and updates. Opens a PR if the Learning Hub needs updating."
4
on:
5
schedule: daily
6
workflow_dispatch:
7
permissions:
8
contents: read
9
copilot-requests: write
10
pull-requests: read
11
tools:
12
edit:
13
web-fetch:
14
github:
15
toolsets: [repos, pull_requests]
16
checkout:
17
fetch: ["*"]
18
fetch-depth: 0
19
safe-outputs:
20
allowed-domains:
21
- github.com
22
- github.blog
23
- code.visualstudio.com
24
- nishanil.github.io
25
create-pull-request:
26
labels: [automated-update, copilot-updates]
27
title-prefix: "[bot] "
28
base-branch: main
29
allowed-files:
30
- "website/src/content/docs/learning-hub/*.md"
31
- "website/src/content/docs/learning-hub/**/*.md"
32
push-to-pull-request-branch:
33
target: "*"
34
required-title-prefix: "[bot] "
35
required-labels: [automated-update, copilot-updates]
36
allowed-files:
37
- "website/src/content/docs/learning-hub/*.md"
38
- "website/src/content/docs/learning-hub/**/*.md"
39
close-pull-request:
40
target: "*"
41
required-labels: [automated-update, copilot-updates]
42
required-title-prefix: "[bot] "
43
max: 5
44
---
45
46
# Check for Awesome GitHub Copilot Updates
47
48
You are a documentation maintainer for the Awesome GitHub Copilot Learning Hub. Your job is to check for recent updates to GitHub Copilot and determine if the Learning Hub pages in `website/src/content/docs/learning-hub` need updating.
49
50
## Step 1 — Gather recent Copilot updates
51
52
Use `web-fetch` to read the following pages and extract the latest entries from the past 7 days:
53
54
- https://github.blog/changelog/label/copilot/ — official changelog
55
- https://github.com/github/copilot-cli/blob/main/changelog.md — CLI changelog
56
- https://github.com/github/github-app/blob/main/changelog/changelog.md — GitHub Copilot app changelog
57
- https://github.blog/ai-and-ml/github-copilot/ — blog posts
58
- https://code.visualstudio.com/updates - VS Code release notes (filter for Copilot-related updates)
59
- https://nishanil.github.io/copilot-guide/ - community-maintained guide (check for recent commits or updates)
60
61
Also use GitHub tooling to check the latest releases and commits in the `github/copilot-cli` and `github/github-app` repos.
62
63
Look for:
64
65
- New features or capabilities (new slash commands, new agent modes, new integrations)
66
- Significant changes to existing features (renames, deprecations, GA announcements)
67
- New customization options (instructions, agents, skills, MCP, hooks, plugins)
68
- New platform features (memory, spaces, SDK updates)
69
- Notable community projects built on Copilot
70
71
## Step 2 — Compare against the current Learning Hub
72
73
Read the pages in the current Learning Hub and compare the features documented there against what you found in Step 1, with the exception of the `cli-for-beginners` section as we handle updates to that separately. Any suggested changes to those pages will be rejected.
74
75
Also exclude `website/src/content/docs/learning-hub/app-for-beginners/` and
76
`website/public/images/learning-hub/copilot-app-for-beginners/`. The
77
`app-for-beginners-sync` workflow owns this source-faithful course mirror.
78
Do not rewrite its lessons or assets from feature research, or change its
79
course card and cross-links independently of that sync.
80
81
Identify:
82
83
- **Missing features** — new capabilities not yet documented
84
- **Outdated information** — features that have been renamed, deprecated, or significantly changed
85
- **Missing links** — new official docs or blog posts not in the Further Reading section
86
- **Stale version notes** — inline `vX.Y.Z+` callouts, "previously"/"as of"/"breaking change" notes, or superseded feature descriptions that are candidates for consolidation or removal now that a newer release has landed
87
88
If there is nothing new or everything is already up to date, stop here and report that no updates are needed.
89
90
## Step 3 — Update the Learning Hub
91
92
If updates are needed, make a decision on whether a new page needs to be added (e.g., for a major new feature) or if existing pages can be updated with new sections.
93
94
**Content model — read this before editing.** The Learning Hub distinguishes between two kinds of content, and each page should keep them clearly separated into distinct sections:
95
96
- **Evergreen guides** (most pages, e.g. `copilot-configuration-basics.md`, `building-custom-agents.md`, `installing-and-using-plugins.md`, `understanding-mcp-servers.md`, `automating-with-hooks.md`) must describe **current behavior as the primary voice** — write "Use X to do Y", not "In vA.B.C, X was added". These pages are not a changelog and must not be allowed to become one.
97
- **Compatibility and migration notes** are where release-specific history belongs: breaking changes, renamed settings, removed commands, and minimum-version requirements that a reader upgrading from an older version needs. Put this material in a `## Compatibility and Migration Notes` section at the bottom of the relevant page (create the section if it doesn't exist yet) instead of inline in the main teaching flow.
98
99
Prefer **consolidation over addition**:
100
101
- Before adding a new inline `(vX.Y.Z+)` note, check whether the same section already has one or more older version notes on the same setting, command, or field. If so, rewrite that passage to describe only the current behavior, and move any genuinely useful migration detail (old name, old default, what breaks) into the Compatibility and Migration Notes section.
102
- Do not add a new inline version tag for a feature that has been generally available for more than a couple of releases — just document it as the current behavior.
103
- Only keep an inline version tag when a reader must know the version to make a decision right now (e.g., "requires v1.0.80 or later").
104
- If a page's main teaching flow already has more than roughly 8–10 inline version tags outside of a Compatibility and Migration Notes section, treat that as a signal to do a consolidation pass on that page during this run, not just append another note.
105
106
### For new pages:
107
108
A new page should be created for major features or capabilities that warrant their own documentation (e.g., a new feature of Copilot, a new pattern for working with Copilot, etc.).
109
110
To create a new page:
111
112
1. Create a new markdown file in the appropriate section of `website/src/content/docs/learning-hub` (e.g., `website/src/content/docs/learning-hub/agents/new-agent.md`).
113
2. Write a summary of the new feature, how it works, and its use cases.
114
3. Add a "Further Reading" section with links to official documentation, blog posts, and relevant community resources.
115
116
### For updates to existing pages:
117
118
If the new information can be added to existing pages, edit those pages to include refinements, new sections, or updated information as needed, following the content model above. Make sure to update any relevant links in the "Further Reading" sections.
119
120
## Step 4 — Reuse or update the existing bot pull request
121
122
Before opening a new pull request, use GitHub pull request tooling to find open
123
PRs with the `automated-update` and `copilot-updates` labels and a `[bot] `
124
title prefix. Identify whether any matching PR is already updating the same
125
Learning Hub area.
126
127
If a matching PR already exists:
128
129
1. Use the `push_to_pull_request_branch` safe-output tool to push the changes
130
onto that PR's branch instead of creating a new PR. This tool can only target
131
PRs that carry both labels and the `[bot] ` title prefix.
132
2. Keep the branch and title stable so the update remains a single, current
133
review thread.
134
3. If an older matching PR is stale or clearly superseded by the newer content,
135
use the `close_pull_request` safe-output tool to close it with a short
136
explanation such as "Superseded by newer automated update".
137
4. Prefer a single active PR that reflects the latest information.
138
139
Only use the `create_pull_request` safe-output tool to open a fresh PR when no
140
relevant open bot PR exists for the same content area.
141
142
When creating a new PR, use the `main` branch as the base branch. The PR title
143
should summarize what was updated (for example, "Add/plan command and model
144
marketplace documentation"). The PR body should list:
145
146
1. What new features or changes were found
147
2. What sections of the guide were updated
148
3. Links to the source announcements
149
4. **Content cleanup** — what older inline version notes were consolidated, rewritten as current behavior, or moved into a Compatibility and Migration Notes section, or a brief note that none needed changes this run
150
151
The PR should target the `main` branch and include the labels `automated-update` and `copilot-updates`.
152
153
## Step 5 — Avoid duplicate bot churn
154
155
Do not create a new PR when the same content is already being tracked in a
156
current open bot PR — push to it instead (Step 4).
157
158
If the repo already has one or more older bot PRs for near-identical Learning Hub changes, prefer to:
159
160
- push the update to the newest relevant PR via `push_to_pull_request_branch`
161
- close stale duplicates via `close_pull_request` with a short explanation such as "Superseded by newer automated update"
162
- avoid leaving the maintainers to triage multiple almost-identical docs PRs
163
164
This keeps the automation loop tight and reduces review noise.