From 653b1e7909fc765539197b9d228e5507dd6e7a66 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Sat, 10 Aug 2024 15:26:26 -0400 Subject: [PATCH] Issue Label Actor (#6221) * label actor * Push * Update bug_report.yml * update label actor * fix close issue type * Update label actions * Add missing quotes * Make messages more concise * Fix typo and improve hybrid server message --------- Co-authored-by: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> --- .github/config/label-actions.yml | 55 +++++++++++++++++++++++++++++ .github/workflows/close_issues.yml | 24 ------------- .github/workflows/label-actions.yml | 21 +++++++++++ build.gradle | 1 - 4 files changed, 76 insertions(+), 25 deletions(-) create mode 100644 .github/config/label-actions.yml delete mode 100644 .github/workflows/close_issues.yml create mode 100644 .github/workflows/label-actions.yml diff --git a/.github/config/label-actions.yml b/.github/config/label-actions.yml new file mode 100644 index 000000000..f257d855d --- /dev/null +++ b/.github/config/label-actions.yml @@ -0,0 +1,55 @@ +# Configuration for Label Actions - https://github.com/dessant/label-actions + +# ----------------------------------- ISSUES ----------------------------------- # + +'env: fabric': + issues: + close: true + close-reason: 'not planned' + comment: > + **Fabric Loader**: This issue tracker is only for the Forge/NeoForge versions of Create. Since you mentioned using Fabric Loader, please reopen this issue on the [Create Fabric issue tracker](https://github.com/Fabricators-of-Create/Create/issues). Thanks! + +'env: hybrid server': + issues: + close: true + close-reason: 'not planned' + comment: > + **Hybrid Server Software**: Create cannot reasonably support hybrid server software, such as [MohistMC](https://mohistmc.com/), as their changes under the hood make it difficult for larger mods to function properly. If you encounter this issue on official Forge/NeoForge server software, feel free to open a new issue. Otherwise, consider reporting this issue to the hybrid server software you are using. Thanks! + +'env: outdated create version': + issues: + close: true + close-reason: 'not planned' + comment: > + **Outdated Create Version**: Since you are using an outdated Create version, please update to the latest version as it may resolve your issue. If this issue persists after updating Create, feel free to open a new issue. Thanks! + +'env: pojav': + issues: + close: true + close-reason: 'not planned' + comment: > + **Pojav**: Create does not support Pojav or other mobile launchers due to rendering limitations. If you encounter this issue on a PC, feel free to open a new issue. Thanks! + +'env: unsupported minecraft version': + issues: + close: true + close-reason: 'not planned' + comment: > + **Unsupported Minecraft Version**: Unsupported Minecraft versions no longer receive Create updates. Please check the [supported Minecraft versions](https://github.com/Creators-of-Create/Create/wiki/dev.status). If you encounter this issue on a supported Minecraft version, feel free to open a new issue. Thanks! + +# ----------------------------------- PULL REQUESTS ----------------------------------- # + +'pr status: conflicts': + prs: + comment: > + @{issue-author}, this pull request has merge conflicts with the target branch. Please merge the latest changes and leave a message here so we can continue with the process of reviewing and merging this pull request. Thanks! + +'pr status: waiting for author': + prs: + comment: > + @{issue-author}, a developer has left a review and requested changes. Please make the requested changes or further discuss them with the developer so this pull request can be merged. Thanks! + +'pr status: wrong target': + prs: + comment: > + @{issue-author}, this pull request is targeting the wrong branch. Pull requests should target the branch corresponding to the earliest supported Minecraft version unless the changes are specific to code that only exists for a newer Minecraft version. Please change the target branch, resolve any merge conflicts, and leave a message here so we can continue with the process of reviewing and merging this pull request. Thanks! diff --git a/.github/workflows/close_issues.yml b/.github/workflows/close_issues.yml deleted file mode 100644 index ccabc70e8..000000000 --- a/.github/workflows/close_issues.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: "Close Issues" -on: - schedule: - - cron: '0 */12 * * *' - workflow_dispatch: - -jobs: - close: - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - uses: actions/stale@v4 - with: - days-before-issue-stale: 21 - days-before-issue-close: 21 - stale-issue-label: "stale" - exempt-issue-labels: "timeless, suggestion, critical" - stale-issue-message: "This issue has been marked as stale because it has been inactive for 3 weeks. It will be closed if it remains inactive for another 3 weeks." - close-issue-message: "This issue has been closed since it has been inactive for 3 weeks since it was marked as stale." - days-before-pr-stale: -1 - days-before-pr-close: -1 - operations-per-run: 10000 - repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/label-actions.yml b/.github/workflows/label-actions.yml new file mode 100644 index 000000000..1b59fae39 --- /dev/null +++ b/.github/workflows/label-actions.yml @@ -0,0 +1,21 @@ +name: "Label Actions" +on: + issues: + types: [labeled, unlabeled] + pull_request_target: + types: [labeled, unlabeled] + +permissions: + contents: read + issues: write + pull-requests: write + discussions: write + +jobs: + action: + runs-on: ubuntu-latest + steps: + - uses: dessant/label-actions@102faf474a544be75fbaf4df54e73d3c515a0e65 # Depend on an exact commit + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + config-path: '.github/config/label-actions.yml' diff --git a/build.gradle b/build.gradle index ba064b097..28cf90074 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,6 @@ buildscript { repositories { maven { url = 'https://maven.minecraftforge.net' } mavenCentral() - jcenter() maven { url = 'https://repo.spongepowered.org/repository/maven-public' } maven { url = 'https://maven.parchmentmc.org' } }