Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new label for openapi converter and ui #3877

Merged
merged 4 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/policies/issues.triage.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,18 @@ configuration:
label: emitter:protobuf
- hasLabel:
label: emitter:openapi3
- hasLabel:
label: openapi3:converter
- hasLabel:
label: emitter:service:csharp
- hasLabel:
label: emitter:service:js
- hasLabel:
label: eng
- hasLabel:
label: ui:playground
- hasLabel:
label: ui:type-graph-viewer
then:
- addLabel:
label: needs-area
Expand Down Expand Up @@ -89,12 +95,18 @@ configuration:
label: emitter:protobuf
- labelAdded:
label: emitter:openapi3
- labelAdded:
label: openapi3:converter
- labelAdded:
label: emitter:service:csharp
- labelAdded:
label: emitter:service:js
- labelAdded:
label: eng
- labelAdded:
label: ui:playground
- labelAdded:
label: ui:type-graph-viewer
then:
- removeLabel:
label: needs-area
Expand Down Expand Up @@ -134,12 +146,18 @@ configuration:
label: emitter:protobuf
- labelRemoved:
label: emitter:openapi3
- labelRemoved:
label: openapi3:converter
- labelRemoved:
label: emitter:service:csharp
- labelRemoved:
label: emitter:service:js
- labelRemoved:
label: eng
- labelRemoved:
label: ui:playground
- labelRemoved:
label: ui:type-graph-viewer
- not:
or:
- hasLabel:
Expand Down Expand Up @@ -170,12 +188,18 @@ configuration:
label: emitter:protobuf
- hasLabel:
label: emitter:openapi3
- hasLabel:
label: openapi3:converter
- hasLabel:
label: emitter:service:csharp
- hasLabel:
label: emitter:service:js
- hasLabel:
label: eng
- hasLabel:
label: ui:playground
- hasLabel:
label: ui:type-graph-viewer
then:
- addLabel:
label: needs-area
18 changes: 18 additions & 0 deletions .github/policies/prs.triage.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ configuration:
then:
- addLabel:
label: emitter:openapi3
- if:
- filesMatchPattern:
pattern: packages/openapi3/src/cli/actions/convert/.*
then:
- addLabel:
label: openapi3:converter
- if:
- filesMatchPattern:
pattern: eng/.*
Expand All @@ -106,3 +112,15 @@ configuration:
then:
- addLabel:
label: eng
- if:
- filesMatchPattern:
pattern: packages/playground/.*
then:
- addLabel:
label: ui:playground
- if:
- filesMatchPattern:
pattern: packages/html-program-viewer/.*
then:
- addLabel:
label: ui:type-graph-viewer
41 changes: 22 additions & 19 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,25 +301,28 @@ TypeSpec repo use labels to help categorize and manage issues and PRs. The follo

Area of the codebase

| Name | Color | Description |
| ---------------------------- | ------- | ------------------------------------- |
| `compiler:core` | #453261 | Issues for @typespec/compiler |
| `compiler:emitter-framework` | #453261 | Issues for the emitter framework |
| `ide` | #846da1 | Issues for VS, VSCode, Monaco, etc. |
| `lib:http` | #c7aee6 | |
| `lib:openapi` | #c7aee6 | |
| `lib:rest` | #c7aee6 | |
| `lib:versioning` | #c7aee6 | |
| `meta:blog` | #007dc8 | Blog updates |
| `meta:website` | #007dc8 | TypeSpec.io updates |
| `tspd` | #004185 | Issues for the tspd tool |
| `emitter:client:csharp` | #e1b300 | |
| `emitter:json-schema` | #957300 | |
| `emitter:protobuf` | #957300 | The protobuf emitter |
| `emitter:openapi3` | #957300 | Issues for @typespec/openapi3 emitter |
| `emitter:service:csharp` | #967200 | |
| `emitter:service:js` | #967200 | |
| `eng` | #65bfff | |
| Name | Color | Description |
| ---------------------------- | ------- | ----------------------------------------------------------- |
| `compiler:core` | #453261 | Issues for @typespec/compiler |
| `compiler:emitter-framework` | #453261 | Issues for the emitter framework |
| `ide` | #846da1 | Issues for VS, VSCode, Monaco, etc. |
| `lib:http` | #c7aee6 | |
| `lib:openapi` | #c7aee6 | |
| `lib:rest` | #c7aee6 | |
| `lib:versioning` | #c7aee6 | |
| `meta:blog` | #007dc8 | Blog updates |
| `meta:website` | #007dc8 | TypeSpec.io updates |
| `tspd` | #004185 | Issues for the tspd tool |
| `emitter:client:csharp` | #e1b300 | |
| `emitter:json-schema` | #957300 | |
| `emitter:protobuf` | #957300 | The protobuf emitter |
| `emitter:openapi3` | #957300 | Issues for @typespec/openapi3 emitter |
| `openapi3:converter` | #957300 | Issues for @typespec/openapi3 openapi to typespec converter |
| `emitter:service:csharp` | #967200 | |
| `emitter:service:js` | #967200 | |
| `eng` | #65bfff | |
| `ui:playground` | #3256a8 | |
| `ui:type-graph-viewer` | #3256a8 | |

#### issue_kinds

Expand Down
15 changes: 15 additions & 0 deletions eng/common/config/labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export const AreaLabels = defineLabels({
color: "957300",
description: "Issues for @typespec/openapi3 emitter",
},
"openapi3:converter": {
color: "957300",
description: "Issues for @typespec/openapi3 openapi to typespec converter",
},
"emitter:service:csharp": {
color: "967200",
description: "",
Expand All @@ -74,6 +78,14 @@ export const AreaLabels = defineLabels({
color: "65bfff",
description: "",
},
"ui:playground": {
color: "3256a8",
description: "",
},
"ui:type-graph-viewer": {
color: "3256a8",
description: "",
},
});

export const CommonLabels = {
Expand Down Expand Up @@ -168,9 +180,12 @@ export const AreaPaths: Record<keyof typeof AreaLabels, string[]> = {
"emitter:json-schema": ["packages/json-schema/"],
"emitter:protobuf": ["packages/protobuf/"],
"emitter:openapi3": ["packages/openapi3/"],
"openapi3:converter": ["packages/openapi3/src/cli/actions/convert/"],
"emitter:service:csharp": [],
"emitter:service:js": [],
eng: ["eng/", ".github/"],
"ui:playground": ["packages/playground/"],
"ui:type-graph-viewer": ["packages/html-program-viewer/"],
};

export default defineConfig({
Expand Down
Loading