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

fix(webhook): Avoid jobs are accepted without labels #3548

Merged
merged 3 commits into from
Oct 18, 2023
Merged

Conversation

npalm
Copy link
Member

@npalm npalm commented Oct 17, 2023

Descirption

When using the mult-runner with an exact match set to true worklfows events with an empty array of labels matches the first matcher. This cause not intented runners are created. This change avoids jobs with no labels ar accepted.

The exactMatch is some bagage we ccarry from the past. I have aaded a set of unit tests to show how the match is working. We should think about removing the switch.

@npalm npalm merged commit cb78738 into main Oct 18, 2023
20 checks passed
@npalm npalm deleted the npalm/jobs-no-labels branch October 18, 2023 08:32
npalm pushed a commit that referenced this pull request Oct 18, 2023
🤖 I have created a release *beep* *boop*
---


##
[4.5.1](v4.5.0...v4.5.1)
(2023-10-18)


### Bug Fixes

* **lambda:** bump the aws group in /lambdas with 5 updates
([#3530](#3530))
([0ada33b](0ada33b))
* **webhook:** Avoid jobs are accepted without labels
([#3548](#3548))
([cb78738](cb78738))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: forest-releaser[bot] <80285352+forest-releaser[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

3 participants