Skip to content

Use a more flexible way to collect data from GitHub events#4847

Merged
vito merged 4 commits into
dagger:mainfrom
vito:flexible-event-labels
Mar 28, 2023
Merged

Use a more flexible way to collect data from GitHub events#4847
vito merged 4 commits into
dagger:mainfrom
vito:flexible-event-labels

Conversation

@vito
Copy link
Copy Markdown
Contributor

@vito vito commented Mar 27, 2023

Rather than handling a restrictive list of event types, just duck type and see what values are present on them.

Also backfills tests because the webhook payload handling is surprisingly tricky, e.g. push event payloads contain a repository object that is incompatible with *github.Repository.

vito added 4 commits March 27, 2023 18:32
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
Signed-off-by: Alex Suraci <alex@dagger.io>
@vito vito merged commit 46c7cbb into dagger:main Mar 28, 2023
@vito vito deleted the flexible-event-labels branch March 28, 2023 01:01
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