From eae402113869cad95c98096bd2761f49c48cd17c Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 11 Apr 2021 18:29:37 -0400 Subject: [PATCH 1/2] Add relocation notice --- README.MD | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.MD b/README.MD index 66c183f..4fdab3e 100644 --- a/README.MD +++ b/README.MD @@ -1,3 +1,6 @@ +## Notice +I am now maintaining OpenInv over at [Jikoo/OpenInv](https://github.com/Jikoo/OpenInv) because I needed higher levels of access to add secrets to the repository for Github Actions. It feels ruder to send an email saying what amounts to "pls op" than to redirect people to my fork, though neither option is polite. Existing issues will remain open here until resolved (you can't transfer issues across organizations/users), but any new issues in this repo will be closed without resolution. + ## About OpenInv is a [Bukkit plugin](https://dev.bukkit.org/bukkit-plugins/openinv/) which allows users to open and edit anyone's inventory or ender chest - online or not! From 1c579564bc39da0b6c6bd52d1bc164d7b4d9b2d9 Mon Sep 17 00:00:00 2001 From: Jikoo Date: Mon, 12 Jul 2021 21:07:45 -0400 Subject: [PATCH 2/2] Add reading assistant --- .github/workflows/ci.yml | 87 ------------------------------- .github/workflows/close-issue.yml | 13 +++++ .github/workflows/close-pr.yml | 13 +++++ 3 files changed, 26 insertions(+), 87 deletions(-) delete mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/close-issue.yml create mode 100644 .github/workflows/close-pr.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index a73e107..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,87 +0,0 @@ -name: OpenInv CI - -on: - push: - create: - types: [tag] - pull_request_target: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v2 - - - name: Set Up Java - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - # Use cache to speed up build - - name: Cache Maven Repo - uses: actions/cache@v2 - id: cache - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - - # Install Spigot dependencies. - # This script uses Maven to check all required installations and ensure that they are present. - - name: Install Spigot Dependencies - run: . scripts/install_spigot_dependencies.sh - - - name: Build With Maven - run: mvn -e clean package -am -P all - - # Upload artifacts - - name: Upload Distributable Jar - id: upload-final - uses: actions/upload-artifact@v2 - with: - name: dist - path: ./target/OpenInv.jar - - name: Upload API Jar - id: upload-api - uses: actions/upload-artifact@v2 - with: - name: api - path: ./api/target/openinvapi*.jar - - release: - name: Create Github Release - needs: [ build ] - if: github.event_name == 'create' && github.event.ref_type == 'tag' - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v2 - - - name: Download Artifacts - uses: actions/download-artifact@v2 - - - name: Generate changelog - run: . scripts/generate_changelog.sh - - - name: Create Release - id: create-release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: ${{ env.GENERATED_CHANGELOG }} - draft: true - prerelease: false - - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: ./OpenInv.jar - asset_name: OpenInv.jar - asset_content_type: application/java-archive \ No newline at end of file diff --git a/.github/workflows/close-issue.yml b/.github/workflows/close-issue.yml new file mode 100644 index 0000000..af9c023 --- /dev/null +++ b/.github/workflows/close-issue.yml @@ -0,0 +1,13 @@ +name: Close Issue + +on: + issues: + types: [opened] + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/close-issue@v1.0.3 + with: + comment: "Per the notice in the readme, OpenInv is now being maintained at [Jikoo/OpenInv](https://github.com/Jikoo/OpenInv)." diff --git a/.github/workflows/close-pr.yml b/.github/workflows/close-pr.yml new file mode 100644 index 0000000..69d1173 --- /dev/null +++ b/.github/workflows/close-pr.yml @@ -0,0 +1,13 @@ +name: Close Pull Request + +on: + pull_request_target: + types: [opened] + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: superbrothers/close-pull-request@v3.1.0 + with: + comment: "Per the notice in the readme, OpenInv is now being maintained at [Jikoo/OpenInv](https://github.com/Jikoo/OpenInv)."