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

Added build metadata string formatting. #7

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

gchqdev227
Copy link
Member

Fixes #4.

This new feature allows users to format a string with build metadata, which is useful for allowing pipeline users to use these values when invoking the resource, such as in commit messages.

The decision to use $BUILD_ID-style of formatting instead of f-strings or similar was for familiarity across users, but also because a number of other resource types have used a similar formatting before.

Also added a word to the cspell config, and fixed a failing doctest.

@gchqdev227 gchqdev227 self-assigned this Oct 4, 2023
@gchqdev227 gchqdev227 merged commit 78860cd into main Oct 4, 2023
5 checks passed
@gchqdev227 gchqdev227 deleted the feature/4/metadata-format-string branch October 4, 2023 12:15
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.

Add format_string method to BuildMetadata class
2 participants