microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
eng/common/config/labels.ts
233lines · modecode
| 1 | // cspell:ignore bfff |
| 2 | import { defineConfig, defineLabels } from "../scripts/labels/config.js"; |
| 3 | import { repo } from "../scripts/utils/common.js"; |
| 4 | import { AreaPaths } from "./area.js"; |
| 5 | |
| 6 | /** |
| 7 | * Labels that are used to categorize issue for which area they belong to. |
| 8 | */ |
| 9 | export const AreaLabels = defineLabels({ |
| 10 | "compiler:core": { |
| 11 | color: "453261", |
| 12 | description: "Issues for @typespec/compiler", |
| 13 | }, |
| 14 | "compiler:emitter-framework": { |
| 15 | color: "453261", |
| 16 | description: "Issues for the emitter framework", |
| 17 | }, |
| 18 | ide: { |
| 19 | color: "846da1", |
| 20 | description: "Issues for VS, VSCode, Monaco, etc.", |
| 21 | }, |
| 22 | "lib:http": { |
| 23 | color: "c7aee6", |
| 24 | description: "", |
| 25 | }, |
| 26 | "lib:openapi": { |
| 27 | color: "c7aee6", |
| 28 | description: "", |
| 29 | }, |
| 30 | "lib:rest": { |
| 31 | color: "c7aee6", |
| 32 | description: "", |
| 33 | }, |
| 34 | "lib:versioning": { |
| 35 | color: "c7aee6", |
| 36 | description: "", |
| 37 | }, |
| 38 | "lib:http-specs": { |
| 39 | color: "c7aee6", |
| 40 | description: "For issues/prs related to the @typespec/http-specs package", |
| 41 | }, |
| 42 | "meta:blog": { |
| 43 | color: "007dc8", |
| 44 | description: "Blog updates", |
| 45 | }, |
| 46 | "meta:website": { |
| 47 | color: "007dc8", |
| 48 | description: "TypeSpec.io updates", |
| 49 | }, |
| 50 | tspd: { |
| 51 | color: "004185", |
| 52 | description: "Issues for the tspd tool", |
| 53 | }, |
| 54 | "emitter:client:all": { |
| 55 | color: "e1b300", |
| 56 | description: "General issue for client emitters", |
| 57 | }, |
| 58 | "emitter:client:js": { |
| 59 | color: "e1b300", |
| 60 | description: "Issue for the JS client emitter: @typespec/http-client-js", |
| 61 | }, |
| 62 | "emitter:client:csharp": { |
| 63 | color: "e1b300", |
| 64 | description: "Issue for the C# client emitter: @typespec/http-client-csharp", |
| 65 | }, |
| 66 | "emitter:client:java": { |
| 67 | color: "e1b300", |
| 68 | description: "Issue for the Java client emitter: @typespec/http-client-java", |
| 69 | }, |
| 70 | "emitter:client:python": { |
| 71 | color: "e1b300", |
| 72 | description: "Issue for the Python client emitter: @typespec/http-client-python", |
| 73 | }, |
| 74 | "emitter:graphql": { |
| 75 | color: "957300", |
| 76 | description: "Issues for @typespec/graphql emitter", |
| 77 | }, |
| 78 | "emitter:json-schema": { |
| 79 | color: "957300", |
| 80 | description: "", |
| 81 | }, |
| 82 | "emitter:protobuf": { |
| 83 | color: "957300", |
| 84 | description: "The protobuf emitter", |
| 85 | }, |
| 86 | "emitter:openapi3": { |
| 87 | color: "957300", |
| 88 | description: "Issues for @typespec/openapi3 emitter", |
| 89 | }, |
| 90 | "openapi3:converter": { |
| 91 | color: "957300", |
| 92 | description: "Issues for @typespec/openapi3 openapi to typespec converter", |
| 93 | }, |
| 94 | "emitter:service:csharp": { |
| 95 | color: "967200", |
| 96 | description: "", |
| 97 | }, |
| 98 | "emitter:service:js": { |
| 99 | color: "967200", |
| 100 | description: "", |
| 101 | }, |
| 102 | "emitter:service:java": { |
| 103 | color: "967200", |
| 104 | description: "Issue for Java service emitter", |
| 105 | }, |
| 106 | spector: { |
| 107 | color: "65bfff", |
| 108 | description: "Issues related to spector and the spec sets", |
| 109 | }, |
| 110 | eng: { |
| 111 | color: "65bfff", |
| 112 | description: "", |
| 113 | }, |
| 114 | "ui:playground": { |
| 115 | color: "3256a8", |
| 116 | description: "", |
| 117 | }, |
| 118 | "ui:type-graph-viewer": { |
| 119 | color: "3256a8", |
| 120 | description: "", |
| 121 | }, |
| 122 | }); |
| 123 | |
| 124 | export const CommonLabels = { |
| 125 | issue_kinds: { |
| 126 | description: "Issue kinds", |
| 127 | labels: defineLabels({ |
| 128 | bug: { |
| 129 | color: "d93f0b", |
| 130 | description: "Something isn't working", |
| 131 | }, |
| 132 | feature: { |
| 133 | color: "cccccc", |
| 134 | description: "New feature or request", |
| 135 | }, |
| 136 | docs: { |
| 137 | color: "cccccc", |
| 138 | description: "Improvements or additions to documentation", |
| 139 | }, |
| 140 | epic: { |
| 141 | color: "cccccc", |
| 142 | description: "", |
| 143 | }, |
| 144 | }), |
| 145 | }, |
| 146 | "breaking-change": { |
| 147 | description: |
| 148 | "Labels around annotating issues and PR if they contain breaking change or deprecation", |
| 149 | labels: { |
| 150 | "breaking-change": { |
| 151 | color: "B60205", |
| 152 | description: "A change that might cause specs or code to break", |
| 153 | }, |
| 154 | deprecation: { |
| 155 | color: "760205", |
| 156 | description: |
| 157 | "A previously supported feature will now report a warning and eventually be removed", |
| 158 | }, |
| 159 | }, |
| 160 | }, |
| 161 | "design-issues": { |
| 162 | description: "Design issue management", |
| 163 | labels: { |
| 164 | "design:accepted": { |
| 165 | color: "1a4421", |
| 166 | description: "Proposal for design has been discussed and accepted.", |
| 167 | }, |
| 168 | "design:needed": { |
| 169 | color: "96c499", |
| 170 | description: "A design request has been raised that needs a proposal", |
| 171 | }, |
| 172 | "design:proposed": { |
| 173 | color: "56815a", |
| 174 | description: "Proposal has been added and ready for discussion", |
| 175 | }, |
| 176 | }, |
| 177 | }, |
| 178 | process: { |
| 179 | description: "Process labels", |
| 180 | labels: { |
| 181 | "needs-area": { |
| 182 | color: "ffffff", |
| 183 | description: "", |
| 184 | }, |
| 185 | "needs-info": { |
| 186 | color: "ffffff", |
| 187 | description: |
| 188 | "Mark an issue that needs reply from the author or it will be closed automatically", |
| 189 | }, |
| 190 | stale: { |
| 191 | color: "ffffff", |
| 192 | description: "Mark a PR that hasn't been recently updated and will be closed.", |
| 193 | }, |
| 194 | "triaged:core": { |
| 195 | color: "5319e7", |
| 196 | description: "", |
| 197 | }, |
| 198 | }, |
| 199 | }, |
| 200 | }; |
| 201 | |
| 202 | export default defineConfig({ |
| 203 | repo, |
| 204 | labels: { |
| 205 | area: { |
| 206 | description: "Area of the codebase", |
| 207 | labels: AreaLabels, |
| 208 | }, |
| 209 | ...CommonLabels, |
| 210 | misc: { |
| 211 | description: "Misc labels", |
| 212 | labels: { |
| 213 | "1_0_E2E": { |
| 214 | color: "5319E7", |
| 215 | description: "", |
| 216 | }, |
| 217 | "Client Emitter Migration": { |
| 218 | color: "FD92F0", |
| 219 | description: "", |
| 220 | }, |
| 221 | "good first issue": { |
| 222 | color: "7057ff", |
| 223 | description: "Good for newcomers", |
| 224 | }, |
| 225 | mq: { |
| 226 | color: "0969da", |
| 227 | description: "Good candidate for MQ", |
| 228 | }, |
| 229 | }, |
| 230 | }, |
| 231 | }, |
| 232 | areaPaths: AreaPaths, |
| 233 | }); |
| 234 | |