From f3f32d23794c7343e49db4d2bbcd20479a53ec18 Mon Sep 17 00:00:00 2001 From: Jan Richter Date: Fri, 21 Jun 2024 09:27:33 +0200 Subject: [PATCH] PR announcement as env variable This commit changes PR announcement message from hard coded text to env variable. Thanks to this, it will be possible to change the message in the repository settings without creating a new PR. Signed-off-by: Jan Richter --- .github/workflows/pr_announcement.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/pr_announcement.yml b/.github/workflows/pr_announcement.yml index bfaa0be34c..42df4ecf8b 100644 --- a/.github/workflows/pr_announcement.yml +++ b/.github/workflows/pr_announcement.yml @@ -36,13 +36,7 @@ jobs: gh api graphql -f query='mutation { addComment(input: { subjectId: ${{ env.PR_ID }}, - body: """Dear contributor, - Avocado is currently at the end of sprint #105, therefore we are in feature freeze state. - Please avoid merging changes that do not fall into these categories: - * Bug fixes - * Documentation updates - - The feature freeze will be active until the release planned on 05/06/2024."""}) { + body: """${{ env.PR_ANNOUNCEMENT }}"""}) { clientMutationId }