Skip to content
Merged
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: 5 additions & 0 deletions pkg/cli/templates/github-agentic-workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,13 @@ The YAML frontmatter supports these fields:
reviewers: [user1, copilot] # Optional: reviewers (use 'copilot' for bot)
draft: true # Optional: create as draft PR (defaults to true)
if-no-changes: "warn" # Optional: "warn" (default), "error", or "ignore"
expires: 7 # Optional: auto-close after 7 days (supports: 2h, 7d, 2w, 1m, 1y; min: 2h)
auto-merge: false # Optional: enable auto-merge when checks pass (default: false)
target-repo: "owner/repo" # Optional: cross-repository
```

**Auto-Expiration**: The `expires` field auto-closes PRs after a time period. Supports integers (days) or relative formats (2h, 7d, 2w, 1m, 1y). Minimum duration: 2 hours. Only for same-repo PRs without target-repo. Generates `agentics-maintenance.yml` workflow.
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The documentation states that the minimum duration for the expires field is 2 hours, but this restriction applies inconsistently across the documentation. For create-issue (line 364), no minimum duration is mentioned, while for create-pull-request (line 438), it explicitly states "min: 2h". Based on the code in pkg/workflow/time_delta.go:442, the 2-hour minimum applies to all expires fields. The create-issue documentation should also include this minimum duration constraint for consistency.

Suggested change
**Auto-Expiration**: The `expires` field auto-closes PRs after a time period. Supports integers (days) or relative formats (2h, 7d, 2w, 1m, 1y). Minimum duration: 2 hours. Only for same-repo PRs without target-repo. Generates `agentics-maintenance.yml` workflow.
**Auto-Expiration**: The `expires` field auto-closes items (issues and PRs) after a time period. Supports integers (days) or relative formats (2h, 7d, 2w, 1m, 1y). Minimum duration for all `expires` fields: 2 hours. For pull requests, auto-expiration is only available for same-repo PRs without `target-repo` and generates the `agentics-maintenance.yml` workflow.

Copilot uses AI. Check for mistakes.

Comment on lines +438 to +444
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The PR description discusses investigating MCP server configuration issues with alpine:latest vs alpine:3.20, TAVILY_API_KEY secrets, and gateway failures. However, the actual code changes add documentation for the expires and auto-merge fields for pull request configuration. This is a significant discrepancy between what the PR claims to do and what it actually changes. The PR description appears to be from an unrelated investigation or issue, while the changes are legitimate feature documentation updates.

Copilot uses AI. Check for mistakes.
When using `output.create-pull-request`, the main job does **not** need `contents: write` or `pull-requests: write` permissions since PR creation is handled by a separate job with appropriate permissions.
- `create-pull-request-review-comment:` - Safe PR review comment creation on code lines
```yaml
Expand Down
Loading