Skip to content

Commit

Permalink
ci: Enable crates.io auto-release, but require certain people to appr…
Browse files Browse the repository at this point in the history
…ove the PRs (#1069)

This setups a restricted ownership over the changelog files, so the
release PRs by `release-please` or `release-plz` have to be approved by
a restricted set of people.

We can then enable auto-releases for rust (for python is already
enabled).

Feel free to suggest other users to add to the list.
  • Loading branch information
aborgna-q authored May 16, 2024
1 parent 7be07c5 commit d2087ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@

# Add specific rules below.
# Lower the rule, higher the precedence

# The release PRs that trigger publication to crates.io or PyPI always modify the changelog.
# We require those PRs to be approved by someone with release permissions.
hugr/CHANGELOG.md @aborgna-q @ss2165
hugr-py/CHANGELOG.md @aborgna-q @ss2165
3 changes: 1 addition & 2 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/[email protected]
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit d2087ce

Please sign in to comment.