Skip to content

Commit da9a088

Browse files
authored
ci(github/policies): remove bot rules that created and added Component/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
1 parent 18ddec9 commit da9a088

4 files changed

Lines changed: 28 additions & 34 deletions

File tree

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#### Change files (no owner)
2828
/change
2929

30+
/.github/ @microsoft/fluentui-react-build
31+
3032
#### Build folders
3133
/.codesandbox @microsoft/fluentui-react-build
3234
/.devcontainer @microsoft/fluentui-react-build

.github/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# .github
2+
3+
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.
4+
5+
## `actions/`
6+
7+
custom github actions. https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions?learn=create_actions&learnProduct=actions
8+
9+
## `workflows/`
10+
11+
https://docs.github.com/en/actions/using-workflows/about-workflows
12+
13+
## `policies/`
14+
15+
### botRules.yml
16+
17+
> 💡 NOTE:
18+
>
19+
> 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
20+
21+
GitOps bot - docs https://github.com/microsoft/GitOps/blob/main/docs/policies/resource-management.md
22+
23+
## `triage-bot.config.json`
24+
25+
Configuration for our custom triage-bot. See [docs](../scripts//triage-bot//README.md) to learn more.

.github/policies/botRules.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -553,40 +553,6 @@ configuration:
553553
label: 'Package: styling'
554554
description: Auto label pull requests based on path
555555
triggerOnOwnActions: false
556-
- if:
557-
- payloadType: Pull_Request
558-
then:
559-
- if:
560-
- filesMatchPattern:
561-
pattern: packages/(?:office-ui-fabric-react|react(?:-(?!charting)\w+)?|date-time)/src/components/(?!pickers)([A-Z][a-zA-Z]*)/.*
562-
excludedFiles:
563-
- common/changes
564-
- common/config/rush
565-
- apps/vr-tests/src/stories
566-
- packages/office-ui-fabric-react/src/components/__snapshots__/
567-
- packages/office-ui-fabric-react/etc
568-
- change
569-
- apps/a11y-tests/src/tests/__snapshots__/ComponentExamples.test.tsx.snap
570-
- scripts
571-
- packages/react/src/components/__snapshots__
572-
- packages/react-examples
573-
- packages/react/etc
574-
then:
575-
- addLabel:
576-
label: 'Component: $1'
577-
- if:
578-
- filesMatchPattern:
579-
pattern: packages/(azure-themes|codemods|file-type-icons|fluent-theme|keyboard-key|lists|mdl2-theme|merge-styles|migration|react-hooks|utilities|eslint-plugin)/.*
580-
excludedFiles:
581-
- change
582-
- common/changes
583-
- scripts
584-
- packages/react-examples
585-
then:
586-
- addLabel:
587-
label: 'Package: $1'
588-
description: Auto label pull requests based on path pattern matching
589-
triggerOnOwnActions: false
590556
- if:
591557
- payloadType: Pull_Request
592558
- or:

lage.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module.exports = {
3333
'.github/CODEOWNERS',
3434
'.github/MAINTAINERS',
3535
'.github/ISSUE_TEMPLATE/**',
36+
'.github/policies/**',
3637
],
3738

3839
// All of these options are sent to `backfill`: https://github.com/microsoft/backfill/blob/master/README.md

0 commit comments

Comments
 (0)