-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: check that the author is defined when comparing it with dependab… #258
Conversation
This would reintroduce GHSA-v5vr-h3xq-8v6w (accidently closed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a test that a missing author is considered the same as a non-dependabot author. Meaning, commits made by anybody who's not dependabot are not automerged
This would not. The intention is to consider a missing author as anybody who's not dependabot. |
test/action.test.js
Outdated
author: { | ||
login: 'not dependabot', | ||
}, | ||
author: undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to test both cases, not just once. to avoid duplication of the whole test, just create an array with the two users and create the 2 tests in a loop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
resolves: #259
Checklist
npm run test
andnpm run benchmark
and the Code of conduct