Skip to content

feat: add optional repository input#138

Open
gabriele-ct wants to merge 1 commit into
planetscale:mainfrom
gabriele-ct:contrib/repository-input
Open

feat: add optional repository input#138
gabriele-ct wants to merge 1 commit into
planetscale:mainfrom
gabriele-ct:contrib/repository-input

Conversation

@gabriele-ct
Copy link
Copy Markdown

Add an optional repository input that points to a relative path under $GITHUB_WORKSPACE for the git repository to operate on. Defaults to . (the workspace root). The entrypoint adds the resolved path to safe.directory and cd's into it before running git status / ghcommit.

This mirrors the behaviour of stefanzweifel/git-auto-commit-action and enables using the action on repositories checked out into a subdirectory of the workflow workspace.

Add an optional `repository` input that points to a relative path under
$GITHUB_WORKSPACE for the git repository to operate on. Defaults to `.`
(the workspace root). The entrypoint adds the resolved path to
safe.directory and cd's into it before running git status / ghcommit.

This mirrors the behaviour of stefanzweifel/git-auto-commit-action and
enables using the action on repositories checked out into a subdirectory
of the workflow workspace.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gabriele-ct gabriele-ct requested a review from a team as a code owner May 27, 2026 13:28
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.

1 participant