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

[bug fix] Empty branch merge in change-log #121

Merged

Conversation

MatsMoll
Copy link
Contributor

@MatsMoll MatsMoll commented Dec 25, 2019

A branch merger was recored to it's own commit, but with noe message, author or link. (This was a problem as github's API did not accept it when this was a tags change-log body.)

This sesames to be fixed by removing the --graph flag when fetching the git log.

E.g:

### Features
 - Merge pull request #11 from ...
 - |\ - [Commit](/commit/|\  ) - |\  
 - |/ - [Commit](/commit/|/  ) - |/  
 - Merge pull request #10 from ...
 - |\ - [Commit](/commit/|\  ) - |\  
 - Merge pull request #9 from ...

@namolnad
Copy link
Owner

namolnad commented Jan 3, 2020

@MatsMoll thanks so much for the contribution! This looks great — just pulled the branch down and tested it a bit. Seems to work well!

@namolnad
Copy link
Owner

namolnad commented Jan 3, 2020

Sorry, approved a little too quickly. Can you add a test case in ChangeLogModelTests.swift to cover the newline option you added?

@MatsMoll
Copy link
Contributor Author

MatsMoll commented Jan 3, 2020

Ups, but yes! Will add a test for it

@MatsMoll
Copy link
Contributor Author

MatsMoll commented Jan 3, 2020

I did not quite understand the testing framework. But it passes and the output seems to be correct

@namolnad
Copy link
Owner

namolnad commented Jan 3, 2020

yeah, looks as though you figured it out — thanks for adding the test and again for the PR! (Not sure why CI isn't running tests/linting, but I ran them locally and all looks well)

@namolnad
Copy link
Owner

namolnad commented Jan 3, 2020

btw if you want to check out the testing framework it's @pointfreeco's snapshot tool: https://github.com/pointfreeco/swift-snapshot-testing

@namolnad namolnad merged commit 97e9959 into namolnad:master Jan 3, 2020
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.

None yet

2 participants