Skip to content

add check for commands from string#102

Merged
James Bruten (james-bruten-mo) merged 4 commits into
MetOffice:mainfrom
james-bruten-mo:single_command_ref
Aug 19, 2025
Merged

add check for commands from string#102
James Bruten (james-bruten-mo) merged 4 commits into
MetOffice:mainfrom
james-bruten-mo:single_command_ref

Conversation

@james-bruten-mo

Copy link
Copy Markdown
Collaborator

Description

If an upgrade macro gets run multiple times as part of development, the automatically added "Commands From: ..." comment can get added a number of times. This adds a check that the comment doesn't already exist before writing it. I've checked that this works on an existing Apps branch with a macro.

Checklist

  • I have performed a self-review of my own changes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sensible solution.

@cameronbateman-mo Cameron Bateman (cameronbateman-mo) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good change and straightforward on what it does.

edit: well you get 2 reviews from me cause i missed the first one doing this one 🤣

@mo-nikosbaltas mo-nikosbaltas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sensible changes that fulfil requirements.

@james-bruten-mo
James Bruten (james-bruten-mo) merged commit 1c9fec5 into MetOffice:main Aug 19, 2025
5 checks passed
@james-bruten-mo
James Bruten (james-bruten-mo) deleted the single_command_ref branch August 19, 2025 09:14
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.

3 participants