Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/scripts/get_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ def main(*args) -> int:

with open(changelog_file_path) as file:
data = file.read()
start = data.index(f"## [{version_no}]") + len(f"## [{version_no}]")
start = (
data.index(f"## [{version_no}]")
+ len(f"## [{version_no}]")
+ len(" - YYYY-MM-DD")
)
end = (
data.index("## [", start + 1)
if "## [" in data[start + 1 :]
Expand Down
5 changes: 3 additions & 2 deletions .github/scripts/update_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import sys
import logging
from datetime import date

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -39,7 +40,7 @@ def main(*args) -> int:
data = file.read()
start = data.index(unreleased_section) + len(unreleased_section)
file.seek(start)
file.write(f"\n\n## [{version_no}]")
file.write(f"\n\n## [{version_no}] - {date.today().isoformat()}")
file.write(data[start:])
file.truncate()

Expand All @@ -50,7 +51,7 @@ def main(*args) -> int:
file.seek(start)
file.write(unreleased_url.format(version=version_no))

file.write(f"\n[v{version_no}]: ")
file.write(f"\n[{version_no}]: ")
file.write(data[start:].replace("...HEAD", f"...v{version_no}"))
file.truncate()

Expand Down
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Remove clients with no transactions and zero-balance from client-wise summary.

## [0.1.0]
## [0.1.0] - 2025-08-17

### Changed

Expand All @@ -31,7 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Unused python script for generating invoice PDF (`invoice.py`)

## [0.1.0a0]
## [0.1.0a0] - 2025-08-16

### Added

Expand All @@ -43,7 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Update Readme to include Pypi release information.
- Refactor usage of config from dictionary to class objects.

## [0.1.0.dev1]
## [0.1.0.dev1] - 2025-08-15

### Added

Expand All @@ -52,6 +52,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- README and other related files.

[unreleased]: https://github.com/yashovardhan99/bulkinvoicer/compare/v0.1.0...HEAD
[v0.1.0]: https://github.com/yashovardhan99/bulkinvoicer/compare/v0.1.0a0...v0.1.0
[v0.1.0a0]: https://github.com/yashovardhan99/bulkinvoicer/compare/v0.1.0.dev1...v0.1.0a0
[0.1.0]: https://github.com/yashovardhan99/bulkinvoicer/compare/v0.1.0a0...v0.1.0
[0.1.0a0]: https://github.com/yashovardhan99/bulkinvoicer/compare/v0.1.0.dev1...v0.1.0a0
[0.1.0.dev1]: https://github.com/yashovardhan99/bulkinvoicer/commits/v0.1.0.dev1