forked from loafle/openapi-generator-original
Support [typescript] as a pattern for auto-labeler (#4180)
* Support labeling changes which affect all typescript generators using `[typescript]` in title * Add negative test case for Typescript change.
This commit is contained in:
86
.github/.test/samples.json
vendored
86
.github/.test/samples.json
vendored
@@ -134,7 +134,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "csharp-refactor-petstore.sh",
|
||||
"input": "csharp-netcore-petstore.sh",
|
||||
"matches": [
|
||||
"Client: C-Sharp"
|
||||
]
|
||||
@@ -218,7 +218,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "finch-petstore-server.sh",
|
||||
"input": "scala-finch-petstore-server.sh",
|
||||
"matches": [
|
||||
"Server: Scala"
|
||||
]
|
||||
@@ -260,7 +260,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "graphql-server-petstore.sh",
|
||||
"input": "graphql-nodejs-express-server.sh",
|
||||
"matches": [
|
||||
"Server: GraphQL"
|
||||
]
|
||||
@@ -825,13 +825,13 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "python-flask-petstore-python2.sh",
|
||||
"input": "python-server-flask-petstore-python2.sh",
|
||||
"matches": [
|
||||
"Server: Python"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "python-flask-petstore.sh",
|
||||
"input": "python-server-flask-petstore.sh",
|
||||
"matches": [
|
||||
"Server: Python"
|
||||
]
|
||||
@@ -878,12 +878,6 @@
|
||||
"Client: Rust"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "rust-reqwest-petstore.sh",
|
||||
"matches": [
|
||||
"Client: Rust"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "rust-server-petstore.sh",
|
||||
"matches": [
|
||||
@@ -1311,6 +1305,76 @@
|
||||
"matches": [
|
||||
"Announcement"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-angular] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-angularjs] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-aurelia] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-axios] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-fetch] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-inversify] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-jquery] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-node] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "[typescript-rxjs] Generic typescript text",
|
||||
"matches": [
|
||||
"Client: TypeScript"
|
||||
]
|
||||
},
|
||||
{
|
||||
"input": "Should not auto-label for typescript outside of brackets.",
|
||||
"matches": []
|
||||
}
|
||||
]
|
||||
}
|
||||
1
.github/auto-labeler.yml
vendored
1
.github/auto-labeler.yml
vendored
@@ -138,6 +138,7 @@ labels:
|
||||
- '\s*?-[gl] swift[34]+\s*?'
|
||||
- '\s*?-[gl] swift2-deprecated\s*?'
|
||||
'Client: TypeScript':
|
||||
- '\s*?\[typescript\]\s*?'
|
||||
- '\s*?\[typescript-[\-a-z]+\]\s*?'
|
||||
- '\s*?-[gl] typescript-[\-a-z]+\s*?'
|
||||
# 'Client: VB/VB.net': # NOTE: Not yet implemented
|
||||
|
||||
Reference in New Issue
Block a user