Skip to content

Commit

Permalink
[to #40] add some github workflows (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-jason authored Mar 1, 2022
1 parent 33402ed commit 91d5409
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
component/br:
- br/*

component/cdc:
- cdc/*

component/bulk-load:
- online-bulk-load/*

component/sst-data-source:
- sst-data-source/*
11 changes: 11 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "PR Labeler"
on:
- pull_request_target

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
14 changes: 14 additions & 0 deletions .github/workflows/pr-title-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'PR Title Checker'
on:
pull_request:
types: [edited, opened, synchronize, reopened]

jobs:
title-check:
runs-on: ubuntu-latest
steps:
- uses: naveenk1223/action-pr-title@master
with:
regex: '\[to|fix|close #[0-9]+\] .+'
prefix_case_sensitive: true
max_length: -1
19 changes: 19 additions & 0 deletions .github/workflows/stale-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Stale Checker'
on:
schedule:
- cron: '0 0 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
days-before-stale: 30
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity.'
stale-issue-label: 'status/stale'
days-before-issue-close: -1
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove the status/stale label or comment or this PR will be closed in 7 days.'
stale-pr-label: 'status/stale'
days-before-pr-close: 7
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.'

0 comments on commit 91d5409

Please sign in to comment.