Skip to content

Commit

Permalink
More files
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyhedral committed Jan 21, 2024
1 parent 891d952 commit cc655f1
Show file tree
Hide file tree
Showing 31 changed files with 758 additions and 0 deletions.
Binary file added .github/.DS_Store
Binary file not shown.
76 changes: 76 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@


# Reporting Bugs
Reporting issues are imperative in order to continue making the mod as great as it can be!

## Guidelines
The following below are the guidelines for reporting bugs on the Cat Talents community. Failing do follow these guidelines will result in issues being **automatically closed and labeled as invalid or need more information**.
- All issues must be written in English.
- There is *zero tolerance* for disrespect/inappropriate content on the community.
- All issues **MUST** use the issue template and must leave the examples that are placed in `[ ]`.
- All issues must be **clear and concise**.
- Do not report bugs that are already *fixed* or *known*.
- No one issue can include more than one subject (bug, request or both) or multiple issues.
- Issues cannot pertain to versions **below Minecraft version 1.7.10**.
- Bugs must be able to be reproduced with **ONLY** Cat Talents (as well as any other affected mods if there is a compatibility problem).
- At the time of the reporting, Cat Talents and/or any other affected mods **MUST** be up to date, *Do not use "newest version" or "using latest version" when description the issue*.
- All game logs must be placed in paste websites like [Gist](hastebin.com), [Pastebin](hastebin.com), or [Hastebin](hastebin.com), **NOT** directly in the issue.
- Issues related to packs must be reported to the modpack author(s) **FIRST** before reported here.
- If necessary, please include relevant logs and screenshots.

