-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Exclude commit description from issue titles and add $AUTHOR value for issue templates #186
Conversation
lib/get-commit.js
Outdated
@@ -17,7 +17,8 @@ function getCommit (state) { | |||
message: result.data.commit.message, | |||
filename, | |||
patch, | |||
branchUrl: branchUrl | |||
branchUrl: branchUrl, | |||
committer: result.data.author.login |
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.
Instead of commiter
I would suggest to set authorLogin
.
Author is the person who created the commit, Committer is the person you added the commit to the commit history. See c64b40f for example, in that commit, you are the author, I am the committer. Here is the object you'd receive from the API https://api.github.com/repos/hoodiehq/first-timers-bot/git/commits/c64b40f918d33263e3c6156683c4bec37d4924ab
And just author
would imply an object, while authorLogin
is unambiguous
@synicalsyntax could you see if you can resolve the conflicts and rebase your pull request on latest master? |
0a71317
to
88a2a6e
Compare
lib/create-issue.js
Outdated
const content = state.template | ||
.replace(/\$DIFF/, patch) | ||
.replace(/\$FILENAME/, filename) | ||
.replace(/\$BRANCH_URL/, branchUrl) | ||
.replace(/\$REPO/, state.installRepo) | ||
.replace(/\$COMMITTER/, `@${committer}`) |
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.
can you please rename $COMMITTER
to $AUTHOR
and committer
to authorLogin
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.
@gr2m Done!
88a2a6e
to
b1e2120
Compare
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.
perfect 👌
🎉 Thank you so much @synicalsyntax 👍 |
Fixes #152