Skip to content

Commit

Permalink
Add workflows (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
votdev committed Oct 16, 2022
1 parent 6be47d5 commit 73b3d49
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Continues Integration

on:
push:
branches:
- '6.x'
- 'master'

env:
PYTHON_VERSION: 3

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.PYTHON_VERSION }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run lint
run: make lint
56 changes: 56 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: '0 * * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 60
days-before-close: 30
remove-stale-when-updated: true
operations-per-run: 30

exempt-issue-labels: 'pinned,security,planned'
stale-issue-label: 'stale'
stale-issue-message: |
This issue has been automatically marked as stale because it
has not had any activity for 60 days. It will be closed if no further
activity occurs for another 30 days.
close-issue-message: |
This issue has been automatically closed because there has
been no activity for 90 days. We are sorry that we haven't been
able to prioritize it yet. Please feel free to reopen this
issue or create a new one. Thank you!
exempt-pr-labels: 'pinned,security,planned'
stale-pr-label: 'stale'
stale-pr-message: |
This pull request has been automatically marked as stale because it
has not had any activity for 60 days. It will be closed if no further
activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this
pull request to identify what steps should be taken by the author to move this
proposed change forward.
If you are the author of this pull request, thank you for your proposed
contribution. If you believe this change is still appropriate, please
ensure that any feedback has been addressed and ask for a code review.
close-pr-message: |
This pull request has been automatically closed because there has
been no activity for 90 days. Please feel free to reopen this pull
request (or open a new one) if the proposed change is still
appropriate. Thank you for your contribution!

0 comments on commit 73b3d49

Please sign in to comment.