Skip to content

Commit

Permalink
Add github essentials
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMeinerLP committed Apr 21, 2024
1 parent d680482 commit 6ad2dfe
Show file tree
Hide file tree
Showing 12 changed files with 471 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* @OneLiteFeatherNET/core-team
/.github/CODEOWNERS @OneLiteFeatherNET/core-team
109 changes: 109 additions & 0 deletions .github/ISSUE_TEMPLATE/behavior-bug-or-plugin-incompatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Behavior Bug or Module Incompatibility
description: Report issues with module incompatibility or other behavior related issues.
labels: [ "status: needs triage", "type: bug" ]
body:
- type: textarea
attributes:
label: Expected behavior
description: What you expected to see.
validations:
required: true

- type: textarea
attributes:
label: Actual behavior
description: What you actually saw.
validations:
required: true

- type: textarea
attributes:
label: Steps to reproduce
description: This may include a build schematic, a video, or detailed instructions to help reconstruct the issue.
validations:
required: true

- type: textarea
attributes:
label: Module List
description: |
All modules running on your cloud.
To list modules, run `modules list`.
validations:
required: true

- type: textarea
attributes:
label: CloudNet version
description: |
Run `me` on your cloud and **paste** the full, unmodified output here.
"latest" is *not* a version; we require the output of `me` so we can adequately track down the issue.
Additionally, do NOT provide a screenshot, you MUST paste the entire output.
<details>
<summary>Example</summary>
```
> me
[21.04 15:01:15.419] INFO:
[21.04 15:01:15.419] INFO: CloudNet Blizzard 4.0.0-RC10 887ad7cf
[21.04 15:01:15.420] INFO: Discord: <https://discord.cloudnetservice.eu/>
[21.04 15:01:15.420] INFO:
[21.04 15:01:15.420] INFO: ClusterId: 1211ad3e-****-4445-****-f83adfd99781
[21.04 15:01:15.420] INFO: NodeId: Node-1
[21.04 15:01:15.421] INFO: Head-NodeId: Node-1
[21.04 15:01:15.421] INFO: CPU usage: (P/S) 1.08/6.21/100%
[21.04 15:01:15.421] INFO: Node services memory allocation (U/R/M): 768/768/8192 MB
[21.04 15:01:15.421] INFO: Threads: 29
[21.04 15:01:15.421] INFO: Heap usage: 54/256MB
[21.04 15:01:15.421] INFO: JVM: Azul Systems, Inc. 21 (OpenJDK 64-Bit Server VM 21.0.2+13-LTS)
[21.04 15:01:15.422] INFO: Update Repo: CloudNetService/launchermeta, Update Branch: beta
[21.04 15:01:15.422] INFO
```
</details>
validations:
required: true
- type: textarea
attributes:
label: Module version
description: |
Run `modules info CloudNet-Pull-Pilot` on your cloud and **paste** the full, unmodified output here.
"latest" is *not* a version; we require the output of `modules info CloudNet-Pull-Pilot` so we can adequately track down the issue.
Additionally, do NOT provide a screenshot, you MUST paste the entire output.
<details>
<summary>Example</summary>
```
> modules info CloudNet-Pull-Pilot
[21.04 15:02:26.031] INFO: Module: CloudNet-Pull-Pilot
[21.04 15:02:26.032] INFO: - Lifecycle: STARTED
[21.04 15:02:26.032] INFO: - Version: 1.0.0-SNAPSHOT
[21.04 15:02:26.032] INFO: - Author: TheMeinerLP
[21.04 15:02:26.032] INFO: - Description: A node extension that takes care of redeploying servers based on code changes. Git, Maven and webhooks are used for this purpose
[21.04 15:02:26.032] INFO: - Dependencies:
```
</details>
validations:
required: true
- type: textarea
attributes:
label: Other
description: |
Please include other helpful information below.
The more information we receive, the quicker and more effective we can be at finding the solution to the issue.
validations:
required: false

