Skip to content

fix(bin): in --base-commit, allow both sha string and Commit object#70

Merged
metalwarrior665 merged 1 commit into
masterfrom
fix/base-commit-object
Mar 26, 2026
Merged

fix(bin): in --base-commit, allow both sha string and Commit object#70
metalwarrior665 merged 1 commit into
masterfrom
fix/base-commit-object

Conversation

@metalwarrior665
Copy link
Copy Markdown
Member

@metalwarrior665 metalwarrior665 commented Mar 26, 2026

Closes #67

Release new package version and after that merge this: apify-store/github-actions-source#24

Copy link
Copy Markdown
Contributor

@ruocco-l ruocco-l left a comment

Choose a reason for hiding this comment

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

Looks ok, just a question on edgecase

Comment thread bin/git.ts
* @returns The SHA string if valid, otherwise throws an error.
*/
export const parseBaseCommit = (shaOrCommit: string | undefined): string | undefined => {
if (!shaOrCommit) return undefined;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't we throw an error here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think we can keep it optional. Now the first commit in PR gets empty string

@metalwarrior665 metalwarrior665 merged commit cf01cd0 into master Mar 26, 2026
10 checks passed
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.

Base commit logic doesn't work (and check commit logic thoroughly)

3 participants