Fix core.error parameter format, update CHANGELOG.md

This is really annoying, the docs state nothing about the parameter
format; maybe it should be implied, but there are zero examples showing
the combined message/AnnotationProperty interface with 2 parameters.
This commit is contained in:
2024-11-09 14:45:42 -06:00
parent 0b69aa52dd
commit 8145f74687
2 changed files with 5 additions and 2 deletions

View File

@@ -24,7 +24,8 @@ jobs:
return;
if (line.toLowerCase().includes('unreleased')) {
core.error({
const message = 'Unreleased section found. Please release the changes before merging.';
core.error(message, {
title: 'Unreleased Section Found',
file: path,
startline: index,
@@ -35,7 +36,8 @@ jobs:
// Expected format: '## [X.Y.Z] - YYYY-MM-DD'
const pattern = /^\d+\.\d+\.\d+ - \d{4}-\d{2}-\d{2}$/;
if (pattern.test(line)) {
core.error({
const message = 'Invalid version/date format. Expected: "## [X.Y.Z] - YYYY-MM-DD"';
core.error(message, {
title: 'Invalid Version/Date Format',
file: path,
startline: index,

View File

@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- A release checklist to the `CHANGELOG.md` file, as a reminder for procedure.
- An action workflow for invoking `pytest`
- Pytest coverage report generation in the CI/CD pipeline
- backend: `pwdlib[argon2]` for password hashing
- backend: provided `LOG_JSON_FORMAT` and `LOG_LEVEL` environment variable defaults in `run.sh` development script
- backend: `User` model, `Session` model with migration script