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: Fix routing for invalid PR #1290

Merged
merged 1 commit into from
Dec 11, 2024
Merged

fix: Fix routing for invalid PR #1290

merged 1 commit into from
Dec 11, 2024

Conversation

minghay
Copy link
Contributor

@minghay minghay commented Dec 11, 2024

Context

The router makes an API request for the latest open PR when one may not exist. In the absence of any open pull requests, the API request should not be made. There is also an additional invalid dereference for extracting the SHA from an invalid event.

Objective

  1. Fixes routing when an invalid PR is set.
  2. Fixes invalid dereference for PR SHA value.

References

screwdriver-cd/screwdriver#3200

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@minghay minghay merged commit 725f299 into master Dec 11, 2024
2 checks passed
@minghay minghay deleted the fix-invalid-pr-routing branch December 11, 2024 23:41
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