Skip to content

Commit

Permalink
ci(github/policies): remove bot rules that created and added `Compone…
Browse files Browse the repository at this point in the history
…nt/Package $1`: labels on PRs (#29301)

* ci: add whole .github/ to v-build ownership

* ci(github/policies): remove bot rules that created and added Component/Package:  labels on PRs

* ci(github/policies): add readme

* ci: add github/policies to lage ignore
  • Loading branch information
Hotell authored Oct 2, 2023
1 parent 18ddec9 commit da9a088
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 25 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -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.
34 changes: 0 additions & 34 deletions .github/policies/botRules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions lage.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da9a088

Please sign in to comment.