feat: ontrack.yml metadata tracking for reporting directories#23
Merged
feat: ontrack.yml metadata tracking for reporting directories#23
Conversation
- Add _load_ontrack_yml, _get_directory_metadata, _is_on_track helpers - Modify _find_reporting_directories: ontrack.yml stops descent and makes all non-ignored sibling subdirectories reporting directories; ontrack.yml itself is never treated as a visible file - Modify _build_directory_entry to include on_track bool and metadata dict - Modify report_directory to print On track / metadata fields - Add 55 new tests covering all new functions and edge cases - Update README with ontrack.yml format, required fields, and output examples Agent-Logs-Url: https://github.com/FertigLab/ontrack/sessions/163c3f34-6652-4173-b6d1-ff1d54993092 Co-authored-by: dimalvovs <1246862+dimalvovs@users.noreply.github.com>
…in report_directory Agent-Logs-Url: https://github.com/FertigLab/ontrack/sessions/163c3f34-6652-4173-b6d1-ff1d54993092 Co-authored-by: dimalvovs <1246862+dimalvovs@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
dimalvovs
April 13, 2026 15:56
View session
Contributor
|
@copilot please add an example ontrack.yml file |
Agent-Logs-Url: https://github.com/FertigLab/ontrack/sessions/c99e9407-aa90-4ff7-8dfe-f653d86c031e Co-authored-by: dimalvovs <1246862+dimalvovs@users.noreply.github.com>
Contributor
Author
Added |
Contributor
|
@copilot change the "Description" mandatory meta field name to "Text" for brevity. |
Agent-Logs-Url: https://github.com/FertigLab/ontrack/sessions/92ea47b8-2f8a-4918-a18b-8e3202d4c122 Co-authored-by: dimalvovs <1246862+dimalvovs@users.noreply.github.com>
Contributor
Author
Done in commit |
…e against config.yaml track section Agent-Logs-Url: https://github.com/FertigLab/ontrack/sessions/217d8196-2bc0-4fcc-ba1e-6f6b98520644 Co-authored-by: dimalvovs <1246862+dimalvovs@users.noreply.github.com>
…d are now optional Agent-Logs-Url: https://github.com/FertigLab/ontrack/sessions/650dfd5a-723a-45ff-a585-5594bc368a5f Co-authored-by: dimalvovs <1246862+dimalvovs@users.noreply.github.com>
dimalvovs
approved these changes
Apr 13, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
textwithtrackas required metadata field; add config-backed validationownerandcreatedfrom_REQUIRED_METADATA_FIELDS(keep only"track")_is_on_trackdocstringontrack.ymlcomments