bobthebuidler/Poosh
Attempts to push changes directly to the specified branch. If direct push is not possible (e.g., due to permissions or branch protection), creates a new branch and opens a pull request to the target branch instead.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 22, 2026
- License
- None
Pinned Snippet
uses: bobthebuidler/poosh@65c1823d8420c8b686b55ee852ef96aadf396593 # v0.1.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| commit-message | Commit message to use when committing changes. | yes | — |
| trigger-branch | The branch where changes were made and where the action will attempt to push directly. If direct push fails, a PR will be opened to this branch. | yes | — |
| direct-push | Whether to attempt a direct push to trigger-branch before using the PR branch fallback. | no | true |
| pr-branch | The name of the branch to create or update if a PR is needed. If not provided, defaults to 'poosh/{trigger-branch}'. If provided and does not contain '/', it will be prefixed with 'poosh/'. | no | "" |
| pr-branch-strategy | How to handle an existing PR branch: update it with --force-with-lease, create a suffixed unique branch, or fail. | no | update |
| pr-base | The base branch to target if a PR is needed. Defaults to the trigger-branch. | no | "" |
| trigger-pr-number | Optional: PR number of the triggering PR (e.g., 1234). If set, the PR body will include 'Triggered by #<number>'. | no | "" |
| pr-body | The body content for the pull request. If not provided, a default message will be used, followed by trigger info. | no | This PR was generated by [Poosh](https://github.com/BobTheBuidler/poosh) as part of a GitHub Actions workflow |
Outputs
| name | description |
|---|---|
| trigger-branch | The branch that was pushed to or targeted by the PR. |
| commit-sha | The commit SHA of the pushed commit (if a commit was made). |
| pr-url | The URL of the created pull request (if a PR was opened). |
| pr-number | The number of the created pull request (if a PR was opened). |