Skip to content

Commit

Permalink
Merge pull request #674 from SnowCait/notify-issue-open
Browse files Browse the repository at this point in the history
Notify issue open
  • Loading branch information
SnowCait authored Oct 7, 2023
2 parents aff7e52 + 822b791 commit fa4fcd4
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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
Expand All @@ -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:
Expand Down

1 comment on commit fa4fcd4

@vercel
Copy link

@vercel vercel bot commented on fa4fcd4 Oct 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nostter – ./

nostter-snowcait.vercel.app
nostter-git-main-snowcait.vercel.app
nostter.vercel.app

Please sign in to comment.