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

Change description for custom states (AST-80216) #1036

Closed
wants to merge 1 commit into from

Conversation

Korjen97
Copy link
Contributor

@Korjen97 Korjen97 commented Feb 5, 2025

By submitting a PR to this repository, you agree to the terms within the Checkmarx Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

Description

Describe the purpose of this PR along with any background information and the impacts of the proposed change.

References

Include supporting link to GitHub Issue/PR number

Testing

Describe how this change was tested. Be specific about anything not tested and reasons why. If this solution has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

Please include any manual steps for testing end-to-end or functionality not covered by unit/integration tests.

Checklist

  • I have added documentation for new/changed functionality in this PR (if applicable).
  • I have updated the CLI help for new/changed functionality in this PR (if applicable).
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used

@@ -35,8 +35,8 @@ func NewResultsPredicatesCommand(resultsPredicatesWrapper wrappers.ResultsPredic
func triageGetStatesSubCommand(customStatesWrapper wrappers.CustomStatesWrapper) *cobra.Command {
triageGetStatesCmd := &cobra.Command{
Use: "get-states",
Short: "Fetch and display custom states.",
Long: "Retrieves a list of custom states and prints their names.",
Short: "Show the custom states that have been configured in your tenant",
Copy link

Choose a reason for hiding this comment

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

Consider rephrasing the Short description to be more concise and consistent with command description conventions. For example: List configured custom states in the tenant.

Short: "Fetch and display custom states.",
Long: "Retrieves a list of custom states and prints their names.",
Short: "Show the custom states that have been configured in your tenant",
Long: "The get-states command shows information about each of the custom states that have been configured in your tenant account",
Copy link

Choose a reason for hiding this comment

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

The Long description seems verbose. Simplify to convey the necessary information more concisely. For example: Lists and displays details of all custom states configured in the tenant account.

@@ -46,7 +46,7 @@
RunE: runTriageGetStates(customStatesWrapper),
}

triageGetStatesCmd.PersistentFlags().Bool(params.AllStatesFlag, false, "Include deleted states")
triageGetStatesCmd.PersistentFlags().Bool(params.AllStatesFlag, false, "Show all custom states, including the ones that have been deleted")
Copy link

Choose a reason for hiding this comment

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

Consider rephrasing the flag description to maintain consistency with the existing style. For example, 'Include all custom states, even those that have been deleted.'

@Korjen97 Korjen97 changed the title Change description for custom states Change description for custom states (AST-80216) Feb 5, 2025
Copy link

github-actions bot commented Feb 5, 2025

Logo
Checkmarx One – Scan Summary & Detailsef42a1e8-7eff-44d3-8a9f-e7ab22f6e4ee

Great job, no security vulnerabilities found in this Pull Request

@Korjen97 Korjen97 closed this Feb 5, 2025
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.

1 participant