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

Grab commit history from PR branch to support forks #4

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

eholum
Copy link
Contributor

@eholum eholum commented Oct 21, 2024

Resolves #3.

I guess we could always add the forked remote and fetch history there, too, but maybe this is cleaner? Unfortunately I can't just grab the HEAD of the GITHUB_REF because it includes the simulated merge commit, which obviously fails.

Thoughts?

This seems to work fine both from this fork and the primary repo: https://github.com/space-ros/check-commit-message-action/pull/5/checks

@eholum eholum self-assigned this Oct 21, 2024
@eholum eholum force-pushed the check-fork-check branch 3 times, most recently from e450a85 to 5c21859 Compare October 21, 2024 16:26
@eholum eholum changed the title Testing grabbing history from a fork [WIP] Testing grabbing history from a fork Oct 21, 2024
@eholum eholum marked this pull request as ready for review October 21, 2024 16:54
@eholum eholum changed the title [WIP] Testing grabbing history from a fork Grab commit history from PR branch to support forks Oct 21, 2024
@eholum eholum requested a review from EzraBrooks October 21, 2024 16:54
Copy link
Member

@EzraBrooks EzraBrooks left a comment

Choose a reason for hiding this comment

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

LGTM. thanks for picking this up. been too busy over here

@eholum eholum merged commit 0539523 into space-ros:main Oct 21, 2024
2 checks passed
@eholum eholum deleted the check-fork-check branch October 21, 2024 17:14
@Bckempa Bckempa added this to the jazzy-2024.10.0 milestone Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Check fails to resolve commits in forks
3 participants