From 822b791837e51a8e3bff8e7777ab5c49ba9df6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=AA=E7=8C=AB?= Date: Sat, 7 Oct 2023 12:21:10 +0900 Subject: [PATCH] Notify issue open --- .github/workflows/notify.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 6dbadd7ee..d1df1df0a 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -1,12 +1,29 @@ name: Notify on: + issues: + types: + opened pull_request: types: - closed jobs: - notify: + notify-issue: + if: ${{ github.event_name == 'issues' }} + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: snow-actions/nostr@v1.7.0 + with: + relays: ${{ vars.NOSTR_RELAYS }} + private-key: ${{ secrets.NOSTR_PRIVATE_KEY }} + content: | + Issue: ${{ github.event.issue.title }} + ${{ github.event.issue.html_url }} #nostter + tags: | + - ["t", "nostter"] + notify-pr: if: ${{ github.event.pull_request.merged == true }} runs-on: ubuntu-latest timeout-minutes: 5 @@ -16,8 +33,8 @@ jobs: relays: ${{ vars.NOSTR_RELAYS }} private-key: ${{ secrets.NOSTR_PRIVATE_KEY }} content: | - #nostter ${{ github.event.pull_request.title }} - ${{ github.event.pull_request.html_url }} + PR: ${{ github.event.pull_request.title }} + ${{ github.event.pull_request.html_url }} #nostter tags: | - ["t", "nostter"] user-status: