-
Notifications
You must be signed in to change notification settings - Fork 20
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
Feature: Add automatic pr finding #424
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…th a push-event Previously, one would have to pass in the concrete PR Number via the `pr-number` option. Now you can set this option 'auto' to automatically find the pull-request associated with the SHA of the cuerrent push-event.
davelosert
force-pushed
the
feat-add-automatic-pr-finding
branch
from
September 24, 2024 18:05
1e8afde
to
60a7918
Compare
Coverage Report
File Coverage |
daves-release-app bot
pushed a commit
that referenced
this pull request
Sep 30, 2024
# [2.6.0](v2.5.1...v2.6.0) (2024-09-30) ### Bug Fixes * **deps-dev:** bump vite from 5.4.3 to 5.4.6 ([#418](#418)) ([a2527f3](a2527f3)) * **deps:** bump rollup from 4.21.2 to 4.22.4 to fix high severity alert ([#422](#422)) ([f8d4182](f8d4182)) * **security:** bump micromatch from 4.0.5 to 4.0.8 to fix low-severity vulnerability ([#407](#407)) ([486156a](486156a)) ### Features * Add option `pr-number: "auto"` to automatically find a pr-number for push-events ([#424](#424)) ([001cef1](001cef1)) * Adds the CommitSHA to the report and fixes CommitSHA gathering in changed file links ([dea95aa](dea95aa))
🎉 This PR is included in version 2.6.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature that allows to automatically search for a pull-request in the context of a
push
event, if thepr-number
option is set to `auto.Documentation Updates:
README.md
to explain the new "auto" option for thepr-number
parameter, which allows the action to automatically find a matching PR for a given commit SHA.action.yml
to include the new description for thepr-number
parameter, explaining the "auto" option for push events.Test Enhancements:
getPullChanges.test.ts
to handleRequestError
with status codes 404 and 403 gracefully, and to ensure other exceptions are thrown as errors.getPullRequestNumber.test.ts
with additional test cases to cover various scenarios, including push events with and without the "auto" option, and workflow runs from forks. [1] [2] [3] [4]Function Modifications:
getPullRequestNumber.ts
to implement the "auto" option for push events, which attempts to find a PR by matching the commit SHA using the GitHub API. [1] [2] [3]