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

chore: merge from next #9

Merged
merged 5 commits into from
Mar 15, 2024
Merged

chore: merge from next #9

merged 5 commits into from
Mar 15, 2024

Conversation

asartalo
Copy link
Owner

No description provided.

`update_year`'s old behavior was to simply overwrite the current year on
file which is incorrect. This command now correctly updates the copyright so
retaining first copyright year set and appending the succeeding years
correctly.

For example, if the year on the copyright file is `2020` and the current
year is `2021`, then the correct modification should be `2020-2021`.
Here are more conversions. For all examples, the current year is `2021`.

`2020` -> `2020-2021`
`2019` -> `2019, 2021`
`2017, 2019` -> `2017, 2019, 2021`
`2018, 2020` -> `2018, 2020-2021`

Fixes #8.
This is related to #8. I've decided that the appropriate default
behavior is to leave the LICENSE file alone and never update the
copyright year. However, if you want the old behavior, append `-Y` to
the command:

```sh
release_tools prepare_release -wY
```
@asartalo asartalo merged commit 673aae8 into main Mar 15, 2024
6 checks passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8296034302

Details

  • 26 of 27 (96.3%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.4%) to 93.369%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/update_version_command.dart 0 1 0.0%
Totals Coverage Status
Change from base Build 7055926575: 0.4%
Covered Lines: 352
Relevant Lines: 377

💛 - Coveralls

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