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
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "Dependency"
open-pull-requests-limit: 10
labels:
- "dependencies"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "Dependency"
open-pull-requests-limit: 5
labels:
- "dependencies"
19 changes: 19 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Summary

<!-- What changes for applications that use Strata, and why. -->

## Release notes

<!-- The title and the label decide what the release draft shows. See "Release notes" in AGENTS.md. -->

- [ ] The title follows `Area: Description` with a listed area
- [ ] The title describes the effect in the past tense, for example `Database: Fixed ...`
- [ ] Exactly one label: `feature`, `change`, `bug`, `dependencies`, or `skip-changelog`
- [ ] `bug` only for a bug that shipped in a release; a fix for a bug that only existed on `dev` is `skip-changelog`
- [ ] `major` added when applications must change their code or migrations on upgrade
- [ ] Upgrade steps added to `.github/release-notes.md`, if applications need them

## Checks

- [ ] Tests added or updated
- [ ] README updated for changed usage
69 changes: 38 additions & 31 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,58 @@
name-template: "$RESOLVED_VERSION"
tag-template: "$RESOLVED_VERSION"
change-template: "* $TITLE by @$AUTHOR in [#$NUMBER]($URL)"
# The release drafter workflow sorts the changes by their title prefix.
change-template: "* $TITLE ([#$NUMBER]($URL))"
change-title-escapes: "\\<*_&"
category-template: "## $TITLE"
no-changes-template: "* No changes"

# The text between the markers comes from .github/release-notes.md when it names the resolved version.
template: |
Strata $RESOLVED_VERSION
<!-- release-notes:start -->
# Strata $RESOLVED_VERSION - [Short subtitle]

[1-2 sentence summary of the release.]
<!-- release-notes:end -->

Java 17 or newer is required. See the README for installation and usage.
# Changelog

$CHANGES

**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_TAG

# Installation

Java 17 or newer is required. See the [README](https://github.com/whereareiam/strata#readme) for installation and usage.

categories:
- title: "Features"
- type: pre-exclude
when:
label: skip-changelog

- title: "What’s new"
exclusive: true
labels:
- "feature"
semver-increment: minor
when:
label: feature

- title: "Changes"
- title: "Enhancements"
exclusive: true
labels:
- "change"
when:
label: change

- title: "Fixes"
exclusive: true
labels:
- "bug"
when:
label: bug

- title: "Dependencies"
exclusive: true
labels:
- "dependencies"

exclude-labels:
- "skip-changelog"

version-resolver:
major:
labels:
- "major"
minor:
labels:
- "feature"
patch:
labels:
- "change"
- "bug"
- "dependencies"
default: patch
when:
label: dependencies

- type: version-resolver
semver-increment: major
when:
label: major

- type: version-resolver
semver-increment: patch
7 changes: 7 additions & 0 deletions .github/release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 3.2.0
---

# Strata 3.2.0 - [Short subtitle]

[1-2 sentence summary of the release.]
14 changes: 0 additions & 14 deletions .github/scripts/release-assets.py

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Development build
run-name: "Development build of ${{ github.ref_name }}"

on:
workflow_dispatch:

concurrency:
group: development-${{ github.ref }}
cancel-in-progress: false

permissions:
contents: read

jobs:
verify:
name: Verify
permissions:
contents: read
checks: write
uses: ./.github/workflows/reusable-verify.yml
with:
ref: ${{ github.sha }}

publish:
name: Publish
needs: verify
permissions:
contents: read
id-token: write
uses: ./.github/workflows/reusable-publish.yml
with:
commit: ${{ needs.verify.outputs.commit }}
version: ${{ needs.verify.outputs.version }}
30 changes: 0 additions & 30 deletions .github/workflows/publish-dev.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/publish-release.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Pull request · Checks

on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]

concurrency:
group: pull-request-checks-${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions:
contents: read
checks: write

jobs:
checks:
name: Checks
if: ${{ !github.event.pull_request.draft }}
uses: ./.github/workflows/reusable-verify.yml
with:
ref: ${{ github.sha }}
version: pr-${{ github.event.pull_request.number }}
23 changes: 23 additions & 0 deletions .github/workflows/pull-request-metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pull request · Metadata

on:
pull_request_target:
types: [opened, reopened, edited, synchronize, labeled, unlabeled]

concurrency:
group: pull-request-metadata-${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions:
pull-requests: read

jobs:
metadata:
name: Title and labels
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
# Reads the pull request through the API and never checks out its code.
- uses: whereareiam/devops/primitive/pull-request/validate-metadata@v3
with:
title-format: "Category: Description"
22 changes: 0 additions & 22 deletions .github/workflows/pull-request.yml

This file was deleted.

20 changes: 17 additions & 3 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Drafter
name: Release drafter

on:
push:
Expand All @@ -15,12 +15,26 @@ concurrency:
cancel-in-progress: true

jobs:
update-release-draft:
draft:
name: Update draft
runs-on: ubuntu-latest
steps:
- name: Update release draft
- uses: actions/checkout@v7
with:
ref: dev
persist-credentials: false

- id: drafter
uses: release-drafter/release-drafter@v7
with:
commitish: dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Group changes and add the release notes
uses: whereareiam/blockops/primitive/release/draft/regroup@v4
with:
release-id: ${{ steps.drafter.outputs.id }}
release-body: ${{ steps.drafter.outputs.body }}
notes-file: .github/release-notes.md
version: ${{ steps.drafter.outputs.resolved_version }}
Loading
Loading