From e9ccd52f22bff6063a873e3532047fabedb57b9d Mon Sep 17 00:00:00 2001 From: Glenn Date: Thu, 2 Nov 2023 21:39:30 -0700 Subject: [PATCH] Update post_to_mastodon.yml --- .github/workflows/post_to_mastodon.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/post_to_mastodon.yml b/.github/workflows/post_to_mastodon.yml index 10dc71e8..54422a4e 100644 --- a/.github/workflows/post_to_mastodon.yml +++ b/.github/workflows/post_to_mastodon.yml @@ -15,10 +15,11 @@ jobs: PR_NUMBER: ${{ github.event.pull_request.number }} PR_BODY: ${{ github.event.pull_request.body }} PR_USER: ${{ github.event.pull_request.user.login }} + REPO_NAME: ${{ github.repository }} MASTODON_INSTANCE_URL: 'https://fosstodon.org' run: | PR_COMMENT=$(echo "$PR_BODY" | head -c 100) # Truncating to 100 characters, adjust as needed - STATUS="Pull request #$PR_NUMBER by @$PR_USER merged: $PR_TITLE - $PR_COMMENT" + STATUS="Pull request #$PR_NUMBER by @$PR_USER in $REPO_NAME merged: $PR_TITLE - $PR_COMMENT" curl -X POST -H "Authorization: Bearer ${{ secrets.MASTODON_ACCESS_TOKEN }}" \ -F "status=$STATUS" \ $MASTODON_INSTANCE_URL/api/v1/statuses