-
-
Notifications
You must be signed in to change notification settings - Fork 389
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 BB PR pipeline ref #3985
Fix BB PR pipeline ref #3985
Conversation
@6543 CI fails seems to not be related to the changes. Do you know what is happening? |
Tearing down https://woodpecker-ci-woodpecker-pr-3985.surge.sh |
@6543 Would this bugfix be possible to release as a patch to 2.8? |
@karatekaneen this fix already available (v2.8.1): |
@j04n-f Nice! Somehow I missed it when I read the release notes. Many thanks! |
Description
To set the
CI_COMMIT_PULL_REQUEST
environment variable Woodpecker uses the following regexp:woodpecker/pipeline/frontend/metadata/environment.go
Line 137 in 61f4c6a
woodpecker/pipeline/frontend/metadata/environment.go
Line 29 in 61f4c6a
The environment variable returns a blank string because the regexp can't find an integer. Fix the reference using the pull request ID.
Test
The workflow reference link successfully redirects the user to the PR.