- type: markdown
attributes:
value: |
Before submitting this issue, please ensure the following:
1. You are running the latest version of CloudNet from [our release page](https://github.com/CloudNetService/CloudNet-v3/releases).
2. You searched for and ensured there isn't already an open issue regarding this.
3. Your version of CloudNet is supported by CloudNet-Pull-Pilot.
4. You are running the latest version of CloudNet-Pull-Pilot from [our release page](https://github.com/OneLiteFeatherNET/CloudNet-Pull-Pilot/releases).
If you think you have a bug but are not sure, feel free to ask the `#❓¦support` channel of our
[Discord](https://discord.onelitefeather.net).
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: OneLiteFeather Discord
url: https://discord.onelitefeather.net
about: If you are having issues with timings or have other minor issues, come ask us on our Discord server!
- name: CloudNet Discord
url: https://discord.cloudnetservice.eu/
about: If you are having issues with CloudNet v4 or have other minor issues, come ask us on our Discord server!
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Feature Request
description: Suggest an idea for CloudNet-Pull-Pilot
labels: [ "status: needs triage", "type: feature" ]
body:
- type: markdown
attributes:
value: |
Thank you for filling out a feature request for CloudNet-Pull-Pilot! Please be as detailed as possible so that we may consider and review the request easier.
We ask that you search all the issues to avoid a duplicate feature request. If one exists, please reply if you have anything to add.
Before requesting a new feature, please make sure you are using the latest version and that the feature you are requesting is not already in SolarSystem.
- type: textarea
attributes:
label: Is your feature request related to a problem?
description: Please give some context for this request. Why do you want it added?
validations:
required: true

- type: textarea
attributes:
label: Describe the solution you'd like.
description: A clear and concise description of what you want.
validations:
required: true

- type: textarea
attributes:
label: Describe alternatives you've considered.
description: List any alternatives you might have tried to get the feature you want.
validations:
required: true

- type: textarea
attributes:
label: Other
description: Add any other context or screenshots about the feature request below.
validations:
required: false

- type: markdown
attributes:
value: |
Before submitting this feature request, please search our issue tracker to ensure your feature has not
already been requested.
53 changes: 53 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!--
MIT License
Copyright (c) 2022 Marketing Pipeline
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->

## Proposed changes

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.

## Types of changes

What types of changes does your code introduce to this project?
_Put an `x` in the boxes that apply_

- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation Update (if none of the other choices apply)

## Checklist

_Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code._

- [ ] I have read the CONTRIBUTING.md
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation (if appropriate)

## Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you
did and what alternatives you considered, etc...
1 change: 1 addition & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_extends: .github
11 changes: 11 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":semanticCommitsDisabled"
],
"ignoreDeps": [],
"labels": ["Renovate"],
"rebaseWhen": "conflicted",
"schedule": ["on the first day of the month"]
}
21 changes: 21 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build PR
on: [pull_request]
jobs:
build_pr:
if: github.repository_owner == 'OneLiteFeatherNET'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Build on ${{ matrix.os }}
run: ./gradlew clean build
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build CloudNet Pull Pilot
on:
push:
branches:
- main
jobs:
build:
# Run on all label events (won't be duplicated) or all push events or on PR syncs not from the same repo
if: github.repository_owner == 'OneLiteFeatherNET'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
cache: gradle
java-version: 17
- name: Clean Build
run: ./gradlew clean build jar
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: CloudNet-Pull-Pilot Archive
path: build/libs/CloudNet-Pull-Pilot-*.jar
14 changes: 14 additions & 0 deletions .github/workflows/close_invalid_prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Close invalid PRs

on:
pull_request_target:
types: [ opened ]

jobs:
run:
if: ${{ github.repository != github.event.pull_request.head.repo.full_name && github.head_ref == 'main' }}
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: "Please do not open pull requests from the `main` branch, create a new branch instead."
Loading

0 comments on commit 6ad2dfe

Please sign in to comment.