gitignore-in/gitignore-in
Run gitignore-in command and if .gitignore is updated, generate pull request.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| branch_name | Branch name to create pull request. Default: gitignore-in | no | gitignore-in |
| base_branch | Base branch name to create pull request. Leave empty to use the repository's default branch. | no | "" |
| commit_message | Commit message for the .gitignore update. Default: Update .gitignore by gitignore.in | no | Update .gitignore by gitignore.in |
| pr_title | Pull request title. Default: Update .gitignore | no | Update .gitignore |
| pr_body | Pull request body. Default: Update .gitignore by gitignore.in | no | Update .gitignore by gitignore.in |
| delete_branch | Whether to delete the branch after the pull request is merged. Default: true | no | true |
| boilerplates_ref | Optional git ref (branch, tag, or full SHA) for the gitignore boilerplates database (github.com/toptal/gitignore). When set, the boilerplates database is checked out at this ref after the update, making .gitignore generation reproducible across runs and recording that pinned commit SHA in generated pull request bodies. Leave empty to use the latest commit (default behaviour, non-deterministic); the action warns when this input is omitted. | no | "" |
| gitignore-version | Version of the gitignore-in binary to download (e.g. v0.2.1). Defaults to the version bundled with this action release. This input selects the release artifact only; checksum policy is controlled separately by allow-unverified-gitignore-version. | no | v0.2.1 |
| allow-unverified-gitignore-version | Allow a custom gitignore-version without SHA-256 verification. Leave false to reject unverified custom versions and keep the bundled release checksum-verified. | no | false |
| timeout_seconds | Positive timeout in seconds for the gitignore.in generation step. Lower this value for fail-fast workflows or raise it for slow runners. Default: 300 | no | 300 |
Outputs
| name | description |
|---|---|
| pull-request-number | Pull request number. |
| pull-request-url | Pull request URL. |
| pull-request-operation | The pull request operation performed by the action, `created`, `updated` or `closed`. |
| pull-request-head-sha | The SHA of the head commit of the pull request. |
| boilerplates-ref | The git commit SHA of the gitignore boilerplates database (github.com/toptal/gitignore) used when generating .gitignore. Empty string if the boilerplates directory was not available. |