Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/commit.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Commit (shared)
name: Pull request
on:
workflow_call:
pull_request_target:
types: [opened, reopened, edited, synchronize]
jobs:
pull-request-title:
runs-on: ubuntu-slim
Expand Down
3 changes: 1 addition & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ tools to already be installed in the developer environment.
- `.github/actions/check-precommit/` — composite action: verifies pre-commit hooks match detected CI linters
- `.github/actions/setup-runtimes/` — installs Python packages, Ruby, and standalone binaries for requested linters; Python is provided by the runner
- `.github/workflows/lint-shared.yml` — reusable workflow exported for consuming repos: setup + lint
- `.github/workflows/commit-shared.yml` — reusable workflow exported for Conventional Commit pull request titles
- `.github/workflows/embedder-shared.yml` — reusable workflow exported for required content validation
- `.github/workflows/commit.yml` — baseline caller for its Conventional Commit pull request title check
- `.github/workflows/pr.yml` — validates Baseline pull request titles against Conventional Commits
- `.github/workflows/lint.yml` — baseline self-lint (uses local `./` references, not `@vX`)
- `.github/workflows/release-please.yml` — maintains the release PR and publishes merged releases
- `.github/workflows/notify-telegram-unreleased.yml` — baseline's own caller (delegates to `rubykatzen/releaser`)
Expand Down
33 changes: 3 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,34 +77,7 @@ jobs:

The `skip` input must be a JSON array. Unknown check names fail the workflow.

### 3. Commit workflow

Create `.github/workflows/commit.yml`:

```yaml
name: Commit
on:
# Load trusted workflow code from the default branch when validating fork PRs.
pull_request_target:
types: [opened, reopened, edited, synchronize]
jobs:
pull-request-title:
uses: rubykatzen/baseline/.github/workflows/commit-shared.yml@VERSION
```

The shared workflow requires pull request titles to follow Conventional Commits:

```text
<type>[optional scope][!]: <description>
```

Only the pull request title is validated. Intermediate branch commits may use
any format because the GitHub repository policy squashes the pull request and
uses only its title for the single commit added to the default branch. Use `!`
for a breaking change, for example
`refactor!: remove legacy workflow inputs`.

### 4. Embedded content
### 3. Embedded content

Create `.github/workflows/embedder.yml`:

Expand Down Expand Up @@ -138,7 +111,7 @@ jobs:

The `skip` input must be a JSON array. Unknown fragment names fail the workflow.

### 5. Pre-commit hooks
### 4. Pre-commit hooks

Copy `.pre-commit-config.yaml.example` to your repo or add to your existing config.
Include only the hooks relevant to your stack:
Expand Down Expand Up @@ -170,7 +143,7 @@ Ruby hooks use `bundle exec`; install Ruby and run `bundle install` in the
consuming repository first. `rubocop` and `erb_lint` must be available through
the [`rubykatzen-baseline`](#ruby-gem-rubocop--erb_lint) gem.

### 6. Dependabot
### 5. Dependabot

Add `.github/dependabot.yml` to keep GitHub Actions and pre-commit pins
current automatically:
Expand Down