Skip to content

Feat: Add Task skip notifications - #252

Draft
adbatista wants to merge 6 commits into
masterfrom
adb/task-notification-skip-flags
Draft

Feat: Add Task skip notifications#252
adbatista wants to merge 6 commits into
masterfrom
adb/task-notification-skip-flags

Conversation

@adbatista

Copy link
Copy Markdown
Contributor

No description provided.

@adbatista
adbatistaforce-pushed the adb/task-notification-skip-flags branch 2 times, most recently from fc5c0e1 to 51c7878CompareAugust 26, 2026 20:09
Mirror the skip_scheduled_run_notifications and
skip_manual_run_notifications booleans introduced on scheduler tasks by
semaphoreio/semaphore#1180 (projecthub REST API and v1alpha tasks
endpoints).
Task in the project spec gets both fields with explicit snake_case yaml
tags — required because yaml.v2 defaults to full-lowercase names and
NewProjectV1AlphaFromYaml uses UnmarshalStrict, so manifests carrying
the new keys were a hard error. Without the fields, a sem edit project
round-trip also dropped the flags from the PATCH body, resetting values
set in the UI.
TaskV1Alpha exposes them without omitempty, matching paused/suspended/
recurring, so sem get tasks always shows the value.
…round-trip
Regression test: before the model fields existed, sem edit project
omitted the flags from the PATCH body and the backend reset them to
false.
@adbatista
adbatistaforce-pushed the adb/task-notification-skip-flags branch from 064fe29 to 1d06e5eCompareAugust 27, 2026 01:31
Sign up for freeto 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.

1 participant

@adbatista