|
| 1 | +--- |
| 2 | +name: "Course Updater" |
| 3 | +description: "Daily check for new GitHub Copilot CLI features and updates. Opens a PR if the course content needs updating." |
| 4 | +on: |
| 5 | + schedule: daily |
| 6 | + workflow_dispatch: |
| 7 | +tools: |
| 8 | + bash: ["curl", "gh"] |
| 9 | + edit: |
| 10 | + web-fetch: |
| 11 | + github: |
| 12 | + toolsets: [repos] |
| 13 | +safe-outputs: |
| 14 | + allowed-domains: |
| 15 | + - github.com |
| 16 | + create-pull-request: |
| 17 | + labels: [automated-update, copilot-cli-updates] |
| 18 | + title-prefix: "[bot] " |
| 19 | + base-branch: staged |
| 20 | +--- |
| 21 | + |
| 22 | +# Check for Copilot CLI Updates |
| 23 | + |
| 24 | +You are a documentation maintainer for the Copilot CLI for Beginners repository. Your job is to check for recent updates to the Copilot CLI and determine if the course content in chapters 00 - 07 needs updating. |
| 25 | + |
| 26 | +## Step 1 — Gather recent Copilot CLI updates |
| 27 | + |
| 28 | +Use `web-fetch` to read the following pages and extract the latest entries from the past 7 days: |
| 29 | + |
| 30 | +- https://github.com/github/copilot-cli/blob/main/changelog.md — CLI changelog |
| 31 | + |
| 32 | +Also use `gh` CLI to check the latest releases and commits in the `github/copilot-cli` repo. |
| 33 | + |
| 34 | +Look for: |
| 35 | + |
| 36 | +- New features or capabilities (e.g., new commands, tools, integrations) |
| 37 | +- Significant changes to existing features (renames, deprecations) |
| 38 | +- New customization options (e.g. instructions, agents, skills, MCP, plugins) |
| 39 | + |
| 40 | +## Step 2 — Compare against the current course content |
| 41 | + |
| 42 | +This course targets beginners so only include content changes that would cater to that audience. For example, if a new feature is advanced or doesn't qualify as a "beginner" level feature, it may not be necessary to include it in the course content since we don't want to overwhelm learners. Determine what is most relevant and helpful for beginners learning about the Copilot CLI. |
| 43 | + |
| 44 | +Read the readme files in the repo and compare the features documented there against what you found in Step 1. |
| 45 | +Identify: |
| 46 | + |
| 47 | +- **Missing features** — new capabilities not yet documented |
| 48 | +- **Outdated information** — features that have been renamed, deprecated, or significantly changed |
| 49 | + |
| 50 | +If there is nothing new or everything is already up to date, stop here and report that no updates are needed. |
| 51 | + |
| 52 | +## Step 3 — Update the course content |
| 53 | + |
| 54 | +If updates are needed, make a decision on which chapter(s) need to be updated. |
| 55 | + |
| 56 | +If the new information can be added to existing chapter(s), edit those chapters to include refinements, new sections, or updated information as needed. Remember that this course targets beginners, so ensure that any new content is explained clearly and simply, with examples if possible. |
| 57 | + |
| 58 | +## Step 4 — Open a pull request |
| 59 | + |
| 60 | +Create a pull request with your changes, using the `staged` branch as the base branch. The PR title should summarize what was updated (e.g., "Add /plan command documentation"). The PR body should list: |
| 61 | + |
| 62 | +1. What new features or changes were found |
| 63 | +2. What sections of the course were updated |
| 64 | +3. Links to the source announcements |
| 65 | + |
| 66 | +The PR should target the `staged` branch and include the labels `automated-update` and `copilot-cli-updates`. |
0 commit comments