From 26c6242f3648dcf2073d7015e1aca3d8f8433c3c Mon Sep 17 00:00:00 2001 From: Pauline Date: Wed, 24 Apr 2024 20:55:35 -0400 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20feature:=20add=20a=20bunch=20of?= =?UTF-8?q?=20cute=20.github=20standardized=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 30 +++++++++++++++ .github/dependabot.yml | 6 +++ .github/pull_request_template.md | 11 ++++-- .github/stale.yml | 55 --------------------------- .github/sync.yml | 12 ++++++ .github/workflows/stale.yml | 30 +++++++++++++++ .github/workflows/sync.yml | 18 +++++++++ CODE_OF_CONDUCT.md | 64 +++++++++++++++++--------------- CONTRIBUTING.md | 3 ++ README.md | 2 +- SECURITY.md | 3 ++ SUPPORT.md | 3 ++ issue_templates/bug_report.yml | 50 +++++++++++++++++++++++++ issue_templates/config.yml | 10 +++++ issue_templates/enhancement.yml | 37 ++++++++++++++++++ profile/README.md | 3 +- 16 files changed, 248 insertions(+), 89 deletions(-) create mode 100644 .gitattributes create mode 100644 .github/dependabot.yml delete mode 100644 .github/stale.yml create mode 100644 .github/sync.yml create mode 100644 .github/workflows/stale.yml create mode 100644 .github/workflows/sync.yml create mode 100644 CONTRIBUTING.md create mode 100644 SECURITY.md create mode 100644 SUPPORT.md create mode 100644 issue_templates/bug_report.yml create mode 100644 issue_templates/config.yml create mode 100644 issue_templates/enhancement.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..99d0367 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,30 @@ +*.java text eol=lf diff=java +*.gradle text eol=lf diff=java +*.kt text eol=lf diff=kotlin +*.kts text eol=lf diff=kotlin +gradlew text eol=lf +*.bat text eol=crlf + +*.md text eol=lf diff=markdown + +.editorconfig text eol=lf + +*.json text eol=lf +*.json5 text eol=lf +*.properties text eol=lf +*.toml text eol=lf +*.xml text eol=lf diff=html + +# Modding specific +*.accesswidener text eol=lf + +# These files are binary and should be left untouched +# (binary is a macro for -text -diff) +*.class binary +*.dll binary +*.ear binary +*.jar binary +*.jks binary +*.png binary +*.so binary +*.war binary diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b18fd29 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'weekly' diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index d2af008..3da294a 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,14 +1,18 @@ ## Description + ## Related Issue(s) + Fixes # ## How to test + ## Release Notes + \ No newline at end of file +--> diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 7666c35..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,55 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 90 - -# Number of days of inactivity before an Issue or Pull Request with the stale label is closed. -# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. -daysUntilClose: 10 - -# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled) -onlyLabels: [] - -# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable -exemptLabels: - - "meta: never-stale" - -# Set to true to ignore issues in a milestone (defaults to false) -exemptMilestones: true - -# Set to true to ignore issues with an assignee (defaults to false) -exemptAssignees: false - -# Label to use when marking as stale -staleLabel: "meta: stale" - -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. - -# Comment to post when removing the stale label. -# unmarkComment: > -# Your comment here. - -# Comment to post when closing a stale Issue or Pull Request. -# closeComment: > -# Your comment here. - -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 30 - -# Limit to only `issues` or `pulls` -# only: issues - -# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls': -pulls: - markComment: > - This pull request has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. - -# issues: -# exemptLabels: -# - confirmed \ No newline at end of file diff --git a/.github/sync.yml b/.github/sync.yml new file mode 100644 index 0000000..625996c --- /dev/null +++ b/.github/sync.yml @@ -0,0 +1,12 @@ +group: + repos: | + polyfrost/oneconfig + files: + - source: issue_templates/ + dest: .github/ISSUE_TEMPLATE/ + - source: .github/workflows/stale.yml + dest: .github/workflows/stale.yml + - source: .gitattributes + dest: .gitattributes + - source: CODE_OF_CONDUCT.md + dest: CODE_OF_CONDUCT.md diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..7789974 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,30 @@ +name: Stale Issues / PRs + +on: + schedule: + - cron: '00 10 * * *' + +jobs: + statle: + name: Check for Stale Issues / PRs + runs-on: ubuntu-latest + steps: + - name: Stale + uses: actions/stale@v9 + with: + close-issue-message: > + This issue was closed because it has been stale for 10 days with no activity. + close-pr-message: > + This PR was closed because it has been stale for 10 days with no activity. + days-before-stale: 120 + days-before-close: 10 + days-before-pr-close: -1 + exempt-all-assignees: true + exempt-all-pr-milestones: true + exempt-issue-labels: 'planned,added,fixed,meta: no-stale' + exempt-pr-labels: 'dependencies,i18n,meta: no-stale' + stale-issue-label: 'meta: stale' + stale-issue-message: > + This issue was marked as stale because there has been no activity in the past 120 days. + To remove this label, set the label `meta: no-stale`, or interact with this issue. + diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..01067e7 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,18 @@ +name: sync issue templates +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: BetaHuhn/repo-file-sync-action@v1 + with: + GH_PAT: ${{ secrets.GH_SYNC_PAT }} + COMMIT_PREFIX: '[no ci]' + PR_LABELS: 'meta: sync' + BRANCH_PREFIX: sync-templates diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 3a01960..06d4804 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,14 +1,17 @@ # Contributor Covenant Code of Conduct +This is a modified version of the Contributor Covenant to clarify trolling (line 35), +and add contact information (lines 67-68). + ## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, -nationality, personal appearance, race, religion, or sexual identity -and orientation. +nationality, personal appearance, race, caste, color, religion, or sexual +identity and orientation. We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. @@ -23,17 +26,17 @@ community include: * Giving and gracefully accepting constructive feedback * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience -* Focusing on what is best not just for us as individuals, but for the - overall community +* Focusing on what is best not just for us as individuals, but for the overall + community Examples of unacceptable behavior include: -* The use of sexualized language or imagery, and sexual attention or - advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks +* The use of sexualized language or imagery, and sexual attention or advances of + any kind +* Trolling (excessive antagonistic, inflammatory, insincere behaviour), insulting or derogatory comments, and personal or political attacks * Public or private harassment -* Publishing others' private information, such as a physical or email - address, without their explicit permission +* Publishing others' private information, such as a physical or email address, + without their explicit permission * Other conduct which could reasonably be considered inappropriate in a professional setting @@ -53,17 +56,16 @@ decisions when appropriate. This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. -Examples of representing our community include using an official e-mail address, +Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported to the community leaders responsible for enforcement at: - -https://polyfrost.cc/discord - +reported to the community leaders responsible for enforcement via +[our Discord server](https://polyfrost.org/discord), or via +[email](mailto:coc@polyfrost.org). All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the @@ -85,15 +87,15 @@ behavior was inappropriate. A public apology may be requested. ### 2. Warning -**Community Impact**: A violation through a single incident or series -of actions. +**Community Impact**: A violation through a single incident or series of +actions. **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels -like social media. Violating these terms may lead to a temporary or -permanent ban. +like social media. Violating these terms may lead to a temporary or permanent +ban. ### 3. Temporary Ban @@ -109,23 +111,27 @@ Violating these terms may lead to a permanent ban. ### 4. Permanent Ban **Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an +standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. -**Consequence**: A permanent ban from any sort of public interaction within -the community. +**Consequence**: A permanent ban from any sort of public interaction within the +community. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], -version 2.0, available at -https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. +version 2.1, available at +[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. -Community Impact Guidelines were inspired by [Mozilla's code of conduct -enforcement ladder](https://github.com/mozilla/diversity). - -[homepage]: https://www.contributor-covenant.org +Community Impact Guidelines were inspired by +[Mozilla's code of conduct enforcement ladder][Mozilla CoC]. For answers to common questions about this code of conduct, see the FAQ at -https://www.contributor-covenant.org/faq. Translations are available at -https://www.contributor-covenant.org/translations. \ No newline at end of file +[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at +[https://www.contributor-covenant.org/translations][translations]. + +[homepage]: https://www.contributor-covenant.org +[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html +[Mozilla CoC]: https://github.com/mozilla/diversity +[FAQ]: https://www.contributor-covenant.org/faq +[translations]: https://www.contributor-covenant.org/translations diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..58c584a --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,3 @@ +# Contributing + +The contributing guide for Polyfrost projects can be found in our [Contributing Documentation](https://polyfrost.org/contributing). diff --git a/README.md b/README.md index d4a0748..2b13747 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ > Default community health files -This repository contains all the defaults for community health. All the `polyfrost` repository inherit (or override) them. \ No newline at end of file +This repository contains all the defaults for community health. All the `polyfrost` repository inherit (or override) them. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..15b982f --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,3 @@ +# Security Notice + +The Security Notice for all Polyfrost projects can be found [on our website](https://polyfrost.org/legal/security). diff --git a/SUPPORT.md b/SUPPORT.md new file mode 100644 index 0000000..2896f29 --- /dev/null +++ b/SUPPORT.md @@ -0,0 +1,3 @@ +# Support from Polyfrost + +You can obtain support from Modrinth on [our Discord server](https://polyfrost.org/discord) or by sending an email to [support@polyfrost.org](mailto:support@polyfrost.org). diff --git a/issue_templates/bug_report.yml b/issue_templates/bug_report.yml new file mode 100644 index 0000000..7822284 --- /dev/null +++ b/issue_templates/bug_report.yml @@ -0,0 +1,50 @@ +name: Bug report +description: Create a report to help us improve Polyfrost. Include screenshots if possible. +labels: [bug] +body: + - type: markdown + attributes: + value: Before raising an issue, please search for existing issues to avoid creating duplicates. + - type: textarea + attributes: + label: Original reporter/ticket ID + description: If you are rewording a ticket, put the original reporter(s) and ticket ID(s). If not, leave this blank. + validations: + required: false + - type: textarea + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is. + validations: + required: false + - type: textarea + attributes: + label: Steps to reproduce + description: Steps to reproduce the behavior. + placeholder: | + 1. Go to '...' + 2. Click on '...' + 3. Scroll down to '...' + 4. See error + validations: + required: false + - type: textarea + attributes: + label: Expected behavior + description: A clear and concise description of what you expected to happen. + validations: + required: false + - type: textarea + attributes: + label: Operating System information + description: Information about your environment. + placeholder: | + macOS 13.4.2, git 1.4.0, etc. + validations: + required: false + - type: textarea + attributes: + label: Additional context + description: Add any other context about the problem here. + validations: + required: false diff --git a/issue_templates/config.yml b/issue_templates/config.yml new file mode 100644 index 0000000..0c25c51 --- /dev/null +++ b/issue_templates/config.yml @@ -0,0 +1,10 @@ +blank_issues_enabled: true +contact_links: + - name: Discord + about: Ask questions or share feature requests on our Discord Server. + url: https://polyfrost.org/discord + - name: Polyfrost Documentation + about: Useful documentation about Polyfrost, OneConfig, and other Polyfrost projects. + url: https://docs.modrinth.com + - name: Polyfrost Docs^2 + about: Useful documentation about how you can contribute to Polyfrost projects. diff --git a/issue_templates/enhancement.yml b/issue_templates/enhancement.yml new file mode 100644 index 0000000..374d53b --- /dev/null +++ b/issue_templates/enhancement.yml @@ -0,0 +1,37 @@ +name: Enhancement +description: Suggest an enhancement for an existing feature +labels: [enhancement] +body: + - type: markdown + attributes: + value: Before raising an issue, please search for existing issues and [Discord](https://polyfrost.org/discord) suggestions to avoid creating duplicates. + - type: textarea + attributes: + label: Original reporter/ticket ID + description: If you are rewording a ticket, put the original reporter(s) and ticket ID(s). If not, leave this blank. + validations: + required: false + - type: textarea + attributes: + label: Is your suggested enhancement related to a problem? Please describe, or link another Issue. + description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + validations: + required: false + - type: textarea + attributes: + label: Describe the solution you'd like + description: A clear and concise description of what you want to happen. + validations: + required: false + - type: textarea + attributes: + label: Describe alternatives you've considered + description: A clear and concise description of any alternative solutions or features you've considered. + validations: + required: false + - type: textarea + attributes: + label: Additional context + description: Add any other context or screenshots about the suggested enhancement here. + validations: + required: false diff --git a/profile/README.md b/profile/README.md index af6d90e..d92833a 100644 --- a/profile/README.md +++ b/profile/README.md @@ -2,7 +2,7 @@ # Hey 👋, welcome to Polyfrost -We're a small team of developers, designers, and enthusiasts focused on making the best possible experience for modded Minecraft. +We're a small team of developers, designers, and enthusiasts focused on making the best possible experience for modded Minecraft. * 👍 Want to learn more about us? [Check out our website](https://polyfrost.org) * 🐛 Did you run into a bug? [Open a bug report](https://github.com/Polyfrost/OneConfig/issues/new?assignees=&labels=bug&template=bug_report.yml) @@ -10,4 +10,5 @@ We're a small team of developers, designers, and enthusiasts focused on making t * 🦩 Feeling social? [Join our discord community](https://polyfrost.org/discord) ## [We 💕 open source](https://polyfrost.org/oss/) + Like really... what argument is there against open source. It lets the community help us build the tools we all have grown to love, so we welcome all to contribute their ideas. Check out some of our favorite projects From 6387addb384e2c9384284b0580c8fd094b2beb50 Mon Sep 17 00:00:00 2001 From: Pauline Date: Wed, 24 Apr 2024 23:26:36 -0400 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20fix:=20polyfrost.cc=20->=20p?= =?UTF-8?q?olyfrost.org?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/pull_request_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3da294a..d4fee4a 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -25,7 +25,7 @@ Fixes # ## Documentation