Skip to content

Commit b11dbee

Browse files
Add additionalMetadata sampleTag to all M365 Agents Toolkit samples (#119)
* Initial plan * Add additionalMetadata sampleTag to all M365 Agents Toolkit samples and update AGENTS.md Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com> * Revert changes to non-m365agents.yml files per review feedback Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com> * Add additionalMetadata sampleTag to all teamsapp.yml files Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com>
1 parent 8d549f2 commit b11dbee

50 files changed

Lines changed: 155 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,17 @@ Always use the latest published schema version. Use the links below to identify
9595
| Declarative agent manifest | [declarative-agent-manifest-1.6](https://learn.microsoft.com/microsoft-365-copilot/extensibility/declarative-agent-manifest-1.6) — replace `1.6` with latest |
9696
| API plugin manifest | [api-plugin-manifest-2.4](https://learn.microsoft.com/microsoft-365-copilot/extensibility/api-plugin-manifest-2.4) — replace `2.4` with latest |
9797

98+
## `m365agents.yml` metadata
99+
If the sample includes an `m365agents.yml`, add the following property after `version`:
100+
```yaml
101+
additionalMetadata:
102+
sampleTag: pnp-copilot-pro-dev:<sample-folder-name>
103+
```
104+
Replace `<sample-folder-name>` with the name of your sample folder under `samples/`.
105+
98106
## Rules
99107
- Add the sample to the samples table in the root `README.md`
108+
- Include `additionalMetadata` with the correct `sampleTag` in `m365agents.yml`
100109
- DO NOT include `projectId` in `m365agents.yml`
101110
- DO NOT commit secrets, API keys, tenant IDs, or app IDs
102111
- DO NOT reference assets from external URLs — all assets in `assets/`
@@ -111,6 +120,7 @@ Always use the latest published schema version. Use the links below to identify
111120
- [ ] Uses correct templates for `README.md` and `sample.json`
112121
- [ ] All schema versions target latest (see links above)
113122
- [ ] No `projectId` in `m365agents.yml`
123+
- [ ] `additionalMetadata.sampleTag` set in `m365agents.yml` (format: `pnp-copilot-pro-dev:<sample-folder-name>`)
114124
- [ ] No `teamsapp.yml` or `teamsapp.local.yml` (update if present)
115125
- [ ] No secrets or external asset links
116126
- [ ] One PR per sample

samples/cea-techpulse/m365agents.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Visit https://aka.ms/teamsfx-actions for details on actions
44
version: v1.8
55

6+
additionalMetadata:
7+
sampleTag: pnp-copilot-pro-dev:cea-techpulse
8+
69
environmentFolderPath: ./env
710

811
# Triggered when 'teamsapp provision' is executed

samples/da-BlogPostHelper/teamsapp.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Visit https://aka.ms/teamsfx-actions for details on actions
44
version: v1.7
55

6+
additionalMetadata:
7+
sampleTag: pnp-copilot-pro-dev:da-BlogPostHelper
8+
69
environmentFolderPath: ./env
710

811
# Triggered when 'teamsapp provision' is executed

samples/da-CLIForM365-helper/m365agents.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Visit https://aka.ms/teamsfx-actions for details on actions
44
version: v1.8
55

6+
additionalMetadata:
7+
sampleTag: pnp-copilot-pro-dev:da-CLIForM365-helper
8+
69
environmentFolderPath: ./env
710

811
# Triggered when 'teamsapp provision' is executed

samples/da-CareerCoach/teamsapp.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Visit https://aka.ms/teamsfx-actions for details on actions
44
version: v1.7
55

6+
additionalMetadata:
7+
sampleTag: pnp-copilot-pro-dev:da-CareerCoach
8+
69
environmentFolderPath: ./env
710

811
# Triggered when 'teamsapp provision' is executed

samples/da-DocFinder/teamsapp.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Visit https://aka.ms/teamsfx-actions for details on actions
44
version: v1.7
55

6+
additionalMetadata:
7+
sampleTag: pnp-copilot-pro-dev:da-DocFinder
8+
69
environmentFolderPath: ./env
710

811
# Triggered when 'teamsapp provision' is executed

samples/da-IdeaCoach/teamsapp.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Visit https://aka.ms/teamsfx-actions for details on actions
44
version: v1.7
55

6+
additionalMetadata:
7+
sampleTag: pnp-copilot-pro-dev:da-IdeaCoach
8+
69
environmentFolderPath: ./env
710

811
# Triggered when 'teamsapp provision' is executed

samples/da-LearningCoach/teamsapp.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Visit https://aka.ms/teamsfx-actions for details on actions
44
version: v1.7
55

6+
additionalMetadata:
7+
sampleTag: pnp-copilot-pro-dev:da-LearningCoach
8+
69
environmentFolderPath: ./env
710

811
# Triggered when 'teamsapp provision' is executed

samples/da-MyAdvancedCommsBuddy/teamsapp.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Visit https://aka.ms/teamsfx-actions for details on actions
44
version: v1.7
55

6+
additionalMetadata:
7+
sampleTag: pnp-copilot-pro-dev:da-MyAdvancedCommsBuddy
8+
69
environmentFolderPath: ./env
710

811
# Triggered when 'teamsapp provision' is executed

samples/da-MyCommsBuddy/teamsapp.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Visit https://aka.ms/teamsfx-actions for details on actions
44
version: v1.7
55

6+
additionalMetadata:
7+
sampleTag: pnp-copilot-pro-dev:da-MyCommsBuddy
8+
69
environmentFolderPath: ./env
710

811
# Triggered when 'teamsapp provision' is executed

0 commit comments

Comments
 (0)