Skip to content

Commit 82f706d

Browse files
committed
chore(sdlc): configure pre-commit, pr linters, and stale issue automation
1 parent 69f2143 commit 82f706d

3 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/pr-lint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "PR Lint"
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- edited
7+
- synchronize
8+
jobs:
9+
main:
10+
name: Validate PR title
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: amannn/action-semantic-pull-request@v5
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Close stale issues and PRs"
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
jobs:
6+
stale:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/stale@v8
10+
with:
11+
days-before-stale: 60
12+
days-before-close: 7
13+
stale-issue-message: "This issue is stale because it has been open 60 days with no activity."
14+
stale-pr-message: "This PR is stale because it has been open 60 days with no activity."
15+
operations-per-run: 50

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.5.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer

0 commit comments

Comments
 (0)