From 1637a9d95026dd0777e4f7133c4160b875affa46 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Jul 2026 15:04:06 -0700 Subject: [PATCH 1/5] try to fix warnings --- .github/policies/close-issues.yml | 82 +++++++++---------- .../workflows/check-for-build-warnings.yml | 2 +- .github/workflows/generate-preview-links.yml | 2 +- 3 files changed, 43 insertions(+), 43 deletions(-) diff --git a/.github/policies/close-issues.yml b/.github/policies/close-issues.yml index 9405d590b3a93..e9fc13b191fa9 100644 --- a/.github/policies/close-issues.yml +++ b/.github/policies/close-issues.yml @@ -3,45 +3,45 @@ description: Close issues based on label resource: repository where: configuration: - resourceManagementConfiguration: - scheduledSearches: - - frequencies: - - daily: - time: 12:00 - filters: - - isIssue - - isOpen - - hasLabel: - label: needs-more-info - - noActivitySince: - days: 14 - actions: - - addReply: - reply: This issue has been automatically closed due to no response from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further. - - closeIssue + resourceManagementConfiguration: + scheduledSearches: + - frequencies: + - daily: + time: 12:00 + filters: + - isIssue + - isOpen + - hasLabel: + label: needs-more-info + - noActivitySince: + days: 14 + actions: + - addReply: + reply: This issue has been automatically closed due to no response from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further. + - closeIssue - eventResponderTasks: - - description: Remove needs-more-info label when author comments on issue - if: - - payloadType: Issue_Comment - - isAction: - action: Created - - isActivitySender: - issueAuthor: True - - hasLabel: - label: needs-more-info - - isOpen - then: - - removeLabel: - label: needs-more-info - triggerOnOwnActions: true - - - description: Close issues labeled 'code-of-conduct' - if: - - payloadType: Issues - - hasLabel: - label: code-of-conduct - then: - - closeIssue - - removeLabel: - label: ':watch: Not Triaged' + eventResponderTasks: + - description: Remove needs-more-info label when author comments on issue + if: + - payloadType: Issue_Comment + - isAction: + action: Created + - isActivitySender: + issueAuthor: True + - hasLabel: + label: needs-more-info + - isOpen + then: + - removeLabel: + label: needs-more-info + triggerOnOwnActions: true + + - description: Close issues labeled 'code-of-conduct' + if: + - payloadType: Issues + - hasLabel: + label: code-of-conduct + then: + - closeIssue + - removeLabel: + label: ':watch: Not Triaged' diff --git a/.github/workflows/check-for-build-warnings.yml b/.github/workflows/check-for-build-warnings.yml index 87297757e0f7f..3fdeedf3b00cc 100644 --- a/.github/workflows/check-for-build-warnings.yml +++ b/.github/workflows/check-for-build-warnings.yml @@ -20,6 +20,6 @@ jobs: with: egress-policy: audit - - uses: dotnet/docs-tools/actions/status-checker@main + - uses: dotnet/docs-tools/actions/status-checker@e761d65daef04078de70423f735850919b4c8610 with: repo_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/generate-preview-links.yml b/.github/workflows/generate-preview-links.yml index bb1271b9d863d..e0b4d5c445f55 100644 --- a/.github/workflows/generate-preview-links.yml +++ b/.github/workflows/generate-preview-links.yml @@ -20,7 +20,7 @@ jobs: with: egress-policy: audit - - uses: dotnet/docs-tools/actions/preview-link-generator@main + - uses: dotnet/docs-tools/actions/preview-link-generator@e761d65daef04078de70423f735850919b4c8610 with: repo_token: ${{ secrets.GITHUB_TOKEN }} docs_path: "docs" From f7b0f7e93abf6318f62cd917a91aaa1573d5a29d Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Jul 2026 15:17:44 -0700 Subject: [PATCH 2/5] Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/policies/close-issues.yml | 2 +- .github/workflows/check-for-build-warnings.yml | 2 +- .github/workflows/generate-preview-links.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/policies/close-issues.yml b/.github/policies/close-issues.yml index e9fc13b191fa9..00ede7c4f8124 100644 --- a/.github/policies/close-issues.yml +++ b/.github/policies/close-issues.yml @@ -27,7 +27,7 @@ configuration: - isAction: action: Created - isActivitySender: - issueAuthor: True + issueAuthor: true - hasLabel: label: needs-more-info - isOpen diff --git a/.github/workflows/check-for-build-warnings.yml b/.github/workflows/check-for-build-warnings.yml index 3fdeedf3b00cc..27def4ba21480 100644 --- a/.github/workflows/check-for-build-warnings.yml +++ b/.github/workflows/check-for-build-warnings.yml @@ -20,6 +20,6 @@ jobs: with: egress-policy: audit - - uses: dotnet/docs-tools/actions/status-checker@e761d65daef04078de70423f735850919b4c8610 + - uses: dotnet/docs-tools/actions/status-checker@e761d65daef04078de70423f735850919b4c8610 # main with: repo_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/generate-preview-links.yml b/.github/workflows/generate-preview-links.yml index e0b4d5c445f55..35f759da9db02 100644 --- a/.github/workflows/generate-preview-links.yml +++ b/.github/workflows/generate-preview-links.yml @@ -20,7 +20,7 @@ jobs: with: egress-policy: audit - - uses: dotnet/docs-tools/actions/preview-link-generator@e761d65daef04078de70423f735850919b4c8610 + - uses: dotnet/docs-tools/actions/preview-link-generator@e761d65daef04078de70423f735850919b4c8610 # main with: repo_token: ${{ secrets.GITHUB_TOKEN }} docs_path: "docs" From 3b6c4620d5c90c05df5242154d07a3bd8426fa8b Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Jul 2026 15:23:15 -0700 Subject: [PATCH 3/5] Modify close-issues.yml for GitOps integration Updated issue closing policy with new ID and name. --- .github/policies/close-issues.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/policies/close-issues.yml b/.github/policies/close-issues.yml index 00ede7c4f8124..536848e863b4b 100644 --- a/.github/policies/close-issues.yml +++ b/.github/policies/close-issues.yml @@ -1,6 +1,9 @@ -name: Close issues +id: close.issues +name: GitOps.IssueManagement description: Close issues based on label +owner: resource: repository +disabled: false where: configuration: resourceManagementConfiguration: From dfebb55ff738dedf97ab5e4d5dac986e20b2d656 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Jul 2026 15:26:04 -0700 Subject: [PATCH 4/5] reset file --- .github/policies/close-issues.yml | 82 +++++++++++++++---------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/.github/policies/close-issues.yml b/.github/policies/close-issues.yml index e9fc13b191fa9..9405d590b3a93 100644 --- a/.github/policies/close-issues.yml +++ b/.github/policies/close-issues.yml @@ -3,45 +3,45 @@ description: Close issues based on label resource: repository where: configuration: - resourceManagementConfiguration: - scheduledSearches: - - frequencies: - - daily: - time: 12:00 - filters: - - isIssue - - isOpen - - hasLabel: - label: needs-more-info - - noActivitySince: - days: 14 - actions: - - addReply: - reply: This issue has been automatically closed due to no response from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further. - - closeIssue + resourceManagementConfiguration: + scheduledSearches: + - frequencies: + - daily: + time: 12:00 + filters: + - isIssue + - isOpen + - hasLabel: + label: needs-more-info + - noActivitySince: + days: 14 + actions: + - addReply: + reply: This issue has been automatically closed due to no response from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further. + - closeIssue - eventResponderTasks: - - description: Remove needs-more-info label when author comments on issue - if: - - payloadType: Issue_Comment - - isAction: - action: Created - - isActivitySender: - issueAuthor: True - - hasLabel: - label: needs-more-info - - isOpen - then: - - removeLabel: - label: needs-more-info - triggerOnOwnActions: true - - - description: Close issues labeled 'code-of-conduct' - if: - - payloadType: Issues - - hasLabel: - label: code-of-conduct - then: - - closeIssue - - removeLabel: - label: ':watch: Not Triaged' + eventResponderTasks: + - description: Remove needs-more-info label when author comments on issue + if: + - payloadType: Issue_Comment + - isAction: + action: Created + - isActivitySender: + issueAuthor: True + - hasLabel: + label: needs-more-info + - isOpen + then: + - removeLabel: + label: needs-more-info + triggerOnOwnActions: true + + - description: Close issues labeled 'code-of-conduct' + if: + - payloadType: Issues + - hasLabel: + label: code-of-conduct + then: + - closeIssue + - removeLabel: + label: ':watch: Not Triaged' From 6fd5555a05199341df87c7011e684b2e057e2a33 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Jul 2026 15:31:12 -0700 Subject: [PATCH 5/5] reset file --- .github/policies/close-issues.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/policies/close-issues.yml b/.github/policies/close-issues.yml index 36266b6f1c25e..9405d590b3a93 100644 --- a/.github/policies/close-issues.yml +++ b/.github/policies/close-issues.yml @@ -1,9 +1,6 @@ -id: close.issues -name: GitOps.IssueManagement +name: Close issues description: Close issues based on label -owner: resource: repository -disabled: false where: configuration: resourceManagementConfiguration: @@ -38,7 +35,7 @@ configuration: - removeLabel: label: needs-more-info triggerOnOwnActions: true - + - description: Close issues labeled 'code-of-conduct' if: - payloadType: Issues