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

allow sending key/value pairs with dispatch #78

Merged
merged 2 commits into from
Dec 13, 2023
Merged

Conversation

tgummerer
Copy link
Contributor

@tgummerer tgummerer commented Dec 11, 2023

Make pulumictl dispatch more generally useful, and allow key/value pairs in addition to a single ref. For starters we'll use this to dispatch a GitHub actions job that will update the latest-dev-version file (see pulumi/docs#10365), but this can be used for other workflows as well.

/xref pulumi/pulumi#14623

Make pulumictl dispatch more generally useful, and allow key/value
pairs in addition to a single ref.  For starters we'll use this to
dispatch a GitHub actions job that will update the
`latest-dev-version` file (see pulumi/docs#10365),
but this can be used for other workflows as well.
@tgummerer tgummerer changed the title add create command for updating the dev version allow sending key/value pairs with dispatch Dec 12, 2023
@@ -53,7 +64,6 @@ func Command() *cobra.Command {
}

_, err := semver.Parse(gitversion.StripModuleTagPrefixes(ref))
Copy link
Member

Choose a reason for hiding this comment

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

This semver check needs moving into the payloadMap["ref"] side of the if above.

Copy link
Member

Choose a reason for hiding this comment

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

Linting didn't pick this up because there's global var defined at line 22. That can go but I'm pretty sure the others can probably go as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes, good catch, thanks!

Yeah indeed, all the global variables can go. In fact that made me realize that we never actually used the org variable, and that command line parameter doesn't do anything. I removed it now.

@tgummerer tgummerer merged commit 440cb47 into master Dec 13, 2023
3 checks passed
@tgummerer tgummerer deleted the tg/create-dev-version branch December 13, 2023 10:34
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.

2 participants