Skip to content

Commit

Permalink
Read comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pitag-ha committed Nov 17, 2023
1 parent 1c0f4a1 commit 5200aa7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/parse_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Fuzzy CI

on:
push:
branches: [ read-and-parse-comment ]
# pull_request:
# branches: [ fuzzy-ci-artefacts-approach ]
# types: [ opened, synchronize, reopened, unlabeled, labeled ]

jobs:
all:
name: Read and parse comment
runs-on: ubuntu-20.04
steps:
- name: Get body of last approval comment on PR
env:
msg_start: "This PR introduces a change in some Merlin query response(s), which has been captured by the fuzzy-test CI."
run: |
body=$(curl -s "https://api.github.com/repos/pitag-ha/merlin/issues/6/comments" | jq -r --arg msg_start "$msg_start" 'map(select(.body | startswith($msg_start))) | max_by(.'created_by') | .body' | tee -a)
echo "body=$body" | tee -a $GITHUB_OUTPUT

0 comments on commit 5200aa7

Please sign in to comment.