Skip to content

Commit

Permalink
feat(gh_actions): replace stale + add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Jan 12, 2023
1 parent 2a5ea80 commit bc8ab27
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/stale.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Lint Commit Messages
on:
- pull_request

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
36 changes: 36 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Close stale issues and PRs

on:
schedule:
- cron: "30 1 * * *"

permissions:
issues: write
pull-requests: write

jobs:
mark-stale-issues-and-prs:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v7
with:
close-issue-message: |
This issue has not seen any activity since it was marked stale.
Closing.
close-pr-message: |
This pull request has not seen any activity since it was marked stale.
Closing.
days-before-close: 14
days-before-stale: 30
exempt-issue-labels: good-first-issue,need-help,no-stale,pinned,security
exempt-pr-labels: good-first-issue,need-help,no-stale,pinned,security
labels-to-remove-when-unstale: stale
stale-issue-label: stale
stale-issue-message: |
This issue has been automatically marked as stale because it has not
had recent activity. It will be closed if no further activity occurs.
stale-pr-label: stale
stale-pr-message: |
This pull request has been automatically marked as stale because it
has not had recent activity. It will be closed if no further activity
occurs. Thank you for your contributions.

0 comments on commit bc8ab27

Please sign in to comment.