Skip to content

Commit

Permalink
GitHub: add state and PR message check action
Browse files Browse the repository at this point in the history
  • Loading branch information
c-po committed Dec 17, 2023
1 parent 69d7878 commit 25e0cde
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pull-request-message-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Check pull request message format

on:
pull_request:
branches:
- current
- crux
- equuleus

jobs:
check-pr-title:
name: Check pull request title
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
timeout-minutes: 2
- name: Install the requests library
run: pip3 install requests
- name: Check the PR title
timeout-minutes: 2
run: |
./scripts/check-pr-title-and-commit-messages.py '${{ github.event.pull_request.url }}'
22 changes: 22 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Issue and PR stale management"
on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:
runs-on: ubuntu-latest
if: github.repository == 'vyos/vyos-1x'
steps:
# Issue stale management
- uses: actions/stale@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 90
days-before-close: -1
stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. The issue will be reviewed by a maintainer and may be closed'
stale-issue-label: 'state: stale'
exempt-issue-labels: 'state: accepted, state: in-progress'
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. The PR will be reviewed by a maintainer and may be closed'
stale-pr-label: 'state: stale'
exempt-pr-labels: 'state: accepted, state: in-progress'

0 comments on commit 25e0cde

Please sign in to comment.