UnboundLocalError: cannot access local variable 'data' where it is not associated with a value #5
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: Pull request merge | |
on: | |
issue_comment: | |
types: [created, edited] | |
jobs: | |
pr-ff-merge: | |
# Only run if the comment contains a fast-forward triggering command. | |
if: ${{ ( contains(github.event.comment.body, '/fast-forward') || | |
contains(github.event.comment.body, '!ff') || | |
contains(github.event.comment.body, '!merge') ) | |
&& github.event.issue.pull_request }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
issues: write | |
steps: | |
- name: Fast forward merge | |
uses: sequoia-pgp/fast-forward@v1 | |
with: | |
merge: true | |
comment: always |