## Processing
The following with happen to this type of issues:
- Automatically be labeled as "Bug" and moved under the [Known Issues Project](https://github.com/Sweetrpg/CatHerder/projects/1) for easier access and better organization.
- It may take a few hours or so for the authors to respond, so be patient.


# Requesting Features:
Features are what makes the Cat Talents mod great! And adding new ones helps improve the quality of the mod, as well as encourage the developers working on it!

## Guidelines
The following below are the guidelines for requesting features on the Cat Talents community. Failing do follow these guidelines will result in issues being **automatically closed and labeled as invalid or need more information**.
- All requests must be written in English.
- There is *zero tolerance* for disrespect/inappropriate content on the community.
- All requests **MUST** use the issue template and must leave the examples that are placed in `[ ]`.
- All requests must be **clear and concise**.
- Do not report features that are already *already implemented* or *known*.
- No one requests can include more than one subject (bug, request or both) or multiple requests.
- Requests cannot pertain to versions **below Minecraft version 1.7.10**.
- If any requests is related to a *bug*, please create a bug report and refer that issue within the request.


## Processing
The following with happen to this type of issues:
- Automatically be labeled as "Feature Request" and moved under the [Suggestions Project](https://github.com/Sweetrpg/CatHerder/projects/2) for easier access and better organization.
- It may take a few hours or so for the authors to respond, so be patient.


# Contributing to the Source code
While help is appreciated, source code submissions will be checked and decided on. When doing submissions, please use forks and create pull requests.

## Guidelines
The following below are the guidelines for contributing to the mod's source code on the Cat Talents community. Failing do follow these guidelines will result in issues being **automatically closed and labeled as invalid or need more information**.
- **DO NOT** include malicious code or inappropriate content.
- Include comments (using `//` or `/* */)` in your code.
- Please leave a note that the code is a work in process (WIP) and bugs may occur.
- Please use forks and pull requests.

## Processing
The following with happen to this type of issues:
- Automatically be labeled as "Enhancement" and moved under the [Suggestions Project](https://github.com/Sweetrpg/CatHerder/projects/2) for easier access and better organization.
- It may take a few hours or so for the authors to respond, so be patient

# Contributing to the Locales
Please check to see if the lang files have been changed over time. When doing locale submissions, please use forks and create pull requests.

## Guidelines
The following below are the guidelines for contributing to the mod's language packs on the Cat Talents community. Failing do follow these guidelines will result in issues being **automatically closed and labeled as invalid or need more information**.
- **DO NOT** add inappropriate language.
- Please ensure that all language changes are accurate.
- Please leave a note that the pack is a work in process (WIP) and that not all translations are finished.
- Please use forks and pull requests.

## Processing
The following with happen to this type of issues:
- Automatically be labeled as "Enhancement" and moved under the [Suggestions Project](https://github.com/Sweetrpg/CatHerder/projects/2) for easier access and better organization.
- It may take a few hours or so for the authors to respond, so be patient.
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: paulyhedral sweetrpg # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: pilgrimage # Replace with a single Patreon username
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug Report
about: Create a report to help us improve

---

<!--
Have you read Cat Herder's Issue Guidelines? By filing an Issue, you are expected to comply with it (refer to the "Reporting Bugs" Section of the Guidelines), including treating everyone with respect: https://github.com/sweetrpg/CatHerder/blob/master/.github/CONTRIBUTING.md
This header will not be reflected upon submitting this issue.
-->

## Environment And Mod Information:

* Minecraft Version: [i.e. 1.18.1]
* Forge Version: [i.e. 14.21.1.2443]
* Cat Herder Version: [i.e. 1.14.1.240]
* Java Version: [i.e. 8 Update 144 64 bit]
* Operating System (OS): [i.e. Windows 10 64-bit Build 17134]

## Logs


## Issue Description:



## Steps to reproduce:

1.
2.
3.
4.

## Additional Information:

- More Details:
- Screenshots:
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Feature Request
about: Suggest an idea for this project

---

<!--
Have you read Cat Talent's Issue Guidelines? By filing an Issue, you are expected to comply with it (refer to the "Reporting Bugs" Section of the Guidelines), including treating everyone with respect: https://github.com/Sweetrpg/CatHerder/blob/master/.github/CONTRIBUTING.md
This header will not be reflected upon submitting this issue.
-->

## Feature Description:


## Relation to any Known/Unknown Bug:


## Additional Information:
66 changes: 66 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: CI

on:
push:
branches: [ "1.16", "1.18", "1.19", "1.20" ]
paths:
- 'src/**'
- 'test/**'
- build.gradle
- gradle.properties
- settings.gradle

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- id: get_last_version
name: Get last version
run: |
echo "latest_version=$(cat .release-info/${{ github.ref_name }}/VERSION)" >> $GITHUB_ENV
- id: bump_version
name: Bump version
uses: cbrgm/semver-bump-action@main
with:
current-version: ${{ env.latest_version }}
bump-level: patch
- name: Build with Gradle
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
with:
arguments: build test --scan
env:
CATHERDER_VERSION: "${{ steps.bump_version.outputs.new_version }}"
- name: Commit version file
run: |
git config --global user.email "[email protected]"
git config --global user.name "SweetRPG CI"
echo "${{ steps.bump_version.outputs.new_version }}" > .release-info/${{ github.ref_name }}/VERSION
git add .release-info/${{ github.ref_name }}/VERSION
git commit -m "Update ${{ github.ref_name }} VERSION file"
git push origin
- name: Release artifacts
uses: softprops/action-gh-release@v1
with:
tag_name: "${{ github.ref_name }}-${{ steps.bump_version.outputs.new_version }}"
prerelease: true
files: |
build/libs/*.jar
70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ 1.16, 1.18, 1.19, 1.20 ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ 1.16, 1.18, 1.19, 1.20 ]
schedule:
- cron: '17 11 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'java' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
66 changes: 66 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Debug

on:
create:
tags:
- '*'
release:
types:
- published
- created
push:
branches:
- '*'

jobs:
debug:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- name: 'Get Previous tag'
id: previoustag
uses: actions-ecosystem/action-get-latest-tag@v1
with:
semver_only: true
initial_version: v0.0.0
with_initial_version: true
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
registry.sweetrpg.com/sweetrpg-main-web
tags: |
type=raw,value=latest
type=raw,value=${{ steps.previoustag.outputs.tag }}
type=ref,event=branch
type=ref,event=tag
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
35 changes: 35 additions & 0 deletions .github/workflows/pr-build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: PR (Release)

on:
pull_request:
branches: [ "1.16-release", "1.18-release", "1.19-release", "1.20-release" ]
paths:
- 'src/**'
- 'test/**'
- build.gradle
- gradle.properties
- settings.gradle

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
with:
arguments: build test --console=verbose --scan
Loading

0 comments on commit cc655f1

Please sign in to comment.