Skip to content

Commit

Permalink
Adding stale PR workflow
Browse files Browse the repository at this point in the history
This has been tested over in the sourcecred repo.

The goal is to slack a summary of stale PRs to the #prebid-server-dev channel once/week.
  • Loading branch information
bretg authored Dec 11, 2024
1 parent 183b1ec commit 2d3302f
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: Find stale PRs

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 2d3302f

Please sign in to comment.