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 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/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: 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