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
5 changes: 4 additions & 1 deletion docs/src/content/docs/reference/frontmatter-full.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ on:
# created, updated, or closed
# (optional)
pull_request:
# List of pull request event types to trigger on
# Pull request event types to trigger on. Note: 'converted_to_draft' and
# 'ready_for_review' represent state transitions (events) rather than states.
# While technically valid to listen for both, consider if you need to handle both
# transitions or just one.
# (optional)
types: []
# Array of strings
Expand Down
3 changes: 2 additions & 1 deletion pkg/parser/schemas/main_workflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@
"properties": {
"types": {
"type": "array",
"description": "List of pull request event types to trigger on",
"description": "Pull request event types to trigger on. Note: 'converted_to_draft' and 'ready_for_review' represent state transitions (events) rather than states. While technically valid to listen for both, consider if you need to handle both transitions or just one.",
"$comment": "converted_to_draft and ready_for_review are logically opposite state transitions. Using both may indicate unclear intent.",
"items": {
"type": "string",
"enum": [
Expand Down