FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

V2.2.0 by MarlonHeiber · Pull Request #47 · StackStorm-Exchange/stackstorm-github · GitHub

Repository navigation

V2.2.0 - #47

Open
MarlonHeiber wants to merge 50 commits into
StackStorm-Exchange:masterfrom
MarlonHeiber:v2.2.0
Open

MarlonHeiber wants to merge 50 commits into
StackStorm-Exchange:masterfrom
MarlonHeiber:v2.2.0

Conversation

Copy link
Copy Markdown
Contributor

No description provided.

MarlonHeiber marked this pull request as ready for review July 19, 2022 20:08

Copy link
Copy Markdown
Contributor Author

@nzlosh @armab All changes were put here in only one PR. The modifications that are in others PRs that are closed now are here. If you could make a review please. Thanks.

cognifloyd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

What is the purpose of 7788189 ?
I believe CI clones the lint-configs repo, so I'm concerned this will get out of date. Could we remove lint-configs/?

amanda11 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I've requested some changes on the yaml files, not had chance to check code in detail - but noticed some discrepancies on the yaml files.
We could move to using python3 f-strings to simplify formatting of the strings rather than using .format etc, but that's just a suggestion - something we can now use now that we've dropped python2 support.

Comment thread CHANGES.md Outdated
default: "{{action_context.api_user|default(None)}}"
owner:
type: "string"
description: "The account owner of the repository. The name is not case sensitive.."

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
description: "The account owner of the repository. The name is not case sensitive.."
description: "The account owner of the repository. The name is not case sensitive."

# Repository parameters
owner:
type: "string"
description: "The account owner of the repository. The name is not case sensitive.."

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
description: "The account owner of the repository. The name is not case sensitive.."
description: "The account owner of the repository. The name is not case sensitive."

Comment thread actions/add_update_repository_team.yaml Outdated
description: >
Add or update repository team.
Example:
st2 run github.add_update_repository_team organization="organization" owner="owner" repo="reponame" team_slug="team_id" api_user="token_name"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This example uses a parameter called organization, but the yaml states that the parameter is called org.

description: >
Add or update a repository environment.
Example:
st2 run github.add_update_repository_environment organization="organization" owner="owner" repo="reponame" reviewers="< array of reviewers >" api_user="token_name"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I can't see a parameter organization in the yaml. It looks like in the python code, that owner is being passed as organisation to the get_team_id - so that parameters in the example and the yaml don't seem to match.
Also yaml says environment is required parameter with no default, yet its not used in the example.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

thanks! I have rewritten this and tested the call, it seems to be okay now :)

still pending to push the code though

Comment thread actions/create_file.yaml Outdated
github_type:
type: "string"
description: "The type of github installation to target, if unset will use the configured default."
default: ~

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why is default "~" - should this have been one of enterprise or online?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

that's a good question! it's been like that since before.. I have pushed a commit to align all github_type usage and doc.

it is not required, and it can only be enterprise/online.. the default being whatever is configured in the pack, which is online by default

Comment thread actions/create_pull.yaml Outdated
required: true
api_user:
type: "string"
description: "The"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think the description for api_user hasn't been finished, as its just "The"

Comment thread actions/create_pull.yaml Outdated
github_type:
type: "string"
description: "The type of github installation to target, if unset will use the configured default."
default: ~

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why is default for github_type ~ rather than one of enterprise or online.

Comment thread actions/update_file.yaml Outdated
required: false
api_user:
type: "string"
description: "The"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Description for api_user not complete, as its just "The"

Comment thread actions/update_file.yaml Outdated
github_type:
type: "string"
description: "The type of github installation to target, if unset will use the configured default."
default: ~

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why is default ~ rather than enterprise or online?

Copy link
Copy Markdown

hi @amanda11 ! thanks a lot for validating all the changes :)

i have gone through all of them and fixed them to my best knowledge.. also tried to run all example cases within the action description and they all seem fine now!

I would like to add test cases for the actions but I guess that could be tackled in another moment

cheers!

This file contains hidden or 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
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.

4 participants


Back | FazBrowse Home | New Git URL