From b9661d9a463b58ab2021222c6281d54f19b017ac Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 26 Mar 2022 19:18:35 +0200 Subject: [PATCH] Try to add comment --- .github/workflows/pull_request_changelog.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request_changelog.yml b/.github/workflows/pull_request_changelog.yml index 49a15123..9e4cc7f6 100644 --- a/.github/workflows/pull_request_changelog.yml +++ b/.github/workflows/pull_request_changelog.yml @@ -32,6 +32,22 @@ jobs: towncrier check --compare-with origin/${BASE_BRANCH} - if: "failure()" - run: echo "FAILED" + name: Create comment + uses: peter-evans/create-or-update-comment@v2 + with: + body: | + # :x: Changelog is required! + + You need to add a brief description of the changes to the `CHANGES` directory. + + For example, you can run `towncrier create .` to create a file in the change directory and then write a description on that file. + + Read more at [Towncrier docs](https://towncrier.readthedocs.io/en/latest/quickstart.html#creating-news-fragments) - if: "success()" - run: echo "PASS" + name: Create comment + uses: peter-evans/create-or-update-comment@v2 + with: + body: | + # :heavy_check_mark: Changelog is added + + Thank you for adding a description of the changes