Skip to content

Commit 2e5d752

Browse files
authored
Merge transform templates into generic ones (#548)
1 parent e51c85b commit 2e5d752

File tree

4 files changed

+30
-154
lines changed

4 files changed

+30
-154
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body:
1818
description: |
1919
A clear and concise description of what the bug is. A bug is **unintended**. A feature not being implemented is **not a bug**.
2020
placeholder: |
21-
eg: aws-sdk-js-codemod crashes with a specific error.
21+
eg: Running transform "transformName" on the provided input causes it to crash.
2222
validations:
2323
required: true
2424

@@ -28,6 +28,15 @@ body:
2828
description: The _minimal_ steps to reproduce your issue.
2929
placeholder: |
3030
Please share code or minimal repo, and steps to reproduce the behavior.
31+
Like an example input file, and the command you ran.
32+
33+
```ts
34+
import AWS from "aws-sdk";
35+
36+
const region = "us-west-2";
37+
const client = new AWS.DynamoDB({ region });
38+
const response = await client.listTables({}).promise();
39+
```
3140
validations:
3241
required: true
3342

@@ -45,7 +54,7 @@ body:
4554
label: Expected behavior
4655
description: A clear and concise description of what you were expecting to happen.
4756
placeholder: |
48-
eg: The aws-sdk-js-codemod script should have run successfully.
57+
eg: The aws-sdk-js-codemod script should have run successfully, and/or return specific output.
4958
validations:
5059
required: true
5160

.github/ISSUE_TEMPLATE/bug_report_transform.yml

Lines changed: 0 additions & 92 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ body:
1818
description: |
1919
Is your feature request related to a problem? Please describe.
2020
placeholder: |
21-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
21+
A clear and concise description of what the problem is.
22+
23+
For example, I need transformation for the following code:
24+
```ts
25+
import AWS from "aws-sdk";
26+
27+
const region = "us-west-2";
28+
const client = new AWS.DynamoDB({ region });
29+
const response = await client.listTables({}).promise();
30+
```
2231
validations:
2332
required: true
2433

@@ -28,6 +37,15 @@ body:
2837
description: Describe the solution you'd like.
2938
placeholder: |
3039
A clear and concise description of what you want to happen.
40+
41+
For example, I'd like the above code to be transformed to:
42+
```ts
43+
import { DynamoDB } from "@aws-sdk/client-dynamodb";
44+
45+
const region = "us-west-2";
46+
const client = new DynamoDB({ region });
47+
const response = await client.listTables({});
48+
```
3149
validations:
3250
required: true
3351

.github/ISSUE_TEMPLATE/feature_request_transform.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)