Skip to content

Commit

Permalink
Merge pull request #2201 from vrk-kpa/add_open_pr_notify_action
Browse files Browse the repository at this point in the history
Add action for notifying on open PRs
  • Loading branch information
Zharktas authored Apr 10, 2024
2 parents f675e6e + 092178c commit 6965635
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/open_prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Notify about open PRs
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * 1-5"


jobs:
send_open_prs:
name: Fetch and send open PRs
runs-on: ubuntu-latest
steps:
- name: Fetch open PRs
id: fetch_open_prs
uses: vrk-kpa/fetch-open-prs@main
with:
repository: "vrk-kpa/opendata"
format: "markdown"
ignored_users: '["dependabot[bot]"]'

- name: Print
run: echo "${{ steps.fetch_open_prs.outputs.PRs }}"

- name: Send to zulip
uses: zulip/github-actions-zulip/send-message@v1
with:
api-key: ${{ secrets.ZULIP_API_KEY }}
email: 'avoindata-bot@turina.dvv.fi'
organization-url: 'https://turina.dvv.fi'
to: 'avoindata.fi'
type: 'stream'
topic: 'Avoimet koodikatselmoinnit'
content: '${{ steps.fetch_open_prs.outputs.PRs }}'

0 comments on commit 6965635

Please sign in to comment.