-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: support prettier Comments on Changelog.md when updating a depen…
…dency. (#75) * Add support for prettier ignore. * remove new item * changelog update * move logic after changelog check * revert original code * Apply suggestions from code review Co-authored-by: Ivan Dlugos <[email protected]> * fix changelog and script test --------- Co-authored-by: Ivan Dlugos <[email protected]>
- Loading branch information
1 parent
ab746b0
commit 1a3125e
Showing
4 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
updater/tests/testdata/changelog/update-with-comment/CHANGELOG.md.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Changelog | ||
|
||
<!-- prettier-ignore-start --> | ||
> [!IMPORTANT] | ||
> If you are upgrading to the `1.x` versions of the Sentry SDK from `0.x` or below, | ||
> make sure you follow our [migration guide](https://docs.sentry.io/platforms/SDK/migration/) first. | ||
<!-- prettier-ignore-end --> | ||
|
||
## Unreleased | ||
|
||
### Dependencies | ||
|
||
- Following items preserve their bullet points as-is even through an update | ||
* Bump Dependency to v7.17.0 ([#100](https://github.com/getsentry/dependant/pulls/100), [#123](https://github.com/getsentry/dependant/pulls/123)) | ||
* [changelog](https://github.com/getsentry/dependency/blob/main/CHANGELOG.md#7170) | ||
- [diff](https://github.com/getsentry/dependency/compare/5.0.0...7.17.0) | ||
|
||
## 0.14.0 | ||
|
||
### Dependencies | ||
|
||
- Capture `Debug.LogError()` and `Debug.LogException()` also on background threads ([#673](https://github.com/getsentry/sentry-unity/pull/673)) | ||
- Adding override for Sentry CLI URL ([#666](https://github.com/getsentry/sentry-unity/pull/666)) |
23 changes: 23 additions & 0 deletions
23
updater/tests/testdata/changelog/update-with-comment/CHANGELOG.md.original
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Changelog | ||
|
||
<!-- prettier-ignore-start --> | ||
> [!IMPORTANT] | ||
> If you are upgrading to the `1.x` versions of the Sentry SDK from `0.x` or below, | ||
> make sure you follow our [migration guide](https://docs.sentry.io/platforms/SDK/migration/) first. | ||
<!-- prettier-ignore-end --> | ||
|
||
## Unreleased | ||
|
||
### Dependencies | ||
|
||
- Following items preserve their bullet points as-is even through an update | ||
* Bump Dependency to v6.0.0 ([#100](https://github.com/getsentry/dependant/pulls/100)) | ||
* [changelog](https://github.com/getsentry/dependency/blob/main/CHANGELOG.md#600) | ||
- [diff](https://github.com/getsentry/dependency/compare/5.0.0...6.0.0) | ||
|
||
## 0.14.0 | ||
|
||
### Dependencies | ||
|
||
- Capture `Debug.LogError()` and `Debug.LogException()` also on background threads ([#673](https://github.com/getsentry/sentry-unity/pull/673)) | ||
- Adding override for Sentry CLI URL ([#666](https://github.com/getsentry/sentry-unity/pull/666)) |