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
2 changes: 1 addition & 1 deletion .github/actions/install-leverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
steps:
- name: Download distributables
if: inputs.dist-artifact != ''
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: ${{ inputs.dist-artifact }}
path: dist
Expand Down
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ updates:
update-types: [minor, patch]

- package-ecosystem: github-actions
directory: /
# The workflows, plus the composite actions under .github/actions
directories: ["/", "/.github/actions/*"]
schedule:
interval: weekly
groups:
Expand Down
86 changes: 48 additions & 38 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,70 @@ name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
when:
labels:
- 'feature'
- 'enhancement'
- title: '💣 Breaking Change'
labels:
- 'breakingchange'
- 'breaking'
when:
labels:
- 'breakingchange'
- 'breaking'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
when:
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '📝 Documentation'
labels:
- 'doc'
- 'documentation'
when:
labels:
- 'doc'
- 'documentation'
- title: '🔨 Maintenance'
labels:
- 'chore'
- 'maintenance'
when:
labels:
- 'chore'
- 'maintenance'
# The next version is the highest bump among the merged PRs' labels: major, minor or patch.
# The autolabeler below sets minor or patch from the PR title. To override it, change the title, or
# add 'major'/'breaking', which the autolabeler doesn't manage (it removes its own labels, see below).
- type: 'version-resolver'
semver-increment: 'major'
when:
labels:
- 'major'
- 'breaking'
- 'breakingchange'
- type: 'version-resolver'
semver-increment: 'minor'
when:
label: 'minor'
- type: 'version-resolver'
semver-increment: 'patch'
when:
label: 'patch'
# Labels PRs from their title, e.g. "Fix | ...", "fix: ...", "Enhancement | ...", "feat(cli): ...".
# Runs on pull_request events (see release-management-github.yml); it only adds labels.
# Runs on pull_request events, with the autolabeler action (see release-management-github.yml).
# sync-labels: the labels below follow the title, so a PR retitled from "feat" to "fix" loses 'minor'
# and 'enhancement'. Only these labels are removed; any other (bug, test, major, ...) is left alone.
sync-labels: true
autolabeler:
- label: 'fix'
- labels: ['fix', 'patch']
title:
- '/^\s*(fix|bug|bugfix|hotfix)\b/i'
- label: 'enhancement'
- labels: ['enhancement', 'minor']
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
title:
- '/^\s*(feat|feature|enhancement)\b/i'
- label: 'documentation'
- labels: ['documentation', 'patch']
title:
- '/^\s*docs?\b/i'
- label: 'minor'
- labels: ['patch']
title:
- '/^\s*(feat|feature|enhancement)\b/i'
- label: 'patch'
title:
- '/^\s*(fix|bug|bugfix|hotfix|docs?|chore)\b/i'
- '/^\s*chore\b/i'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
# The next version is the highest bump among the merged PRs' labels: major, minor or patch.
# The autolabeler above sets a default from the PR title; change the label on the PR to override it.
version-resolver:
major:
labels:
- 'major'
- 'breaking'
- 'breakingchange'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
footer: |
---
Expand Down
22 changes: 8 additions & 14 deletions .github/workflows/release-management-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ on:
- master
# Only for the autolabeler
pull_request:
# edited: so a title change relabels the PR
types: [opened, reopened, synchronize, edited, labeled, unlabeled]
# edited: so a title change relabels the PR. Not on labeled/unlabeled: label changes can't change
# what the title matches, and rerunning there would only fight the maintainer's edits.
types: [opened, reopened, synchronize, edited]

permissions:
contents: read
Expand All @@ -27,14 +28,11 @@ jobs:
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
disable-autolabeler: true
- uses: release-drafter/release-drafter@978bb0b30c5ee8cdd332ced253758157150d43f0 # v7.10.0

# Labels the PR from its title (see autolabeler in .github/release-drafter.yml). It must not
# touch the drafts: concurrent PR events created duplicate drafts targeting the PR branch.
# Labels the PR from its title (see autolabeler in .github/release-drafter.yml). Since v7 the
# autolabeler is its own action and never touches the drafts (concurrent PR events used to create
# duplicate drafts targeting the PR branch).
autolabel:
if: github.event_name == 'pull_request'
# Only the latest event of a PR matters
Expand All @@ -47,8 +45,4 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
disable-releaser: true
- uses: release-drafter/release-drafter/autolabeler@978bb0b30c5ee8cdd332ced253758157150d43f0 # v7.10.0
12 changes: 6 additions & 6 deletions .github/workflows/release-pypi-build-push-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
version: ${{ steps.version.outputs.version }}
steps:
# On a release event this checks out the released tag, not whatever master points to now
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: '3.13'

Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
make check

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: dist
path: dist/
Expand Down Expand Up @@ -92,12 +92,12 @@ jobs:
needs: [build, unit_tests, integration_tests]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: '3.13'

# The very same distributables that were tested, not a rebuild
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
name: dist
path: dist
Expand All @@ -116,7 +116,7 @@ jobs:
if: always()
runs-on: ubuntu-latest
steps:
- uses: act10ns/slack@v1
- uses: act10ns/slack@v2
with:
# The publication is reported as failed if anything before it failed or was skipped
status: ${{ needs.publish.result == 'success' && 'success' || 'failure' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-pypi-build-push-test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
build_push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: '3.13'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-lint-black.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
persist-credentials: false

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ jobs:
OPENTOFU_VERSION: ${{ matrix.opentofu }}
BATS_LIB_PATH: /usr/local/lib/bats
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
persist-credentials: false

- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: '3.13'

Expand Down Expand Up @@ -182,11 +182,11 @@ jobs:
# The oldest and newest supported versions; the unit tests cover every one of them
python-version: ['3.11', '3.15']
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
persist-credentials: false

- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
matrix:
python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}

Expand Down
Loading