diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 0000000..7866f4d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,4 @@ +name: Bug +description: This issue is about a bug inside the engine. +labels: ["Issue: Bug", "Status: Pending..."] +title: "Bug: " \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/compiling.yml b/.github/ISSUE_TEMPLATE/compiling.yml new file mode 100644 index 0000000..2b328b5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/compiling.yml @@ -0,0 +1,4 @@ +name: Compiling +description: This issue is about compiling the engine. +labels: ["Issue: Compiling", "Status: Pending..."] +title: "Compiling: " \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..ec4bb38 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.yml new file mode 100644 index 0000000..f75f834 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation.yml @@ -0,0 +1,4 @@ +name: Documentation +description: This issue is about a documentation suggestion or error. +labels: ["Issue: Documentation", "Status: Pending..."] +title: "Documentation: " \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/enhancement.yml b/.github/ISSUE_TEMPLATE/enhancement.yml new file mode 100644 index 0000000..4630e1e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/enhancement.yml @@ -0,0 +1,4 @@ +name: Enhancement +description: This issue is about a suggestion that you think should be added. +labels: ["Issue: Enhancement", "Status: Pending..."] +title: "Enhancement: " \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/github.yml b/.github/ISSUE_TEMPLATE/github.yml new file mode 100644 index 0000000..8af0c0e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/github.yml @@ -0,0 +1,4 @@ +name: GitHub +description: This issue is about the GitHub. +labels: ["Issue: GitHub", "Status: Pending..."] +title: "GitHub: " \ No newline at end of file diff --git a/.github/pr_labeler.yml b/.github/pr_labeler.yml new file mode 100644 index 0000000..f65f35e --- /dev/null +++ b/.github/pr_labeler.yml @@ -0,0 +1,41 @@ +# Give any pr the "PR: Assets" tag if there are changes inside the assets/ or extras/ folder. +'PR: Assets': +- changed-files: + - any-glob-to-any-file: + - assets/** + - extras/appicons/** + +# Give any pr the "PR: Documentation" tag if any .MD files are changed or if there are changes inside the docs/ folder. +'PR: Documentation': +- changed-files: + - any-glob-to-any-file: + - docs/** + - '**/*.md' + +# Give any pr the "PR: GitHub" tag if any .yml files are changed or if there are changes inside the .github/ folder. +'PR: GitHub': +- changed-files: + - any-glob-to-any-file: + - .github/** + - '.gitignore' + - '**/*.yml' + +# Give any pr the "PR: Haxe" tag if any haxe related files are changed. +'PR: Haxe': +- changed-files: + - any-glob-to-any-file: + - '**/checkstyle.json' + - '**/hxformat.json' + - '**/*.hx' + - '**/*.hxp' + - '**/*.hxpkg' + +# Give any pr the "PR: Misc" tag if any other files are changed that don't fit the rest of the tags. +'PR: Misc': +- changed-files: + - any-glob-to-any-file: + - '.vscode/**' + - 'extras/**' + - '!extras/appicons/**' + - 'setup/**' + - 'LICENSE' # Meant to be off limits for any pr but Crusher or Til may change it. diff --git a/.github/workflows/main.yml b/.github/workflows/build.yml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/build.yml diff --git a/.github/workflows/pr_labeler.yml b/.github/workflows/pr_labeler.yml new file mode 100644 index 0000000..eef7748 --- /dev/null +++ b/.github/workflows/pr_labeler.yml @@ -0,0 +1,19 @@ +name: Pull Request Labeler + +on: +- pull_request_target + +jobs: + # PR Info Labeler, gives the `PR: ` labels upon creation. + labeler: + permissions: + contents: read + pull-requests: write + + runs-on: ubuntu-latest + steps: + - name: "Automatically leave pull request related labels." + uses: actions/labeler@v5 + with: + configuration-path: ".github/pr_labeler.yml" + sync-labels: true \ No newline at end of file