actions / github-script

Write workflows scripting the GitHub API in JavaScript
MIT License
4.24k stars 424 forks source link

Add return statement to example #471

Open jschwartz-cray opened 6 months ago

jschwartz-cray commented 6 months ago

As someone not familiar with javascript I was banging my head against the wall for an embarrassingly long time trying to figure out why this wasn't working.

jschwartz-cray commented 6 months ago

It would probably also be a good idea to have one or two more complete examples that show how to get a response as JSON and use it, etc.

jschwartz-cray commented 6 months ago

It might also make sense to just make a script which consists of a single statement automatically return the result of that statement as the result of the script?