Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #225

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

test #225

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
1 change: 1 addition & 0 deletions .github/workflows/do-not-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- opened
- labeled
- unlabeled
workflow_call:

permissions:
pull-requests: read
Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/fallback-pr-create.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
name: Fallback pr create
on:
pull_request:
issue_comment:
pull_request_review:
pull_request_review_comment:

jobs:
approved:
name: '!!!'
if: ${{ !github.event.issue || github.event.issue.pull_request }}
get-statusCheckRollup:
runs-on: ubuntu-22.04
outputs:
status: ${{ steps.step1.outputs.status }}
steps:
- run: "true"
- id: set-statusCheckRollup
run: echo "status=${{ toJSON(${gh pr view 215 --json statusCheckRollup -q '.statusCheckRollup[].name'}) }}" >> "$GITHUB_OUTPUT"
pr:
name: 'pr'
needs: get-statusCheckRollup
runs-on: ubuntu-22.04
steps:
- name: check_do-not-merge
run: |
echo "${{ needs.get-statusCheckRollup }}"
if ${{ !contains(fromJSON(needs.get-statusCheckRollup), '') }}; then
true
- name: do-not-merge
uses: ./github/workflows/do-not-merge.yml