From ae49cb3684f4eb1d3ddd1cd51e595cd4b175e3ed Mon Sep 17 00:00:00 2001 From: Stefano Bertagno Date: Tue, 31 Aug 2021 22:33:25 +0200 Subject: [PATCH] Update GitHub legacy actions --- .github/workflows/close-issues.yml | 21 +++++++++++++++++++++ .github/workflows/close-prs.yml | 21 +++++++++++++++++++++ .github/workflows/state.yml | 23 ----------------------- 3 files changed, 42 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/close-issues.yml create mode 100644 .github/workflows/close-prs.yml delete mode 100644 .github/workflows/state.yml diff --git a/.github/workflows/close-issues.yml b/.github/workflows/close-issues.yml new file mode 100644 index 0000000..ca00e37 --- /dev/null +++ b/.github/workflows/close-issues.yml @@ -0,0 +1,21 @@ +name: close-issues +on: + issues: + types: [opened, reopened] + +jobs: + state: + runs-on: ubuntu-latest + steps: + - name: Close issue + uses: peter-evans/close-issue@v1 + with: + comment: > + Hey @{{ author }},

+ This repo is not currenlty maintained, and it's to be considered as _read-only_: **issues**, such as this one, **will not be fixed**.
+ Please refer to #244 for more info.

+ Check out [**Swiftagram**](https://github.com/sbertix/Swiftagram) if you're looking for up-to-date alternatives to **SwiftyInsta**.

+ - name: initial labeling + uses: andymckay/labeler@master + with: + add-labels: "legacy" diff --git a/.github/workflows/close-prs.yml b/.github/workflows/close-prs.yml new file mode 100644 index 0000000..4a97a88 --- /dev/null +++ b/.github/workflows/close-prs.yml @@ -0,0 +1,21 @@ +name: close-prs +on: + pull_request_target: + types: [opened, reopened] + +jobs: + state: + runs-on: ubuntu-latest + steps: + - name: Close pull + uses: peter-evans/close-pull@v1 + with: + comment: > + Hey @{{ author }},

+ This repo is not currenlty maintained, and it's to be considered as _read-only_: **pull requests**, such as this one, **will not be considered**.
+ Please refer to #244 for more info.

+ Check out [**Swiftagram**](https://github.com/sbertix/Swiftagram) if you're looking for up-to-date alternatives to **SwiftyInsta**.

+ - name: initial labeling + uses: andymckay/labeler@master + with: + add-labels: "legacy" diff --git a/.github/workflows/state.yml b/.github/workflows/state.yml deleted file mode 100644 index afe34f3..0000000 --- a/.github/workflows/state.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: state -on: [issues, pull_request] -jobs: - state: - runs-on: ubuntu-latest - steps: - - name: Reactions - uses: bubkoo/auto-comment@v1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - issuesOpened: > - Hey @{{ author }},

- This repo is not currenlty maintained.
- Please refer to #244 for more info on **alternatives** or how you can help.

- _For **crashes alone**, please reply under this by mentioning `@sbertix`._
- _If no exception is ever raised in your code and the feature is simply not behaving as expected or as it used to, this will likely not be fixed at the moment._
- _Your issue, however, **will not be closed**, in hopes of **SwiftyInsta** being maintained again._ - pullRequestOpened: > - Hey @{{ author }},

- This repo is not currently maintained.
- Please refer to #244 for more info on **alternatives** or how you can help.

- Once you're staisfied with your PR, please request a review from `@sbertix`.

- _Reviews for **crash fixes** will always be considered._