Block archiving reservation units with reservations #1070
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fast-forward merge a pull request | |
on: | |
# Trigger when a comment is created or edited. | |
issue_comment: | |
types: [created, edited] | |
jobs: | |
fast-forward: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # Allows merging the PR. | |
pull-requests: write # Writing comments on PRs. | |
issues: write # Also required for posting comments on PRs. | |
# Only run if the comment is one of the defined keywords. | |
if: >- | |
${{ | |
github.event.issue.pull_request | |
&& contains(fromJSON('["/fast-forward", "/ff"]'), github.event.comment.body) | |
}} | |
steps: | |
- name: "Fast forwarding" | |
uses: sequoia-pgp/fast-forward@v1 | |
with: | |
merge: true | |
comment: always |