From f5f8df0a08f0444b5ece411127e7bdcdf7e2adb7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 00:14:39 +0000 Subject: [PATCH 1/3] Initial plan From 602eaae3619b1e537f6352dcbf9657fa18186d12 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 00:19:50 +0000 Subject: [PATCH 2/3] Initial plan for documenting environment input type Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/ai-moderator.lock.yml | 1 + .github/workflows/auto-triage-issues.lock.yml | 1 + .github/workflows/example-custom-error-patterns.lock.yml | 1 + .github/workflows/workflow-generator.lock.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/ai-moderator.lock.yml b/.github/workflows/ai-moderator.lock.yml index fdacecbdf42..f3bf929dd7a 100644 --- a/.github/workflows/ai-moderator.lock.yml +++ b/.github/workflows/ai-moderator.lock.yml @@ -1015,6 +1015,7 @@ jobs: GH_AW_RATE_LIMIT_MAX: "5" GH_AW_RATE_LIMIT_WINDOW: "60" GH_AW_RATE_LIMIT_EVENTS: "issue_comment,issues,workflow_dispatch" + GH_AW_RATE_LIMIT_IGNORED_ROLES: "admin,maintain,write" with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/auto-triage-issues.lock.yml b/.github/workflows/auto-triage-issues.lock.yml index 9d34e93bc6d..676e352e53d 100644 --- a/.github/workflows/auto-triage-issues.lock.yml +++ b/.github/workflows/auto-triage-issues.lock.yml @@ -1072,6 +1072,7 @@ jobs: GH_AW_RATE_LIMIT_MAX: "5" GH_AW_RATE_LIMIT_WINDOW: "60" GH_AW_RATE_LIMIT_EVENTS: "issues,workflow_dispatch" + GH_AW_RATE_LIMIT_IGNORED_ROLES: "admin,maintain,write" with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/example-custom-error-patterns.lock.yml b/.github/workflows/example-custom-error-patterns.lock.yml index 890c0df3378..e20898d296a 100644 --- a/.github/workflows/example-custom-error-patterns.lock.yml +++ b/.github/workflows/example-custom-error-patterns.lock.yml @@ -509,6 +509,7 @@ jobs: GH_AW_RATE_LIMIT_MAX: "5" GH_AW_RATE_LIMIT_WINDOW: "60" GH_AW_RATE_LIMIT_EVENTS: "issues" + GH_AW_RATE_LIMIT_IGNORED_ROLES: "admin,maintain,write" with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/workflow-generator.lock.yml b/.github/workflows/workflow-generator.lock.yml index 010f60e8275..919447be030 100644 --- a/.github/workflows/workflow-generator.lock.yml +++ b/.github/workflows/workflow-generator.lock.yml @@ -1140,6 +1140,7 @@ jobs: GH_AW_RATE_LIMIT_MAX: "5" GH_AW_RATE_LIMIT_WINDOW: "60" GH_AW_RATE_LIMIT_EVENTS: "issues" + GH_AW_RATE_LIMIT_IGNORED_ROLES: "admin,maintain,write" with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | From 52812f6d3486239a3fcd4f470bec4e174df47d39 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 00:21:07 +0000 Subject: [PATCH 3/3] Document environment input type for workflow_dispatch - Added detailed explanation of environment input type in DispatchOps pattern doc - Updated triggers reference with environment input type description - Added examples showing environment input usage - Clarified difference between environment input and manual-approval field Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- docs/src/content/docs/patterns/dispatchops.md | 39 ++++++++++++++++++- docs/src/content/docs/reference/triggers.md | 9 ++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/docs/src/content/docs/patterns/dispatchops.md b/docs/src/content/docs/patterns/dispatchops.md index afe6ba207b0..fefc53ab861 100644 --- a/docs/src/content/docs/patterns/dispatchops.md +++ b/docs/src/content/docs/patterns/dispatchops.md @@ -43,13 +43,50 @@ on: - medium - high default: medium + deploy_target: + description: 'Deployment environment' + required: false + type: environment + default: staging ``` **Supported input types:** - **`string`** - Free-form text input - **`boolean`** - True/false checkbox - **`choice`** - Dropdown selection with predefined options -- **`environment`** - Repository environment selector +- **`environment`** - Dropdown selection of GitHub environments configured in the repository + +### Environment Input Type + +The `environment` input type provides a dropdown selector populated with environments configured in your repository. This is useful for workflows that need to target specific deployment environments or use environment-specific secrets and protection rules. + +**Key characteristics:** +- Automatically populated from environments configured in repository Settings → Environments +- Returns the environment name as a string value +- Can specify a `default` value (must match an existing environment name) +- Does not require an `options` list (populated automatically from repository configuration) +- Does not enforce environment protection rules (see [Environment Approval Gates](#environment-approval-gates) below for that) + +**Example usage:** + +```yaml +on: + workflow_dispatch: + inputs: + target_env: + description: 'Deployment target' + required: true + type: environment + default: staging +``` + +Access the selected environment in your workflow markdown: + +```markdown +Deploy to the ${{ github.event.inputs.target_env }} environment. +``` + +**Note:** The `environment` input type only provides a selector for environment names. To enforce environment protection rules (approval gates, required reviewers, wait timers), use the `manual-approval:` field in your workflow frontmatter (see [Environment Approval Gates](#environment-approval-gates) below). ## Security Model diff --git a/docs/src/content/docs/reference/triggers.md b/docs/src/content/docs/reference/triggers.md index cc9214066b4..6784064e706 100644 --- a/docs/src/content/docs/reference/triggers.md +++ b/docs/src/content/docs/reference/triggers.md @@ -45,6 +45,11 @@ on: - medium - high default: medium + deploy_env: + description: 'Target environment' + required: false + type: environment + default: staging ``` #### Accessing Inputs in Markdown @@ -77,7 +82,9 @@ Provide a comprehensive summary with key findings and recommendations. - `string` - Free-form text input - `boolean` - True/false checkbox - `choice` - Dropdown selection with predefined options -- `environment` - Repository environment selector +- `environment` - Dropdown selection of GitHub environments configured in the repository + +The `environment` input type automatically populates a dropdown with environments configured in repository Settings → Environments. It returns the environment name as a string and supports a `default` value. Unlike the `manual-approval:` field, using an `environment` input does not enforce environment protection rules—it only provides the environment name as a string value for use in your workflow logic. ### Scheduled Triggers (`schedule:`)