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

feat(library): add 'type' argument to Release trigger #1783

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

krzema12
Copy link
Member

Closes #1781

Comment on lines 124 to 128
RegistryPackage(types("published", "updated")),
Release(types("published", "unpublished")),
Release(types = listOf("published", "unpublished")),
RepositoryDispatch(types = listOf("foo", "bar")),
Schedule(emptyList()),
Status(types("started")),
Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like lots of triggers have the types argument, so ideally we should add the typed types to all. However, due to time constraints, let me just add it to Release for now.

Copy link
Collaborator

Choose a reason for hiding this comment

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

As far as I understood all the triggers have that.
So I guess a Trigger base class that provides the property would probably make sense.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Or maybe not all events currently, but potentially types could be added as the link I provided describes it uniformly for all event triggers and then the doc for the events specifies which types each event supports.
But as long as we do not make an explicit list per event, I'd say we should support it for all so that if types are added on GitHub-side it would also work.

Copy link
Member Author

Choose a reason for hiding this comment

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

Tracking in #1784

@krzema12 krzema12 merged commit dbcf5d5 into main Jan 21, 2025
14 checks passed
@krzema12 krzema12 deleted the add-types-argument-to-release-trigger branch January 21, 2025 12:40
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.

[Core feature request] types for release trigger
2 participants