Skip to content

Remove top-level bots from main JSON schema#29592

Merged
pelikhan merged 1 commit intomainfrom
copilot/update-json-schema-remove-bots
May 1, 2026
Merged

Remove top-level bots from main JSON schema#29592
pelikhan merged 1 commit intomainfrom
copilot/update-json-schema-remove-bots

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 1, 2026

Summary

Removes bots as a valid top-level frontmatter property from pkg/parser/schemas/main_workflow_schema.json.

Changes

  • Deleted the top-level bots property definition from the main workflow schema

Rationale

The compiler only reads bots from on.bots (where the property remains valid). Having it defined at the top level was misleading — any top-level bots value was silently ignored by the compiler, potentially causing user confusion.

Copilot AI requested a review from pelikhan May 1, 2026 18:41
@pelikhan pelikhan marked this pull request as ready for review May 1, 2026 18:44
Copilot AI review requested due to automatic review settings May 1, 2026 18:44
@pelikhan pelikhan merged commit a782d01 into main May 1, 2026
19 checks passed
@pelikhan pelikhan deleted the copilot/update-json-schema-remove-bots branch May 1, 2026 18:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes bots as a valid top-level frontmatter property from the main workflow JSON schema to reflect actual compiler behavior (only on.bots is read) and avoid silently ignored configuration.

Changes:

  • Deleted the root-level bots property from pkg/parser/schemas/main_workflow_schema.json.
Show a summary per file
File Description
pkg/parser/schemas/main_workflow_schema.json Removes root-level bots from the schema so only on.bots remains valid, matching compiler behavior.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment on lines 8911 to 8914
"additionalProperties": false
},
"bots": {
"type": "array",
"description": "Allow list of bot identifiers that can trigger the workflow even if they don't meet the required role permissions. When the actor is in this list, the bot must be active (installed) on the repository to trigger the workflow.",
"items": {
"type": "string",
"minLength": 1,
"pattern": "^[A-Za-z0-9._\\[\\]-]+$",
"description": "Bot identifier/name (e.g., 'dependabot[bot]', 'renovate[bot]', 'github-actions[bot]')"
}
},
"rate-limit": {
"type": "object",
@github-actions github-actions Bot mentioned this pull request May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants