Skip to content
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

Merged
merged 2 commits into from
Feb 28, 2018

Conversation

synicalsyntax
Copy link
Contributor

Fixes #152

@@ -17,7 +17,8 @@ function getCommit (state) {
message: result.data.commit.message,
filename,
patch,
branchUrl: branchUrl
branchUrl: branchUrl,
committer: result.data.author.login
Copy link
Contributor

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

@gr2m
Copy link
Contributor

gr2m commented Feb 25, 2018

@synicalsyntax could you see if you can resolve the conflicts and rebase your pull request on latest master?

const content = state.template
.replace(/\$DIFF/, patch)
.replace(/\$FILENAME/, filename)
.replace(/\$BRANCH_URL/, branchUrl)
.replace(/\$REPO/, state.installRepo)
.replace(/\$COMMITTER/, `@${committer}`)
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gr2m Done!

@synicalsyntax synicalsyntax changed the title Exclude commit description from issue titles and add $COMMITTER value for issue templates Exclude commit description from issue titles and add $AUTHOR value for issue templates Feb 28, 2018
Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect 👌

@gr2m gr2m merged commit 6f49cd1 into first-timers:master Feb 28, 2018
@synicalsyntax synicalsyntax deleted the fix-152 branch February 28, 2018 21:38
@pathawks
Copy link
Contributor

🎉 Thank you so much @synicalsyntax 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants