Skip to content

Commit

Permalink
chore(meta): Add repository related files
Browse files Browse the repository at this point in the history
Make the contribution much easier and comfortable.
  • Loading branch information
5ouma committed Nov 7, 2024
1 parent b519d5c commit d05d395
Show file tree
Hide file tree
Showing 16 changed files with 514 additions and 0 deletions.
130 changes: 130 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# Contributor Covenant Code of Conduct

## 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.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- 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

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
- Public or private harassment
- 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

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders 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, and will communicate reasons for moderation
decisions when appropriate.

## Scope

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,
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 any ways @5ouma
have. All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**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.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
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
individual, or aggression toward or disparagement of classes of individuals.

**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](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).

Community Impact Guidelines were inspired by
[Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

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](https://www.contributor-covenant.org/translations).

[https://www.contributor-covenant.org/faq]: https://www.contributor-covenant.org/faq
42 changes: 42 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Contributing Guide<!-- omit in toc -->

> [!NOTE]
> You must follow the [Code of Conduct](./CODE_OF_CONDUCT.md).
I happily welcome your contributions! Before you contribute, I would recommend
reading this guideline for a better development experience.

<br />

- [πŸ’¬ Commit Message](#-commit-message)
- [❓ Pull Requests Title](#-pull-requests-title)
- [πŸͺ΅ Commit Log](#-commit-log)

<br /><br />

## πŸ’¬ Commit Message

I recommend you to follow [Conventional Commits] with this format.

```commit message
type(scope): Description
Body
```

[Conventional Commits]: https://www.conventionalcommits.org

<br />

## ❓ Pull Requests Title

You don't need to add any prefixes like `feature` or `bug fix` to the Pull
Requests title. I can recognize what kind of PR it is from labels. Please give a
clear title.

<br />

## πŸͺ΅ Commit Log

I do squash merge to the main branch to keep the commit history clean. When
merging your Pull Request, I'll add the Conventional Commits type and scope.
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/1-feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: πŸŽ‰ Feature Request
description: Request a new feature or enhancement to an existing feature
labels: [πŸŽ‰ New Feature]
body:
- type: textarea
id: feature-description
attributes:
label: ✏️ Describe the feature
description: A clear and concise description
placeholder: |
- I want a feature to...
- This behavior should be...
validations:
required: true

- type: checkboxes
id: checks
attributes:
label: βœ”οΈŽ Confirm these checks
description: Make sure you reviewed below
options:
- label: I searched the GitHub [Issues](https://github.com/5ouma/mobicard/issues) or [Discussions](https://github.com/5ouma/mobicard/discussions).
required: true
- label: I tried with the latest version.
required: false
- label: I agree to follow the [Code of Conduct](https://github.com/5ouma/mobicard/blob/main/.github/CODE_OF_CONDUCT.md).
required: true

- type: textarea
id: additional-info
attributes:
label: πŸ—’οΈ Additional Information
description: Anything else you want to add
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/2-bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 🧰 Bug Report
description: Something doesn't work
labels: [🧰 Bug]
body:
- type: textarea
id: bug-description
attributes:
label: ✏️ Describe the Bug
description: A clear and concise description
validations:
required: true

- type: textarea
id: reproduction-steps
attributes:
label: 🏭 How to Reproduce the Bug
description: Steps to reproduce the behavior
validations:
required: true

- type: checkboxes
id: checks
attributes:
label: βœ”οΈŽ Confirm these checks
description: Make sure you reviewed below
options:
- label: I searched the GitHub [Issues](https://github.com/5ouma/mobicard/issues) or [Discussions](https://github.com/5ouma/mobicard/discussions).
required: true
- label: I tried with the latest version.
required: false
- label: I agree to follow the [Code of Conduct](https://github.com/5ouma/mobicard/blob/main/.github/CODE_OF_CONDUCT.md).
required: true

- type: textarea
id: additional-info
attributes:
label: πŸ—’οΈ Additional Information
description: Anything else you want to add
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
blank_issues_enabled: false
contact_links:
- name: πŸ’¬ General Discussions
url: https://github.com/5ouma/mobicard/discussions/new?category=general
about: Chat about anything and everything here

- name: πŸ™ Q&A
url: https://github.com/5ouma/mobicard/discussions/new?category=q-a
about: Ask the community for help
34 changes: 34 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!-- markdownlint-disable MD041 -->

### ⚠️ Issue

close #

<br />

### ✏️ Description

<!--
A clear and concise description
- Why did you make this change?
- Please describe how this method is better than others.
-->

<br />

### πŸ”„ Type of the Change

- [ ] πŸŽ‰ New Feature
- [ ] 🧰 Bug
- [ ] πŸ›‘οΈ Security
- [ ] πŸ“– Documentation
- [ ] 🏎️ Performance
- [ ] 🧹 Refactoring
- [ ] πŸ§ͺ Testing
- [ ] πŸ”§ Maintenance
- [ ] 🎽 CI
- [ ] 🧠 Meta

<br />

- [ ] I agree to follow the [Code of Conduct](https://github.com/5ouma/mobicard/blob/main/.github/CODE_OF_CONDUCT.md).
9 changes: 9 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Security Policy

## πŸ›‘οΈ Reporting a Vulnerability

If you find any issues of security, please report on
[Security Advisories](https://github.com/5ouma/mobicard/security/advisories/new).

> [!CAUTION]
> Please do NOT open Issues.
20 changes: 20 additions & 0 deletions .github/actions/setup-bun-with-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 🍞 Setup Bun with Cache
description: Install Bun and cache project dependencies

runs:
using: composite

steps:
- name: 🍞 Setup Bun
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1

- name: πŸ«™ Cache node_modules
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: ./node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('./bun.lockb') }}
restore-keys: ${{ runner.os }}-bun-

- name: πŸ“¦ Install Dependencies
run: bun install
shell: bash
3 changes: 3 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
addReviewers: true
addAssignees: author
reviewers: [5ouma]
27 changes: 27 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
alwaysReplace: true

customLabels:
- text: "- [x] πŸŽ‰ New Feature"
label: πŸŽ‰ New Feature
- text: "- [x] 🧰 Bug"
label: 🧰 Bug
- text: "- [x] πŸ›‘οΈ Security"
label: πŸ›‘οΈ Security
- text: "- [x] πŸ“– Documentation"
label: πŸ“– Documentation
- text: "- [x] 🏎️ Performance"
label: 🏎️ Performance
- text: "- [x] 🧹 Refactoring"
label: 🧹 Refactoring
- text: "- [x] πŸ§ͺ Testing"
label: πŸ§ͺ Testing
- text: "- [x] πŸ”§ Maintenance"
label: πŸ”§ Maintenance
- text: "- [x] 🎽 CI"
label: 🎽 CI
- text: "- [x] 🧠 Meta"
label: 🧠 Meta
- text: "chore(deps): "
label: ⛓️ Dependencies
- text: "Release: v"
label: πŸš€ Release
31 changes: 31 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
changelog:
exclude:
labels:
- 🧠 Meta
- πŸš€ Release

categories:
- title: 🧨 Breaking Changes
labels: [🧨 Breaking Change]
- title: πŸŽ‰ New Features
labels: [πŸŽ‰ New Feature]
- title: 🧰 Bug Fixes
labels: [🧰 Bug]
- title: πŸ›‘οΈ Security Fixes
labels: [πŸ›‘οΈ Security]
- title: πŸ“– Documentation Changes
labels: [πŸ“– Documentation]
- title: 🏎️ Performance Improvements
labels: [🏎️ Performance]
- title: 🧹 Refactoring
labels: [🧹 Refactoring]
- title: πŸ§ͺ Testing
labels: [πŸ§ͺ Testing]
- title: πŸ”§ Maintenance
labels: [πŸ”§ Maintenance]
- title: 🎽 CI
labels: [🎽 CI]
- title: ⛓️ Dependency Updates
labels: [⛓️ Dependencies, dependencies]
- title: πŸ” Other Changes
labels: ["*"]
5 changes: 5 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:best-practices"],
"dependencyDashboard": false
}
Loading

0 comments on commit d05d395

Please sign in to comment.