-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b42dd6f
commit 4c2a9e6
Showing
1 changed file
with
3 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,6 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Send message via Matrix | ||
steps: | ||
- name: Set PR body | ||
id: pr-body | ||
run: | | ||
PR_BODY="${{ github.event.pull_request.body }}" | ||
# Add a > to the beginning of each line in the PR body | ||
FORMATTED_BODY=$(echo "$PR_BODY" | sed 's/^/> /') | ||
echo "$FORMATTED_BODY" > formatted_body.txt | ||
echo "::set-output name=formatted_body::$(<formatted_body.txt)" | ||
- name: Send message to test channel | ||
id: matrix-chat-message | ||
uses: fadenb/[email protected] | ||
|
@@ -24,10 +16,8 @@ jobs: | |
token: ${{ secrets.MATRIX_TOKEN }} | ||
channel: '!CexOsaVfMdZOTmJwCz:matrix.org' | ||
message: | | ||
Pull request ready for review by ${{ github.event.sender }}: | ||
🫳🎁Pull request ready for review by ${{ github.event.sender.login }}: | ||
# ${{ github.event.pull_request.title }} | ||
> ${{ github.event.pull_request.title }} | ||
${{ steps.pr-body.outputs.formatted_body }} | ||
check it out here: ${{ github.event.pull_request.url }} | ||
Please leave your review here: https://github.com/TUM-Dev/gocast/pull/${{ github.event.number }} |