Skip to content

Commit 219c7b8

Browse files
authored
feat: Add skip_copilot_assignment input (#598)
Part of github/continuous-ai-for-accessibility#20 (Hubber access only) Implements @kendallgassner’s boolean input suggestion[^1] from https://github.slack.com/archives/C096E0MSFFY/p1758141682789409?thread_ts=1758136571.223419&cid=C096E0MSFFY (Hubber access only) This PR adds a new optional input to the main composite scanner action named `skip_copilot_assignment`: - If provided and set to exactly `true` (a lowercase string, no leading or trailing whitespace), then the ‘Fix’ step is skipped. - If omitted, or if set to any other value (including `True`, `TRUE`, `yes`, `false`, etc.), then the ‘Fix’ step is _not_ skipped. If a workflow uses `skip_copilot_assignment: true`, Copilot can still be assigned _manually_ (or by other automations) to issues opened by that workflow. [^1]: With a small difference: This PR uses underscores, to match the style of the other inputs.
2 parents ecd51c8 + f20dfce commit 219c7b8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Trigger the workflow manually or automatically based on your configuration. The
9696
| `repository` | Yes | Repository (with owner) for issues and PRs | `primer/primer-docs` |
9797
| `token` | Yes | PAT with write permissions (see above) | `${{ secrets.GH_TOKEN }}` |
9898
| `cache_key` | No | Custom key for caching findings across runs<br>Allowed: `A-Za-z0-9._/-` | `cached_findings-main-primer.style.json` |
99+
| `skip_copilot_assignment` | No | Whether to skip assigning filed issues to Copilot | `true` |
99100

100101
---
101102

action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ inputs:
1515
cache_key:
1616
description: "Custom key for caching findings across runs"
1717
required: false
18+
skip_copilot_assignment:
19+
description: "Whether to skip assigning filed issues to Copilot"
20+
required: false
21+
default: "false"
1822

1923
runs:
2024
using: "composite"
@@ -48,7 +52,8 @@ runs:
4852
repository: ${{ inputs.repository }}
4953
token: ${{ inputs.token }}
5054
cached_findings: ${{ steps.restore.outputs.value }}
51-
- name: Fix
55+
- if: ${{ inputs.skip_copilot_assignment != 'true' }}
56+
name: Fix
5257
id: fix
5358
uses: ./.github/actions/fix
5459
with:

0 commit comments

Comments
 (0)