diff --git a/.github/aw/github-agentic-workflows.md b/.github/aw/github-agentic-workflows.md index 639f71db49..606f354f36 100644 --- a/.github/aw/github-agentic-workflows.md +++ b/.github/aw/github-agentic-workflows.md @@ -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. + 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