feat: Add ranger config

This commit is contained in:
2025-09-08 10:43:59 +02:00
parent abccae479f
commit dfa1fb7190
34 changed files with 4988 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
name: Greetings
on: [pull_request, issues]
jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Hello 👋 Thanks for submitting your first issue. We appreciate that you care about this project and want to help make it the best it can be.'
pr-message: 'Hello 👋 Thank you so much for your first contribution to this project 🎉'

View File

@@ -0,0 +1,12 @@
name: Autocloser
on: [issues]
jobs:
autoclose:
runs-on: ubuntu-latest
steps:
- name: Autoclose issues that did not follow issue template
uses: roots/issue-closer@v1.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-close-message: "@${issue.user.login} this issue was automatically closed because it did not follow the issue template. Please refer to the [guidelines for Contributing](https://github.com/alexanderjeurissen/ranger_devicons/blob/main/CONTRIBUTING.MD)"
issue-pattern: ".*guidelines for Contributing.*"

View File

@@ -0,0 +1,21 @@
name: Python tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
- name: Run tests
run: pytest -q

View File

@@ -0,0 +1,19 @@
name: Mark stale issues and pull requests
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3.0.17
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has not seen any recent activity and therefore has been marked as `stale`. If the issue is no longer relevant, please attend the author so that the issue can be closed.'
stale-pr-message: 'This pull-request has not seen any recent activity. If the proposed change is no longer desired, please attend the author so that the PR can be closed.'
stale-issue-label: 'stale-issue'
stale-pr-label: 'stale-pr'