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

feat(get-merge-base): add get-merge-base helper #582

Closed
wants to merge 2 commits into from
Closed

Conversation

sayali10
Copy link

@sayali10 sayali10 commented Apr 2, 2024

📝 Description

  • Add get merge base for pull request.

API Used

UseCase

  • Want to use mergeBase to get specific diffs for files.
    e.g. We want to determine, which dependencies are updated in package.json file, to get that info, we want to get mergeBase for PR and use it to calculate diff for package.json devDeps using mergeBase and PR head.

@sayali10 sayali10 requested a review from a team as a code owner April 2, 2024 06:20
@sayali10 sayali10 added the enhancement New feature or request label Apr 2, 2024
Copy link
Contributor

@danadajian danadajian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use ${{ github.event.pull_request.base.sha }} in the workflow context to get this?

@sayali10
Copy link
Author

sayali10 commented Apr 2, 2024

Able to get it SHA using github.event.pull_request.base.sha. This change is no longer required.

@sayali10 sayali10 closed this Apr 2, 2024
@danadajian danadajian deleted the get-merge-base branch April 2, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants