Get commits in a push from @actions/github in an action

Viewed 1219

I'm wondering if there is a way to get the commits in a push event from @actions/github?

I tried GitHub.context.payload.comment, but that's returning undefined.

Is there a way to do it in javascript/typescript?

Thanks.

0 Answers
Related