Skip to content

Fix replicating template messages #794

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

Merged
merged 7 commits into from
Apr 15, 2020
Merged

Fix replicating template messages #794

merged 7 commits into from
Apr 15, 2020

Conversation

shinyaohtani
Copy link
Contributor

@shinyaohtani shinyaohtani commented Apr 13, 2020

Fixes #787

Header, footer and '\n' will be treated correctly

  • Stop generating headers and footers indefinitely, leaving only one right each time.
    • To find the exact same string as the key, the Regex key must be escaped with Regex.escape().
    • Initially I was trying to fix only credit_line. However, I have found that this framework needs to be applied not only to credit_line, but also to headers and front matter, so I modified them with same algorithm correctly.
  • Automatically remove only the automatically added '\n' and not remove any additional '\n' that may have been added manually by the user.
  • specs for this issue is prepared.

Header, footer and '\n' will be treated correctly
Issue: #787
- Stop generating headers and footers indefinitely, leaving only one right each time.
  - To find the exact same string as the key, the Regex key must be escaped with Regex.escape().
  - First I have been fixing only credit_line, but this framework should be applied not only to credit_line but also to header and frontmatter, so I changed header and frontmatter to be deleted once.
- Automatically remove only the automatically added '\n' and not remove any additional '\n' that may have been added manually by the user.
- specs for this issue is prepared.
@olleolleolle
Copy link
Collaborator

Thanks for this! I'll review soon. 👍

Copy link
Collaborator

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Thanks for making this change, it's ✨ !

With a few tiny additions, we can merge it. I marked them with a bunch of GitHub Suggestions (after pulling the PR down to my local machine and running it in different ways).

Thanks!

@olleolleolle olleolleolle changed the title Fixed replicating template messages Fix replicating template messages Apr 14, 2020
shinyaohtani and others added 5 commits April 15, 2020 12:10
newer YARD style

Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
Content of comment text

Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
Modified require statements which are automatically added by "rspec-kickstarter"

Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
an empty line before expect statement

Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
an empty line before expect statement

Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
@shinyaohtani
Copy link
Contributor Author

I pressed all "Commit suggestion"s by @olleolleolle.

Copy link
Collaborator

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Alright! Thanks again @shinyaohtani for fixing this issue! ✨

Let's get this merged.

@olleolleolle olleolleolle merged commit 2bf0d38 into github-changelog-generator:master Apr 15, 2020
@shinyaohtani shinyaohtani deleted the fix/replicating_footer_messages branch April 15, 2020 06:22
@shinyaohtani
Copy link
Contributor Author

shinyaohtani commented May 25, 2020

@olleolleolle
Could you release a new version including this? I'm waiting...

@shinyaohtani
Copy link
Contributor Author

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.

Footer message that keeps replicating
3 participants