From d06e8fd29ffd954e551579511edc47678e4452ff Mon Sep 17 00:00:00 2001 From: xfrr Date: Sat, 25 Nov 2023 16:12:24 +0100 Subject: [PATCH] Add stale and update README --- .github/workflows/build_and_test.yml | 1 + .github/workflows/stale.yml | 27 +++++++++++++++++++++++++++ README.md | 3 ++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index bfe1b40..ce40670 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -1,4 +1,5 @@ name: Build & Test + on: push: branches: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..5233a8e --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,27 @@ +name: Mark stale issues and pull requests + +on: + schedule: + - cron: '0 0 */7 * *' + +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-issue-stale: 30 + days-before-issue-close: 30 + days-before-pr-stale: 30 + days-before-pr-close: 30 + stale-issue-label: 'no-issue-activity' + stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity.' + close-issue-message: 'This issue was closed because it has been inactive for 14 days since being marked as stale.' + stale-pr-label: 'no-pr-activity' + stale-pr-message: 'This pull request is stale because it has been open for 30 days with no activity.' + close-pr-message: 'This pull request was closed because it has been inactive for 14 days since being marked as stale.' diff --git a/README.md b/README.md index 86059f4..6dc1deb 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # Goffmpeg + [![Build & Test](https://github.com/xfrr/goffmpeg/actions/workflows/build_and_test.yml/badge.svg?branch=v2)](https://github.com/xfrr/goffmpeg/actions/workflows/build_and_test.yml) [![Code Quality](https://api.codacy.com/project/badge/Grade/93e018e5008b4439acbb30d715b22e7f)](https://www.codacy.com/app/francisco.romero/goffmpeg?utm_source=github.com&utm_medium=referral&utm_content=xfrr/goffmpeg&utm_campaign=Badge_Grade) [![Coverage](https://codecov.io/gh/xfrr/goffmpeg/graph/badge.svg?token=LjqrgDKO69)](https://codecov.io/gh/xfrr/goffmpeg) [![Go Report Card](https://goreportcard.com/badge/github.com/xfrr/goffmpeg)](https://goreportcard.com/report/github.com/xfrr/goffmpeg) -[![GoDoc](https://godoc.org/github.com/xfrr/goffmpeg/v2?status.svg)](https://godoc.org/github.com/xfrr/goffmpeg/v2) +[![GoDoc](https://godoc.org/github.com/xfrr/goffmpeg/v2?status.svg)](https://godoc.org/github.com/xfrr/goffmpeg) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE) FFMPEG wrapper written in the Go