Skip to content

Commit b85d79b

Browse files
committed
Merge branch 'release/1.1.1'
2 parents 663fe92 + f39c5c6 commit b85d79b

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55

66
## [Unreleased]
77

8+
## [1.1.1] - 2020-03-23
9+
### Fixed
10+
* Add missing `require()`
11+
812
## [1.1.0] - 2020-03-23
913
### Changed
1014
* Update dependencies
@@ -31,7 +35,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
3135
### Added
3236
* Execute comment
3337

34-
[Unreleased]: https://github.com/nwtgck/actions-netlify/compare/v1.1.0...HEAD
38+
[Unreleased]: https://github.com/nwtgck/actions-netlify/compare/v1.1.1...HEAD
39+
[1.1.1]: https://github.com/nwtgck/actions-netlify/compare/v1.1.0...v1.1.1
3540
[1.1.0]: https://github.com/nwtgck/actions-netlify/compare/v1.0.3...v1.1.0
3641
[1.0.3]: https://github.com/nwtgck/actions-netlify/compare/v1.0.2...v1.0.3
3742
[1.0.2]: https://github.com/nwtgck/actions-netlify/compare/v1.0.1...v1.0.2

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ For shorter, you can use as follows.
1515
@github-actions run
1616

1717
```js
18-
(async () => {
19-
await postComment("hello, world");
20-
})();
18+
await postComment("hello, world");
2119
```
2220
````
2321

@@ -350,10 +348,8 @@ Built bundle .js files are hosted on GitHub Pages. So, your comment will be as f
350348
@github-actions run
351349

352350
```js
353-
(async () => {
354-
const url = "https://nwtgck.github.io/comment-run-scripts/hello-world-comment.js";
355-
const js = await (await fetch(url)).text();
356-
eval(js);
357-
})();
351+
const url = "https://nwtgck.github.io/comment-run-scripts/hello-world-comment.js";
352+
const js = await (await fetch(url)).text();
353+
eval(js);
358354
```
359355
````

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2952,6 +2952,7 @@ async function run() {
29522952
if (token.lang === 'js' || token.lang === 'javascript') {
29532953
// Eval JavaScript
29542954
await async_function_1.callAsyncFunction({
2955+
require,
29552956
core,
29562957
exec,
29572958
fetch: node_fetch_1.default,

doc_assets/hello-world-comment.png

38 KB
Loading

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "actions-comment-run",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"private": true,
55
"description": "Comment run action",
66
"main": "lib/main.js",

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ async function run(): Promise<void> {
113113
// Eval JavaScript
114114
await callAsyncFunction(
115115
{
116+
require,
116117
core,
117118
exec,
118119
fetch,

0 commit comments

Comments
 (0)