Skip to content

Commit

Permalink
Add stale PR workflow (prebid#4098)
Browse files Browse the repository at this point in the history
  • Loading branch information
bretg authored and scr-oath committed Dec 16, 2024
1 parent 4715aaa commit 2a09ee3
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 2a09ee3

Please sign in to comment.