-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: 295 monorepo directory structure design proposal #389
feat: 295 monorepo directory structure design proposal #389
Conversation
Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
Bumps [compliance-trestle](https://github.com/oscal-compass/compliance-trestle) from 3.4.0 to 3.5.0. - [Release notes](https://github.com/oscal-compass/compliance-trestle/releases) - [Changelog](https://github.com/oscal-compass/compliance-trestle/blob/develop/CHANGELOG.md) - [Commits](oscal-compass/compliance-trestle@v3.4.0...v3.5.0) --- updated-dependencies: - dependency-name: compliance-trestle dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…l values. improves config error handling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some initial comments.
23ac47d
to
0237e3b
Compare
0237e3b
to
823e5bc
Compare
…thub.com:RedHatProductSecurity/trestle-bot into 295-monorepo-directory-structure-design-proposal
…thub.com:RedHatProductSecurity/trestle-bot into 295-monorepo-directory-structure-design-proposal
I noted there are some missing options in create command.
tmp_init_dir, | ||
], | ||
) | ||
assert result.exit_code == 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The expected exit_code is 2? Is there any context I missed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the arguments, '--committer-email'
, '--committer-name'
and '--branch'
could be added; repo-path
could be updated to --repo-path
; the
assert result.exit_code == 2could be
result.exit_code == 0 `.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@huiwangredhat yes, you are correct, this should have a successful exit code since test expects it work correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one typo and other two minor empty lines. I didn't check all transformations but only the CLI changes.
trestlebot/cli/options/common.py
Outdated
If the user specifies a value for the option directly (e.g. uses --option value) | ||
then that value is used in favor of the value loaded from the config. | ||
|
||
Simarly, if an option has an associated ENVVAR, and that ENVVAR is set, then the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simarly, if an option has an associated ENVVAR, and that ENVVAR is set, then the | |
Similarly, if an option has an associated ENVVAR, and that ENVVAR is set, then the |
@@ -0,0 +1,59 @@ | |||
# SPDX-License-Identifier: Apache-2.0 | |||
# Copyright (c) 2023 Red Hat, Inc. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,36 @@ | |||
# SPDX-License-Identifier: Apache-2.0 | |||
# Copyright (c) 2024 Red Hat, Inc. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
help="Comma-separated list of upstream git sources to sync. Each source is a string \ | ||
in the form <repo_url>@<ref> where ref is a git ref such as a tag or branch.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
help="Comma-separated list of upstream git sources to sync. Each source is a string \ | |
in the form <repo_url>@<ref> where ref is a git ref such as a tag or branch.", | |
help="Comma-separated list of upstream git sources to sync. Each source is a string \ | |
in the form <repo_url>@<ref> where ref is a git ref such as a tag or branch.", |
Signed-off-by: George Vauter <gvauter@redhat.com>
Signed-off-by: George Vauter <gvauter@redhat.com>
Signed-off-by: George Vauter <gvauter@redhat.com>
Signed-off-by: George Vauter <gvauter@redhat.com>
Signed-off-by: George Vauter <gvauter@redhat.com>
Signed-off-by: George Vauter <gvauter@redhat.com>
Signed-off-by: George Vauter <gvauter@redhat.com>
Signed-off-by: George Vauter <gvauter@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for updating.
18eaf09
to
769d0df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. I think this new CLI improved considerably the experience. Thanks.
…thub.com:RedHatProductSecurity/trestle-bot into 295-monorepo-directory-structure-design-proposal
Description
This PR contains the initial code for a Click based CLI for trestle-bot as described in ADR-001. This Click based CLI will replace the existing
entrypoints
modules. This PR only contains the code for the CLI, it does not break any existing commands/actions. Subsequent PRs will make the necessary changes to swap the current entrypoints with these new CLI commands.Fixes # #295
Type of change
How has this been tested?
Unit tests have been added in
tests/cli
for all new CLI commands/modules.Checklist