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

Fix packs.get action #6226

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Conversation

jpavlav
Copy link
Contributor

@jpavlav jpavlav commented Jul 25, 2024

Addresses #6225. This should allow users to specify a branch when using the packs.get command. This addresses the assumption in the code that the primary branch of a git repository corresponding to an action is master.

  • Add branch parameter to get.yaml. Default to master to maintain current functionality/expectations.
  • Update run in pack_mgmt.get_install.py. Now accepts branch param and uses an fstring to represent the in git rev list.

Addresses StackStorm#6225. This should allow users to specify a branch when using
the `packs.get` command. This addresses the assumption in the code that
the primary branch of a git repository corresponding to an action is
`master`.

* Add `branch` parameter to `get.yaml`. Default to `master` to maintain
current functionality/expectations.
* Update `run` in `pack_mgmt.get_install.py`. Now accepts `branch` param
and uses an `fstring` to represent the in `git rev list`.
@pull-request-size pull-request-size bot added the size/S PR that changes 10-29 lines. Very easy to review. label Jul 25, 2024
@jpavlav
Copy link
Contributor Author

jpavlav commented Jul 25, 2024

I can add tests here, if that is required. There are, however, not any existing tests for this action, so I thought it might not be. Fundamentally, the change here is very small and the action is very simple. Whomever reviews this, let me know if new tests are required.

Copy link
Contributor

@nzlosh nzlosh left a comment

Choose a reason for hiding this comment

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

This change looks good to me. Thank you for the contribution.

@nzlosh nzlosh requested review from amanda11 and ZoeLeah July 26, 2024 08:29
@nzlosh nzlosh enabled auto-merge (squash) July 28, 2024 11:18
@nzlosh nzlosh added this to the 3.9.0 milestone Jul 28, 2024
@nzlosh nzlosh merged commit 69ad38b into StackStorm:master Sep 9, 2024
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S PR that changes 10-29 lines. Very easy to review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants