pozil / auto-assign-issue

GitHub Action that auto-assigns issues or PRs to one or more users
Creative Commons Zero v1.0 Universal
55 stars 33 forks source link

Fixing error on nested event and optional chaining on node (upgrading node version) #44

Closed agomezmoron closed 2 years ago

agomezmoron commented 2 years ago

I checked there was a typo adding a non valid nested level - I also fixed it in the test section.

On the other hand, I discovered this issue because the action was failing due to my PR and to this change: https://github.com/pozil/auto-assign-issue/commit/78eb641d713deb2a3478b525e93c28f044919dff#diff-3eff2eb784c259a70aa99b331bdf2de36ef13b78240a7789e3e530e0f639f817R53.

The optional chaining was supported on NodeJS 14, that's why this version is failing (is using nodejs 12).

Thanks

agomezmoron commented 2 years ago

Hi, I checked the version and still fails.

In the GH Action documentation node14 was valid but after running the action seems only node12 and 16 works:

Parameter ''using: node14' is not supported, use 'docker', 'node12' or 'node16' instead.')