Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

ci: comment on issues and PRs when their fix is released (#5960)

Mostafa Nazari49d6694d1d78
diff --git a/.github/workflows/release-comment.yml b/.github/workflows/release-comment.yml
new file mode 100644
index 00000000..ac3a4d92
--- /dev/null
+++ b/.github/workflows/release-comment.yml
@@ -0,0 +1,21 @@
+name: Release Comment
+
+on:
+ release:
+ types: [published]
+
+permissions:
+ contents: read
+ issues: write
+ pull-requests: write
+
+jobs:
+ comment:
+ name: Comment on released issues and PRs
+ runs-on: ubuntu-latest
+ steps:
+ - uses: apexskier/github-release-commenter@v1
+ with:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ comment-template: |
+ :brown_heart: This was released in {release_link}. :brown_heart: