From 10e5732c1cb31f3af3e90031c968a7b18ee8f45d Mon Sep 17 00:00:00 2001 From: Krzysztof Szyper Date: Mon, 27 Apr 2020 15:26:59 +0200 Subject: [PATCH 1/3] Added LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..77ad479 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Krzysztof Szyper (https://christophshyper.github.io/) + +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. From 44f6f4aa1a5cf9200dc18936f336458fac599276 Mon Sep 17 00:00:00 2001 From: Krzysztof Szyper Date: Mon, 27 Apr 2020 15:31:22 +0200 Subject: [PATCH 2/3] Default actions for metadata --- workflows/META-MASTER.yml | 18 ++++++++++++++++++ workflows/META-OTHER.yml | 21 +++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 workflows/META-MASTER.yml create mode 100644 workflows/META-OTHER.yml diff --git a/workflows/META-MASTER.yml b/workflows/META-MASTER.yml new file mode 100644 index 0000000..86b002c --- /dev/null +++ b/workflows/META-MASTER.yml @@ -0,0 +1,18 @@ +name: Master branch metadata + +on: + push: + branches: master + +jobs: + labels: + name: Update repo labels + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Update labels + uses: crazy-max/ghaction-github-labeler@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/workflows/META-OTHER.yml b/workflows/META-OTHER.yml new file mode 100644 index 0000000..32a2868 --- /dev/null +++ b/workflows/META-OTHER.yml @@ -0,0 +1,21 @@ +name: Other branches metadata + +on: + push: + branches-ignore: + - master + +jobs: + labels: + name: Update repo labels + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Update labels - dry run + uses: crazy-max/ghaction-github-labeler@v1 + with: + dry_run: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From b4bec8066fc7084d6c2289429350128e8a62608d Mon Sep 17 00:00:00 2001 From: Krzysztof Szyper Date: Mon, 27 Apr 2020 15:33:38 +0200 Subject: [PATCH 3/3] Added rest of files for templating --- .gitignore | 74 ++++++++++++++++++++++++++++++++++++++++++++ CODEOWNERS | 2 ++ CODE_OF_CONDUCT.md | 76 ++++++++++++++++++++++++++++++++++++++++++++++ CONTRIBUTING.md | 38 +++++++++++++++++++++++ README.md | 12 ++++++-- labels.yml | 23 ++++++++++++++ 6 files changed, 223 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 CODEOWNERS create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md create mode 100644 labels.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aae71db --- /dev/null +++ b/.gitignore @@ -0,0 +1,74 @@ +# Created by .ignore support plugin (hsz.mobi) +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..50b3eec --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,2 @@ +# Owner of everything +* @ChristophShyper @devops-infra/christophshyper diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..ac3d4a8 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,76 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, 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. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at biotyk@mail.com. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..36684df --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,38 @@ +# Contributing +Thanks for taking interest in contributing into this repository. + +Rules for contribution are very simple. + + +### Branching +* Bug fixes should be pushed to branches starting with `bugfix/...`. +* New features should be pushed to branches starting with `feature/...`. +* Updates to documentation should be pushed to branches starting with `documentation/...`. +* If the changes apply to more than one category any other name best fitting should be used. + + +### Commit messages +* Should start with the verb describing what was made, in a past form (`Added...`, `Fixed...`, `Changed...`, `Updated...`). +* Should give brief description about purpose of the commit (`...README.md for a new usage`). +* Can provide file names or longer description in a body of the commit. + + +### Pull requests +* Are created automatically, using automated template, after pushing commits to a new branch. +* Description should address points listed in the template. +* Check all applicable boxes. Change title if needed. +* Any other applicable label should be selected. + + +### Issues +* Issue should be created with available template. +* Description should address points listed in the template. +* Check all applicable boxes. Change title if needed. +* Any applicable label should be selected. + + +### Links +* [Issues](../../issues) +* [Pull Requests](../../pulls) +* [README](./README.md) +* [Code of Conduct](https://github.com/devops-infra/.github/blob/master/CODE_OF_CONDUCT.md) diff --git a/README.md b/README.md index 56da267..38c714f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ -# .github -Meta repository for templates +# Meta repository for [devops-infra](https://github.com/devops-infra) organization + + +# Badge swag +[ +![GitHub repo](https://img.shields.io/badge/GitHub-devops--infra%2Ftemplate--action-blueviolet.svg?style=plastic&logo=github) +![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/devops-infra/.github?color=blueviolet&label=Code%20size&style=plastic&logo=github) +![GitHub last commit](https://img.shields.io/github/last-commit/devops-infra/.github?color=blueviolet&logo=github&style=plastic&label=Last%20commit) +![GitHub license](https://img.shields.io/github/license/devops-infra/.github?color=blueviolet&logo=github&style=plastic&label=License) +](https://github.com/devops-infra/.github "shields.io") diff --git a/labels.yml b/labels.yml new file mode 100644 index 0000000..d870d66 --- /dev/null +++ b/labels.yml @@ -0,0 +1,23 @@ +- name: bugfix + color: "e02c1f" + description: Bug needing a fix + +- name: feature + color: "16cc1c" + description: Adding a new feature + +- name: documentation + color: "f9f14d" + description: Change in the documentation + +- name: automatic + color: "244296" + description: Automatic action + +- name: dependency + color: "a53df4" + description: Dependency update + +- name: rejected + color: "000000" + description: Idea rejected