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

Error while creating an event with a skip message #3272

Open
sagar1312 opened this issue Jan 28, 2025 · 0 comments
Open

Error while creating an event with a skip message #3272

sagar1312 opened this issue Jan 28, 2025 · 0 comments
Assignees

Comments

@sagar1312
Copy link
Member

What happened:
After an event is created via SCM webhook with a skip message "[skip ci]", no builds are created.
In such scenario, the event itself is set as the builds on the event which is incorrect.

#3261 added a logic which iterates the builds that are created after the event to process the workflow for virtual builds. This new logic expects the builds set on the event to be either null or an array.

Due to the above mentioned incorrect the mapping, the new logic is failing with the below error

Error: Failed to start some events caused by \"event.builds.filter is not a function

What you expected to happen:
After the event creation, when the builds are meant to be skipped, set [] as the builds on the event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Doing
Development

No branches or pull requests

1 participant