|
68 | 68 | | `{lockReason}` | Reason for locking | "resolved", "spam", "off-topic" | |
69 | 69 | | `{comments}` | Formatted comments section | Complete comments with formatting | |
70 | 70 |
|
| 71 | +## GitHub Projects |
| 72 | + |
| 73 | +These variables are available when the issue/PR is part of a GitHub Project (Projects V2). |
| 74 | + |
| 75 | +### Basic Project Information |
| 76 | + |
| 77 | +| Variable | Description | Example | |
| 78 | +|----------|-------------|---------| |
| 79 | +| `{project}` | Project title (first project if in multiple) | "Sprint Board" | |
| 80 | +| `{project_url}` | Project URL | "https://github.com/orgs/owner/projects/1" | |
| 81 | +| `{project_number}` | Project number | "1" | |
| 82 | +| `{project_status}` | Status field value | "In Progress", "Done" | |
| 83 | +| `{project_priority}` | Priority field value | "High", "Medium", "Low" | |
| 84 | + |
| 85 | +### Iteration Information |
| 86 | + |
| 87 | +| Variable | Description | Example | |
| 88 | +|----------|-------------|---------| |
| 89 | +| `{project_iteration}` | Current iteration title | "Sprint 5" | |
| 90 | +| `{project_iteration_start}` | Iteration start date | "2025-01-15" | |
| 91 | +| `{project_iteration_duration}` | Iteration duration in days | "14" | |
| 92 | + |
| 93 | +### Multiple Projects |
| 94 | + |
| 95 | +| Variable | Description | Example | |
| 96 | +|----------|-------------|---------| |
| 97 | +| `{projects}` | All project names as comma-separated list | "Sprint Board, Backlog" | |
| 98 | +| `{projects_yaml}` | All project names as YAML array | `["Sprint Board", "Backlog"]` | |
| 99 | + |
| 100 | +### Custom Fields |
| 101 | + |
| 102 | +| Variable | Description | Example | |
| 103 | +|----------|-------------|---------| |
| 104 | +| `{project_fields}` | All custom fields as YAML | ` Effort: "5"` (with newlines) | |
| 105 | +| `{project_field:FieldName}` | Access specific custom field by name | `{project_field:Effort}` → "5" | |
| 106 | + |
71 | 107 | ## Conditional Blocks |
72 | 108 |
|
73 | 109 | | Syntax | Description | Example | |
74 | 110 | |--------|-------------|---------| |
75 | | -| `{variable:content}` | Shows content only if variable has a value | `Milestone: {milestone}}` | |
| 111 | +| `{variable:content}` | Shows content only if variable has a value | `{milestone:Milestone: {milestone}}` | |
| 112 | + |
| 113 | +### Project-related Conditionals |
| 114 | + |
| 115 | +| Syntax | Description | |
| 116 | +|--------|-------------| |
| 117 | +| `{project:content}` | Shows content only if item is in a project | |
| 118 | +| `{projects:content}` | Shows content if item is in any project | |
0 commit comments