"Error: Not Found" if push event's before
commit is 0000000000000000000000000000000000000000
#128
Labels
bug
Something isn't working
Scenario
When configured to run on a
push
event and the GitHub'scontext.payload.before
commit is0000000000000000000000000000000000000000
(meaning there was no prior commit) then the action fails with errorError: Not Found
.The error is raised by
util.js
bydetermineModifiedFiles(..)
function when it invokesoctokit.rest.repos.compareCommitsWithBasehead(..)
https://github.com/pmd/pmd-github-action/blob/main/lib/util.js#L143
Config File
Expected Result
Example using Git:
Example using Octokit
Actual Result
Workaround
The text was updated successfully, but these errors were encountered: