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._