From ff177aa2946689c9980e4fc1820a281d30bc8e92 Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Tue, 26 Sep 2023 15:46:00 +0200 Subject: [PATCH 1/5] ci: add whole .github/ to v-build ownership --- .github/CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 201ae7ad8f5c18..f2987fc3384a67 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -27,6 +27,8 @@ #### Change files (no owner) /change +/.github/ @microsoft/fluentui-react-build + #### Build folders /.codesandbox @microsoft/fluentui-react-build /.devcontainer @microsoft/fluentui-react-build From 53bdae7f57f3c0878a6a976d06358cd154eede5f Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Tue, 26 Sep 2023 15:47:05 +0200 Subject: [PATCH 2/5] ci(github/policies): remove bot rules that created and added Component/Package: labels on PRs --- .github/policies/botRules.yml | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/.github/policies/botRules.yml b/.github/policies/botRules.yml index 6774b6aae2bc68..293d18841defc7 100644 --- a/.github/policies/botRules.yml +++ b/.github/policies/botRules.yml @@ -553,40 +553,6 @@ configuration: label: 'Package: styling' description: Auto label pull requests based on path triggerOnOwnActions: false - - if: - - payloadType: Pull_Request - then: - - if: - - filesMatchPattern: - pattern: packages/(?:office-ui-fabric-react|react(?:-(?!charting)\w+)?|date-time)/src/components/(?!pickers)([A-Z][a-zA-Z]*)/.* - excludedFiles: - - common/changes - - common/config/rush - - apps/vr-tests/src/stories - - packages/office-ui-fabric-react/src/components/__snapshots__/ - - packages/office-ui-fabric-react/etc - - change - - apps/a11y-tests/src/tests/__snapshots__/ComponentExamples.test.tsx.snap - - scripts - - packages/react/src/components/__snapshots__ - - packages/react-examples - - packages/react/etc - then: - - addLabel: - label: 'Component: $1' - - if: - - filesMatchPattern: - pattern: packages/(azure-themes|codemods|file-type-icons|fluent-theme|keyboard-key|lists|mdl2-theme|merge-styles|migration|react-hooks|utilities|eslint-plugin)/.* - excludedFiles: - - change - - common/changes - - scripts - - packages/react-examples - then: - - addLabel: - label: 'Package: $1' - description: Auto label pull requests based on path pattern matching - triggerOnOwnActions: false - if: - payloadType: Pull_Request - or: From dbce51838b988e02464072fdfbf9fa33599cae55 Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Tue, 26 Sep 2023 15:50:10 +0200 Subject: [PATCH 3/5] ci(github/policies): add readme --- .github/policies/README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/policies/README.md diff --git a/.github/policies/README.md b/.github/policies/README.md new file mode 100644 index 00000000000000..03e82cebb50cc2 --- /dev/null +++ b/.github/policies/README.md @@ -0,0 +1,7 @@ +# botRules.yml + +> 💡 NOTE: +> +> Originally this was a json configuration which we converted to yml via this tool https://github.com/1ES-microsoft/GitOps.PullRequestIssueManagement/tree/main/src/Tools/GitOps.PullRequestIssueManagement.JsonToYmlConverter + +GitOps bot - docs https://github.com/microsoft/GitOps/blob/main/docs/policies/resource-management.md From b0975943cff864b4d0a939386ac47faa3a715e92 Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Tue, 26 Sep 2023 16:02:40 +0200 Subject: [PATCH 4/5] fixup! ci(github/policies): add readme --- .github/README.md | 25 +++++++++++++++++++++++++ .github/policies/README.md | 7 ------- 2 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 .github/README.md delete mode 100644 .github/policies/README.md diff --git a/.github/README.md b/.github/README.md new file mode 100644 index 00000000000000..12ad11152a31ef --- /dev/null +++ b/.github/README.md @@ -0,0 +1,25 @@ +# .github + +This document contains docs for specific files/folders within our `.github` that are not standard github things. For common content please consult official github docs. + +## `actions/` + +custom github actions. https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions?learn=create_actions&learnProduct=actions + +## `workflows/` + +https://docs.github.com/en/actions/using-workflows/about-workflows + +## `policies/` + +### botRules.yml + +> 💡 NOTE: +> +> Originally this was a json configuration which we converted to yml via this tool https://github.com/1ES-microsoft/GitOps.PullRequestIssueManagement/tree/main/src/Tools/GitOps.PullRequestIssueManagement.JsonToYmlConverter + +GitOps bot - docs https://github.com/microsoft/GitOps/blob/main/docs/policies/resource-management.md + +## `triage-bot.config.json` + +Configuration for our custom triage-bot. See [docs](../scripts//triage-bot//README.md) to learn more. diff --git a/.github/policies/README.md b/.github/policies/README.md deleted file mode 100644 index 03e82cebb50cc2..00000000000000 --- a/.github/policies/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# botRules.yml - -> 💡 NOTE: -> -> Originally this was a json configuration which we converted to yml via this tool https://github.com/1ES-microsoft/GitOps.PullRequestIssueManagement/tree/main/src/Tools/GitOps.PullRequestIssueManagement.JsonToYmlConverter - -GitOps bot - docs https://github.com/microsoft/GitOps/blob/main/docs/policies/resource-management.md From 77900e1bf7e611cdee6ff0d9640c8929a7d1cce1 Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Tue, 26 Sep 2023 16:31:19 +0200 Subject: [PATCH 5/5] ci: add github/policies to lage ignore --- lage.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lage.config.js b/lage.config.js index 69d29cc91919d1..52eb6f52744027 100644 --- a/lage.config.js +++ b/lage.config.js @@ -33,6 +33,7 @@ module.exports = { '.github/CODEOWNERS', '.github/MAINTAINERS', '.github/ISSUE_TEMPLATE/**', + '.github/policies/**', ], // All of these options are sent to `backfill`: https://github.com/microsoft/backfill/blob/master/README.md