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
Add support for rebase merging #164
Add support for rebase merging #164
Conversation
a0413af
to
8a0e70f
Compare
@@ -1,4 +1,6 @@ | |||
const log = require('./log') | |||
const paginate = require('./pagination') | |||
const _ = require('lodash') |
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.
Would it not be better only to require what you need?
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.
Performance wise it shouldn't really matter I think? I like the convenience of having all of Lodash under a single char 😅
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Could the releases API and content of |
@Casz Maybe, but that's outside of the scope of this PR :) |
I was just wondering. 🤔 |
That's alright, thanks for the suggestion 😊 |
2ded812
to
c19e769
Compare
I've been a bit low on time the past week. I hope to continue/finish this next week :) |
b6a71da
to
d5d3ef7
Compare
This is ready for review @toolmantim @Casz 😄 |
Thanks for the kind words @Casz :) |
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, one minor comment
if (lastRelease) { | ||
log({ | ||
app, | ||
context, | ||
message: `Comparing commits ${lastRelease.tag_name}..${branch}` | ||
message: `Fetching all commits for branch ${branch} since ${ | ||
lastRelease.published_at |
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.
looks funky
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.
Yeah looks a bit weird, it happens because the max line length is reached. There's not much I can do about it except increasing the line length 😬. I personally don't really mind though.
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.
Thanks for all the work on this @TimonVS! Looks good 👍🏼
458252d
to
6ff1e70
Compare
This PR will add support for rebase merging and drastically reduces the amount of HTTP calls to GitHub by utilizing the GraphQL API :)
This PR is based off of #160
Solves: #106
Todo
commits.js
exclude-labels
testsversion-template
config testsgetCommitsWithAssociatedPullRequestsQuery