Skip to content

Commit 6d6def1

Browse files
Merge pull request #14 from aws-github-ops/build
fix: build project
2 parents eada890 + a5c06e3 commit 6d6def1

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ documentation, we greatly value feedback and contributions from our community.
66
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
77
information to effectively respond to your bug report or contribution.
88

9+
## Building the Entrypoint File
10+
11+
The file that Github reads is `lib/index.js`. This is an autogenerated file built from the files found in `src`. To build the entrypoint file, run `npm run build` after all changes in `src` have been made.
12+
913

1014
## Reporting Bugs/Feature Requests
1115

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ jobs:
7777
excluded-expressions: "[ TypeScript | Java | Python ]"
7878
```
7979
80+
81+
## Contributing
82+
83+
We welcome community contributions and pull requests. See [CONTRIBUTING.md](./CONTRIBUTING.md) for information on how to contribute to this project
84+
8085
## Security
8186
8287
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.

lib/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28149,7 +28149,10 @@ class Issue {
2814928149
this.bodyIssueWords = body.split(/ |\(|\)|\./);
2815028150
}
2815128151
this.parameters = JSON.parse(core.getInput("parameters", { required: true }));
28152-
this.defaultArea = JSON.parse(core.getInput("default-area", { required: false }));
28152+
const defaultAreaInput = core.getInput("default-area", { required: false });
28153+
if (defaultAreaInput) {
28154+
this.defaultArea = JSON.parse(defaultAreaInput);
28155+
}
2815328156
this.similarity = +core.getInput("similarity", { required: false });
2815428157
this.bodyValue = +core.getInput("body-value", { required: false });
2815528158
}

0 commit comments

Comments
 (0)