From 22aa14a717200be432c88ce2309667510a24fa71 Mon Sep 17 00:00:00 2001 From: Dany Castillo <31006608+dcastil@users.noreply.github.com> Date: Sat, 13 Aug 2022 18:52:43 +0200 Subject: [PATCH 1/2] add GitHub action to comment released PRs and issues --- .../workflows/comment-released-prs-and-issues.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/comment-released-prs-and-issues.yml diff --git a/.github/workflows/comment-released-prs-and-issues.yml b/.github/workflows/comment-released-prs-and-issues.yml new file mode 100644 index 00000000..d5785cd1 --- /dev/null +++ b/.github/workflows/comment-released-prs-and-issues.yml @@ -0,0 +1,14 @@ +name: Comment released PRs and issues + +on: + release: + types: [published] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: apexskier/github-release-commenter@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + comment-template: This was addressed in release {release_link}. From 44f3a190305735c8395dade81f0af9fc430a0aa9 Mon Sep 17 00:00:00 2001 From: Dany Castillo <31006608+dcastil@users.noreply.github.com> Date: Sat, 13 Aug 2022 18:53:12 +0200 Subject: [PATCH 2/2] make workflow configs more consistent --- .github/workflows/draft-release.yml | 3 +-- .github/workflows/npm-publish-dev.yml | 3 +-- .github/workflows/test.yml | 6 ++---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 2596cf0f..0e2db5ea 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -2,8 +2,7 @@ name: Draft Release on: push: - branches: - - main + branches: [main] pull_request: types: [opened, reopened, synchronize] diff --git a/.github/workflows/npm-publish-dev.yml b/.github/workflows/npm-publish-dev.yml index 4cb3dd82..28273ce6 100644 --- a/.github/workflows/npm-publish-dev.yml +++ b/.github/workflows/npm-publish-dev.yml @@ -2,8 +2,7 @@ name: npm Publish dev on: push: - branches: - - main + branches: [main] jobs: publish: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f6bc458f..c200b658 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,11 +2,9 @@ name: Test on: push: - branches: - - '**' + branches: ['**'] pull_request: - branches: - - '**' + branches: ['**'] jobs: test: