Skip to content

Commit

Permalink
Create slack-stale-pr.yml (prebid#3638)
Browse files Browse the repository at this point in the history
  • Loading branch information
bretg authored Dec 19, 2024
1 parent 9ec0b44 commit b9e663b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/slack-stale-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Post Stale PRs To Slack

on:
# run Monday 9am and on-demand
workflow_dispatch:
schedule:
- cron: '0 9 * * 1'

jobs:
fetch-PRs:
runs-on: ubuntu-latest
steps:
- name: Fetch pull requests
id: local
uses: paritytech/[email protected]
with:
GITHUB_TOKEN: ${{ github.token }}
days-stale: 14
ignoredLabels: "blocked"
- name: Post to a Slack channel
id: slack
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
slack-message: "${{ steps.local.outputs.message }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit b9e663b

Please sign in to comment.