-
Notifications
You must be signed in to change notification settings - Fork 249
[docs] Update documentation for features from 2026-02-22 #17741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -100,7 +100,7 @@ safe-outputs: | |||||
|
|
||||||
| #### Auto-Expiration | ||||||
|
|
||||||
| The `expires` field auto-closes issues after a time period. Supports integers (days), relative formats (`2h`, `7d`, `2w`, `1m`, `1y`), or `false` to disable expiration. Generates `agentics-maintenance.yml` workflow that runs at the minimum required frequency based on the shortest expiration time across all workflows: | ||||||
| The `expires` field auto-closes issues after a time period. Supports day-string format (`7d`, `2w`, `1m`, `1y`, `2h`) or `false` to disable expiration. Integer values (e.g., `expires: 7`) are also accepted as shorthand for days and can be migrated to string format with `gh aw fix --write`. Generates `agentics-maintenance.yml` workflow that runs at the minimum required frequency based on the shortest expiration time across all workflows: | ||||||
|
|
||||||
| - 1 day or less → every 2 hours | ||||||
| - 2 days → every 6 hours | ||||||
|
|
@@ -1241,6 +1241,37 @@ safe-outputs: | |||||
| - `["repo", "owner/other-repo"]` - Allow specific repositories | ||||||
| - Not specified (default) - All references allowed | ||||||
|
|
||||||
| ### Bot Mention Limit (`max-bot-mentions:`) | ||||||
|
|
||||||
| Agent output is automatically scanned for bot trigger phrases (e.g., `@copilot`, `@github-actions`) to prevent accidental automation triggering. By default, the first 10 occurrences are left unchanged and any excess are escaped with backticks. Entries already wrapped in backticks are skipped. | ||||||
|
|
||||||
|
Comment on lines
+1246
to
+1247
|
||||||
| Use `max-bot-mentions` to adjust this threshold: | ||||||
|
|
||||||
| ```yaml wrap | ||||||
| safe-outputs: | ||||||
| max-bot-mentions: 3 # Allow 3 unescaped bot mentions per output | ||||||
| create-issue: | ||||||
| ``` | ||||||
|
|
||||||
| Accepts a literal integer or a GitHub Actions expression string (e.g., `${{ inputs.max-mentions }}`). Set to `0` to escape all bot trigger phrases. Default: 10. | ||||||
|
|
||||||
| ### Templatable Fields | ||||||
|
|
||||||
| `max`, `expires`, and `max-bot-mentions` accept GitHub Actions expression strings in addition to literal integers, allowing workflow inputs or repository variables to control limits at runtime: | ||||||
|
|
||||||
| ```yaml wrap | ||||||
| safe-outputs: | ||||||
| max-bot-mentions: ${{ inputs.max-mentions }} | ||||||
| create-issue: | ||||||
| max: ${{ inputs.max-issues }} | ||||||
| expires: ${{ inputs.expires-days }} | ||||||
| create-pull-request: | ||||||
| max: ${{ inputs.max-prs }} | ||||||
| draft: ${{ inputs.create-draft }} | ||||||
| ``` | ||||||
|
|
||||||
| Most boolean configuration fields also accept expression strings. Fields that influence permission computation (such as `add-comment.discussion` and `create-pull-request.fallback-as-issue`) remain literal booleans. | ||||||
|
||||||
| Most boolean configuration fields also accept expression strings. Fields that influence permission computation (such as `add-comment.discussion` and `create-pull-request.fallback-as-issue`) remain literal booleans. | |
| Most boolean configuration fields also accept expression strings. Fields that influence permission computation (such as `add-comment.discussions` and `create-pull-request.fallback-as-issue`) remain literal booleans. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wording: this calls the preferred format "day-string" but the examples include
2h, which isn’t a day-string. Consider describing the preferred values as a duration string (e.g.,2h,7d,2w,1m,1y) to avoid implying only day-based suffixes are supported.