Skip to content

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 Ein-nor and amanda11 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
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