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

changelog_test: TestMarkdown for ghch.Section.toMkdn #28

Merged
merged 1 commit into from
Jan 21, 2020

Conversation

pda
Copy link
Contributor

@pda pda commented Jan 21, 2020

Here's a unit test for ghch.Section.toMkdn. It uses the sample JSON from https://developer.github.com/v3/pulls/#list-pull-requests and verifies that the changelog renders as:

## [v2.0.0](https://github.com/octocat/Hello-World/compare/v1.0.0...v2.0.0) (2020-01-21)

* Amazing new feature [#1347](https://github.com/octocat/Hello-World/pull/1347) ([octocat](https://github.com/octocat))

This test is mostly useful as a reference of what the markdown will look like, and to base future changes to that markdown formatting.

@Songmu Songmu merged commit 20af037 into Songmu:master Jan 21, 2020
@Songmu
Copy link
Owner

Songmu commented Jan 21, 2020

Thank you!

@pda pda deleted the changelog-markdown-test branch January 21, 2020 04:04
Songmu added a commit that referenced this pull request Jan 21, 2020
## [v0.10.2](v0.10.1...v0.10.2) (2020-01-21)

* update deps [#31](#31) ([Songmu](https://github.com/Songmu))
* adjust releng [#30](#30) ([Songmu](https://github.com/Songmu))
* handle nil github.User in reduceUser, avoid segfault [#29](#29) ([pda](https://github.com/pda))
* changelog_test: TestMarkdown for ghch.Section.toMkdn [#28](#28) ([pda](https://github.com/pda))
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.

2 participants