diff --git a/.github/aw/schemas/agentic-workflow.json b/.github/aw/schemas/agentic-workflow.json index 13c7a9a0da..76034b7718 100644 --- a/.github/aw/schemas/agentic-workflow.json +++ b/.github/aw/schemas/agentic-workflow.json @@ -3086,8 +3086,8 @@ }, { "type": "string", - "pattern": "^[0-9]+[hHdDwWmMyY]$", - "description": "Relative time (e.g., '20h', '7d', '2w', '1m', '1y')" + "pattern": "^[0-9]+[dDwWmMyY]$", + "description": "Relative time (e.g., '7d', '2w', '1m', '1y')" } ], "description": "Time until the issue expires and should be automatically closed. Supports integer (days) or relative time format. When set, a maintenance workflow will be generated." @@ -3248,11 +3248,11 @@ }, { "type": "string", - "pattern": "^[0-9]+[hHdDwWmMyY]$", - "description": "Relative time (e.g., '20h', '7d', '2w', '1m', '1y')" + "pattern": "^[0-9]+[dDwWmMyY]$", + "description": "Relative time (e.g., '7d', '2w', '1m', '1y')" } ], - "description": "Time until the discussion expires and should be automatically closed. Supports integer (days) or relative time format like '20h' (20 hours), '7d' (7 days), '2w' (2 weeks), '1m' (1 month), '1y' (1 year). When set, a maintenance workflow will be generated." + "description": "Time until the discussion expires and should be automatically closed. Supports integer (days) or relative time format like '7d' (7 days), '2w' (2 weeks), '1m' (1 month), '1y' (1 year). When set, a maintenance workflow will be generated." } }, "additionalProperties": false, @@ -3634,8 +3634,8 @@ }, { "type": "string", - "pattern": "^[0-9]+[hHdDwWmMyY]$", - "description": "Relative time (e.g., '20h', '7d', '2w', '1m', '1y')" + "pattern": "^[0-9]+[dDwWmMyY]$", + "description": "Relative time (e.g., '7d', '2w', '1m', '1y')" } ], "description": "Time until the pull request expires and should be automatically closed (only for same-repo PRs without target-repo). Supports integer (days) or relative time format." diff --git a/.github/workflows/slide-deck-maintainer.lock.yml b/.github/workflows/slide-deck-maintainer.lock.yml index 6fdb43e23a..16a1bceb66 100644 --- a/.github/workflows/slide-deck-maintainer.lock.yml +++ b/.github/workflows/slide-deck-maintainer.lock.yml @@ -7247,6 +7247,7 @@ jobs: GH_AW_PR_IF_NO_CHANGES: "warn" GH_AW_PR_ALLOW_EMPTY: "false" GH_AW_MAX_PATCH_SIZE: 1024 + GH_AW_PR_EXPIRES: "1" with: github-token: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/slide-deck-maintainer.md b/.github/workflows/slide-deck-maintainer.md index 7740c40dcd..b711f0366c 100644 --- a/.github/workflows/slide-deck-maintainer.md +++ b/.github/workflows/slide-deck-maintainer.md @@ -41,7 +41,7 @@ tools: safe-outputs: create-pull-request: title-prefix: "[slides] " - expires: 20h + expires: 1d network: allowed: - node diff --git a/docs/src/content/docs/reference/frontmatter-full.md b/docs/src/content/docs/reference/frontmatter-full.md index 84a5a195bb..edcd93074b 100644 --- a/docs/src/content/docs/reference/frontmatter-full.md +++ b/docs/src/content/docs/reference/frontmatter-full.md @@ -1747,7 +1747,7 @@ safe-outputs: # Option 1: Number of days until expires expires: 1 - # Option 2: Relative time (e.g., '20h', '7d', '2w', '1m', '1y') + # Option 2: Relative time (e.g., '7d', '2w', '1m', '1y') expires: "example-value" # Option 2: Enable issue creation with default configuration @@ -1872,16 +1872,15 @@ safe-outputs: close-older-discussions: true # Time until the discussion expires and should be automatically closed. Supports - # integer (days) or relative time format like '20h' (20 hours), '7d' (7 days), - # '2w' (2 weeks), '1m' (1 month), '1y' (1 year). When set, a maintenance workflow - # will be generated. + # integer (days) or relative time format like '7d' (7 days), '2w' (2 weeks), '1m' + # (1 month), '1y' (1 year). When set, a maintenance workflow will be generated. # (optional) # This field supports multiple formats (oneOf): # Option 1: Number of days until expires expires: 1 - # Option 2: Relative time (e.g., '20h', '7d', '2w', '1m', '1y') + # Option 2: Relative time (e.g., '7d', '2w', '1m', '1y') expires: "example-value" # Option 2: Enable discussion creation with default configuration @@ -2171,7 +2170,7 @@ safe-outputs: # Option 1: Number of days until expires expires: 1 - # Option 2: Relative time (e.g., '20h', '7d', '2w', '1m', '1y') + # Option 2: Relative time (e.g., '7d', '2w', '1m', '1y') expires: "example-value" # Option 2: Enable pull request creation with default configuration diff --git a/pkg/parser/schemas/main_workflow_schema.json b/pkg/parser/schemas/main_workflow_schema.json index 13c7a9a0da..76034b7718 100644 --- a/pkg/parser/schemas/main_workflow_schema.json +++ b/pkg/parser/schemas/main_workflow_schema.json @@ -3086,8 +3086,8 @@ }, { "type": "string", - "pattern": "^[0-9]+[hHdDwWmMyY]$", - "description": "Relative time (e.g., '20h', '7d', '2w', '1m', '1y')" + "pattern": "^[0-9]+[dDwWmMyY]$", + "description": "Relative time (e.g., '7d', '2w', '1m', '1y')" } ], "description": "Time until the issue expires and should be automatically closed. Supports integer (days) or relative time format. When set, a maintenance workflow will be generated." @@ -3248,11 +3248,11 @@ }, { "type": "string", - "pattern": "^[0-9]+[hHdDwWmMyY]$", - "description": "Relative time (e.g., '20h', '7d', '2w', '1m', '1y')" + "pattern": "^[0-9]+[dDwWmMyY]$", + "description": "Relative time (e.g., '7d', '2w', '1m', '1y')" } ], - "description": "Time until the discussion expires and should be automatically closed. Supports integer (days) or relative time format like '20h' (20 hours), '7d' (7 days), '2w' (2 weeks), '1m' (1 month), '1y' (1 year). When set, a maintenance workflow will be generated." + "description": "Time until the discussion expires and should be automatically closed. Supports integer (days) or relative time format like '7d' (7 days), '2w' (2 weeks), '1m' (1 month), '1y' (1 year). When set, a maintenance workflow will be generated." } }, "additionalProperties": false, @@ -3634,8 +3634,8 @@ }, { "type": "string", - "pattern": "^[0-9]+[hHdDwWmMyY]$", - "description": "Relative time (e.g., '20h', '7d', '2w', '1m', '1y')" + "pattern": "^[0-9]+[dDwWmMyY]$", + "description": "Relative time (e.g., '7d', '2w', '1m', '1y')" } ], "description": "Time until the pull request expires and should be automatically closed (only for same-repo PRs without target-repo). Supports integer (days) or relative time format."