Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add issue_lock.yml file, remove redundant fields from the workflows #149

Merged
merged 6 commits into from
Dec 29, 2024
2 changes: 0 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,3 @@ jobs:
files: |
katharsis-*-${{ matrix.job.target }}.*
katharsis*.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ jobs:
run: cargo tarpaulin --ignore-tests --out Lcov --output-dir target/tarpaulin
- name: Upload to Coveralls
if: ${{ github.event_name == 'push' }}
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './target/tarpaulin/lcov.info'
file: './target/tarpaulin/lcov.info'
23 changes: 23 additions & 0 deletions .github/workflows/issue_lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Lock Threads'

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

jobs:
lock-threads:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
name: Run lock threads
steps:
- name: Lock threads
uses: dessant/lock-threads@v5
with:
add-issue-labels: 'locked'
add-pr-labels: 'locked'
issue-inactive-days: 14
issue-comment: 'This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.'
pr-inactive-days: 14
log-output: true
4 changes: 1 addition & 3 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ jobs:
permissions:
pull-requests: write
runs-on: ubuntu-latest
name: Add Labels
name: Add labels
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Add bug label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'fix:') }}
Expand Down
Loading