From 5971d8672719b8803f5db6ad699c106a6a46a1ed Mon Sep 17 00:00:00 2001 From: object-Object Date: Tue, 19 Mar 2024 19:22:44 -0400 Subject: [PATCH 1/4] Add GitHub Actions build workflow for checking pull requests --- .github/workflows/pr.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 000000000..19fd5b9fa --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,35 @@ +# mirror of the Jenkins pipeline, used for requiring PRs to build successfully before merging +# this uses Actions because it's easier to integrate with GitHub PRs, and to allow running the build on forks + +name: Build pull request + +on: + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "17.0.1" + - uses: gradle/actions/setup-gradle@v3 + + - name: Clean + run: | + chmod +x gradlew + ./gradlew clean + + - name: Build + run: ./gradlew build + + - name: Run Datagen + run: ./gradlew runAllDatagen + + - name: Check Datagen + run: | + git add --intent-to-add . + git diff --name-only --exit-code -- ":!:*/src/generated/resources/.cache/*" From ef2a98d519228202133f12e8196751fe5857cac1 Mon Sep 17 00:00:00 2001 From: object-Object Date: Tue, 19 Mar 2024 19:29:15 -0400 Subject: [PATCH 2/4] Add fetch-depth: 0 to fix Gradle error --- .github/workflows/pr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 19fd5b9fa..160146297 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -12,6 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: actions/setup-java@v4 with: distribution: temurin From 1cac6c84d865e346382ee10c31fc5d12af79673e Mon Sep 17 00:00:00 2001 From: object-Object Date: Tue, 19 Mar 2024 20:04:21 -0400 Subject: [PATCH 3/4] Add issue templates --- .github/ISSUE_TEMPLATE/bug_report.yml | 70 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.yml | 17 ++++++ 2 files changed, 87 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..668189a34 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,70 @@ +name: Bug Report +description: Report an issue with Hex Casting +labels: + - bug + - unconfirmed + +body: + - type: dropdown + attributes: + label: Modloader + options: + - Forge + - Fabric + - Quilt + validations: + required: true + + - type: input + attributes: + label: Minecraft version + placeholder: eg. 1.19.2 + validations: + required: true + + - type: input + attributes: + label: Hex Casting version + placeholder: eg. 0.11.1-7-pre-609 + validations: + required: true + + - type: input + attributes: + label: Modloader version + description: | + List the version of the mod loader you are using. + If on Fabric, post the versions of both Fabric Loader and Fabric API. + placeholder: "eg. Forge: 36.2.9 / Fabric: Loader 0.10.6 + API 0.42.1" + validations: + required: true + + - type: input + attributes: + label: Modpack info + description: If playing a modpack, post the link to it! + + - type: input + attributes: + label: The latest.log file + description: Please use https://mclo.gs/ if possible. Sites like https://gist.github.com/ or https://pastebin.com/ are also acceptable. + + - type: textarea + attributes: + label: Issue description + placeholder: A description of the issue. + validations: + required: true + + - type: textarea + attributes: + label: Steps to reproduce + placeholder: | + 1. First step + 2. Second step + 3. etc... + + - type: textarea + attributes: + label: Other information + description: Any other relevant information that is related to this issue, such as other mods and their versions. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 000000000..b8e5e9904 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,17 @@ +name: Feature Request +description: Suggest an improvement or a new feature +labels: + - enhancement + - unconfirmed + +body: + - type: textarea + attributes: + label: Describe the feature + validations: + required: true + + - type: textarea + attributes: + label: Additional context + description: Any other relevant information (eg. use cases, alternative solutions) From 21990068f66878ababb0ea5920b4cfb6357a4a59 Mon Sep 17 00:00:00 2001 From: object-Object Date: Tue, 19 Mar 2024 20:43:02 -0400 Subject: [PATCH 4/4] Make loader version optional --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 668189a34..0a438461c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -36,8 +36,6 @@ body: List the version of the mod loader you are using. If on Fabric, post the versions of both Fabric Loader and Fabric API. placeholder: "eg. Forge: 36.2.9 / Fabric: Loader 0.10.6 + API 0.42.1" - validations: - required: true - type: input attributes: