-
Notifications
You must be signed in to change notification settings - Fork 14
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
PSCE-408 feat: adds flags to set git provider information when interacting with the API #217
Merged
Conversation
This file contains 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
jpower432
changed the title
feat: adds flags to set git provider information when interacting with the API
PSCE-408 feat: adds flags to set git provider information when interacting with the API
May 2, 2024
jpower432
force-pushed
the
add/add-git-provider-flags
branch
from
May 3, 2024 23:51
d4503e9
to
79aad6e
Compare
Putting back into draft to rebase and resolve conflicts. |
The GitProviderFactory class manages the creation of the GitProvider based on input and default logic. Signed-off-by: Jennifer Power <[email protected]>
As the arguments list grows, grouping will make understanding how to use and when to set much clearer Signed-off-by: Jennifer Power <[email protected]>
Using flag option to add to logic Git provider group for useful help messages Signed-off-by: Jennifer Power <[email protected]>
Signed-off-by: Jennifer Power <[email protected]>
The logic was checking if with_token is None or empty which is never true. This change updates the with-token flag to set to true to evaluate if standard input should be read. Signed-off-by: Jennifer Power <[email protected]>
To simplify running locally in headless mode, an environment variable would be suitable over piping to standard input. This also simplifies the action entrypoint scripts. Signed-off-by: Jennifer Power <[email protected]>
Signed-off-by: Jennifer Power <[email protected]>
This returns the with-token flag to its original implementation to avoid breaking changes, but uses the const instead of default parameter. This will make sure sys.stdin is only set if the flag is present. Signed-off-by: Jennifer Power <[email protected]>
Signed-off-by: Jennifer Power <[email protected]>
Signed-off-by: Jennifer Power <[email protected]>
jpower432
force-pushed
the
add/add-git-provider-flags
branch
from
May 7, 2024 13:54
d2ac478
to
232d2c5
Compare
gvauter
requested changes
May 7, 2024
Newlines in descriptions caused issues in table formatting Signed-off-by: Jennifer Power <[email protected]>
All reusable input/output logic should be defined in entrypoint_base.py for easier management and readability Signed-off-by: Jennifer Power <[email protected]>
Signed-off-by: Jennifer Power <[email protected]>
gvauter
requested changes
May 8, 2024
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.
New logic looks good, just two small logging fixes.
Signed-off-by: Jennifer Power <[email protected]>
gvauter
approved these changes
May 8, 2024
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.
Description
This feature simplifies running
trestle-bot
in different contexts.with_token
inputFixes #200
Stacked with #215
Type of change
How has this been tested?
Checklist