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: 15 additions & 6 deletions .github/workflows/reusable-mqt-core-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ on:
workflow_call:
inputs:
update-to-head:
description: "Whether to update to the latest commit on the main branch or the latest release"
description: Whether to update to the latest commit on the main branch or the latest release
default: false
type: boolean
required: false
secrets:
APP_ID:
description: ID of the GitHub App with permission to create and update pull requests
required: true
APP_PRIVATE_KEY:
description: Private key of the GitHub App with permission to create and update pull requests
required: true
jobs:
update-mqt-core:
name: ⬆️ Update MQT Core
Expand All @@ -23,6 +30,12 @@ jobs:
contents: write
pull-requests: write
steps:
# Create a GitHub App token
- id: create-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
# Check out the repository
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
Expand Down Expand Up @@ -147,17 +160,13 @@ jobs:
if: steps.compare-versions.outputs.update == 'true'
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7
with:
token: ${{ github.token }}
token: ${{ steps.create-token.outputs.token }}
commit-message: "⬆️ Update `munich-quantum-toolkit/core`"
title: "⬆️ Update `munich-quantum-toolkit/core`"
body: |
This pull request updates the [munich-quantum-toolkit/core](https://github.com/munich-quantum-toolkit/core) dependency from munich-quantum-toolkit/core@${{ steps.get-used-version.outputs.revision }} (version v${{ steps.get-used-version.outputs.version }}) to munich-quantum-toolkit/core@${{ steps.determine-new-version-and-revision.outputs.new_revision }} (version v${{ steps.determine-new-version-and-revision.outputs.new_version }}).

**Full Changelog**: https://github.com/munich-quantum-toolkit/core/compare/${{ steps.get-used-version.outputs.revision }}...${{ steps.determine-new-version-and-revision.outputs.new_revision }}

> [!NOTE]
> This pull request was automatically created by a GitHub Actions workflow, which does not have permissions to trigger other workflows.
> Manually close and reopen this pull request to trigger the dependent workflows.
branch: "update-mqt-core-${{ steps.determine-new-version-and-revision.outputs.new_revision }}"
labels: "dependencies,c++"
base: "main"
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ This project adheres to [Semantic Versioning], with the exception that minor rel

## [Unreleased]

## [1.12.0] - 2025-07-08

_If you are upgrading: please see [`UPGRADING.md`](UPGRADING.md#1120)._

### Added

- 🐍🚨 Add support for running Astral's `ty` type checker as part of the `reusable-python-linter.yml` workflow ([#128]) ([**@burgholzer**])

### Changed

- 👷 Use GitHub App token for workflow that updates MQT Core ([#142]) ([**@denialhaag**])
- 🐍🚨 Update `reusable-python-linter.yml` to allow disabling the `mypy` type checker ([#128]) ([**@burgholzer**])

## [1.11.0] - 2025-06-15
Expand Down Expand Up @@ -57,14 +62,16 @@ _📚 Refer to the [GitHub Release Notes] for previous changelogs._

<!-- Version links -->

[unreleased]: https://github.com/munich-quantum-toolkit/workflows/compare/v1.11.0...HEAD
[unreleased]: https://github.com/munich-quantum-toolkit/workflows/compare/v1.12.0...HEAD
[1.12.0]: https://github.com/munich-quantum-toolkit/workflows/releases/tag/v1.12.0
[1.11.0]: https://github.com/munich-quantum-toolkit/workflows/releases/tag/v1.11.0
[1.10.0]: https://github.com/munich-quantum-toolkit/workflows/releases/tag/v1.10.0
[1.9.0]: https://github.com/munich-quantum-toolkit/workflows/releases/tag/v1.9.0
[1.8.1]: https://github.com/munich-quantum-toolkit/workflows/releases/tag/v1.8.1

<!-- PR links -->

[#142]: https://github.com/munich-quantum-toolkit/workflows/pull/142
[#126]: https://github.com/munich-quantum-toolkit/workflows/pull/126
[#119]: https://github.com/munich-quantum-toolkit/workflows/pull/119
[#114]: https://github.com/munich-quantum-toolkit/workflows/pull/114
Expand All @@ -77,6 +84,7 @@ _📚 Refer to the [GitHub Release Notes] for previous changelogs._

[**@burgholzer**]: https://github.com/burgholzer
[**@ystade**]: https://github.com/ystade
[**@denialhaag**]: https://github.com/denialhaag

<!-- General links -->

Expand Down
22 changes: 21 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This document describes breaking changes and how to upgrade. For a complete list

## [Unreleased]

## [1.12.0]

This release adds support for running Astral's `ty` type checker as part of the `reusable-python-linter.yml` workflow.
To enable this, you can set the `run-ty` option to `true` in the workflow configuration.
Additionally, the `mypy` type checker can now be disabled by setting the `run-mypy` option to `false`.
Expand All @@ -16,6 +18,23 @@ Project may want to add `ty` to their development dependencies to ensure that th
uv add --dev ty
```

Furthermore, this release changes the `reusable-mqt-core-update.yml` workflow to use a GitHub App token for creating and editing pull requests.
This token has permissions to trigger workflows in the created pull requests, which is not the case for the default GitHub token used previously.
When using the `reusable-mqt-core-update.yml` workflow, it is now necessary to pass the `APP_ID` and `APP_PRIVATE_KEY` as secrets.

```yaml
update-mqt-core:
name: ⬆️ Update MQT Core
uses: munich-quantum-toolkit/workflows/.github/workflows/[email protected]
with:
update-to-head: ${{ github.event.inputs.update-to-head == 'true' }}
secrets:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
```

Both variables are stored as organization-wide secrets and do not need to be explicitly added to each repository.

## [1.11.0]

This release adapts the file filter for the change detection to the new project structure regarding the Python bindings.
Expand Down Expand Up @@ -75,7 +94,8 @@ While initial testing has shown minimal impact, this is still a breaking change.
For example, it seems like using Ninja as a generator will lead to the wrong compiler being used.
Consider removing any `-G Ninja` flags from your CMake invocations under Windows.

[unreleased]: https://github.com/munich-quantum-toolkit/workflows/compare/v1.11.0...HEAD
[unreleased]: https://github.com/munich-quantum-toolkit/workflows/compare/v1.12.0...HEAD
[1.12.0]: https://github.com/munich-quantum-toolkit/workflows/compare/v1.11.0...v1.12.0
[1.11.0]: https://github.com/munich-quantum-toolkit/workflows/compare/v1.10.0...v1.11.0
[1.10.0]: https://github.com/munich-quantum-toolkit/workflows/compare/v1.9.0...v1.10.0
[1.9.0]: https://github.com/munich-quantum-toolkit/workflows/compare/v1.8.1...v1.9.0
Loading