Skip to content

Commit

Permalink
chore(meta): add CONTRIBUTING.md, FUNDING.yml, and bug template
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Feb 12, 2024
1 parent bacfa16 commit 60cfbd8
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: [phosphor-icons, rektdeckard]
patreon: phosphoricons
custom: ["https://www.buymeacoffee.com/phosphoricons"]
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: bug
assignees: rektdeckard
---

<!-- BEFORE YOU REPORT -->
<!-- 1. Search for existing issues! If the issue has already been reported, add a 👍 or a comment to help show your interest. -->
<!-- 2. If your issue pertains to a specific library, please leave it on the relevant repository! -->

**Describe the bug**

<!-- A clear and concise description of what the bug is. -->

**Steps to Reproduce**

<!-- Steps to reproduce the behavior. -->

**Expected behavior**

<!-- A clear and concise description of what you expected to happen. -->

**Screenshots**

<!-- If applicable, add screenshots to help explain your problem. -->

**Context (please complete the following information):**

<!--
- OS: [e.g. Windows 10]
- Browser/Environment [e.g. chrome, safari, node]
- Library [e.g. @phosphor-icons/react]
- Version [e.g. 2.1.0]
-->

**Additional notes**

<!-- Add any other context about the problem here. -->
162 changes: 162 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
<!-- omit in toc -->

# Contributing to Phosphor Icons

First off, thanks for taking the time to contribute! ❤️

We welcome many forms of contributions, though due to the creative nature of the project we do not typically accept icon contributions. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them, and read the relevant guidance before making your contribution. We look forward to your input!

> If you like the project, but don't have time to contribute, there are other easy ways to support the project and show your appreciation:
>
> - Donate via [Buy Me a Coffee](https://www.buymeacoffee.com/phosphoricons), or become a recurring contributor via [Patreon](https://patreon.com/phosphoricons) (this really helps!)
> - Star the project
> - Tweet about it, or share on other platforms
> - Refer this project in your project's README
> - Mention the project at local meetups and tell your friends/colleagues
<!-- omit in toc -->

## Table of Contents

- [I Have a Question](#i-have-a-question)
- [I Want To Contribute](#i-want-to-contribute)
- [Requesting Icons](#requesting-icons)
- [Reporting Bugs](#reporting-bugs)
- [Suggesting Enhancements](#suggesting-enhancements)
- [Your First Code Contribution](#your-first-code-contribution)
- [Improving The Documentation](#improving-the-documentation)
- [Styleguides](#styleguides)
- [Commit Messages](#commit-messages)
- [Join The Project Team](#join-the-project-team)

## I Have a Question

> If you want to ask a question, we assume that you have read the available [documentation](https://github.com/phosphor-icons/core/blob/master/README.md).
Before you ask a question, it is best to search for existing [issues](https://github.com/phosphor-icons/core/issues) that might help you. In case you have found a suitable issue and still need clarification, you can add your question as a comment in that issue. It is also advisable to search the internet for answers first.

If you then still feel the need to ask a question and need clarification, we recommend the following:

- Open a new issue using an [issue template](https://github.com/phosphor-icons/core/issues/new/choose).
- Provide as much context as you can about what you're running into (the template has prompts to help you here).
- Provide project and platform versions (`nodejs`, `npm`, etc), depending on what seems relevant.

We will address the issue as soon as we can.

## I Want To Contribute

> ### Legal Notice <!-- omit in toc -->
>
> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.
### Requesting Icons

We handle all icon requests on the [@phosphor-icons/homepage](https://github.com/phosphor-icons/homepage) repository. Please create your request there, or send us an email at [[email protected]](mailto:[email protected][email protected]&subject=Icon%20Request). Be sure to read our documentation on [Requesting Icons](https://github.com/phosphor-icons/homepage/blob/master/CONTRIBUTING.md#requesting-icons).

### Reporting Bugs

<!-- omit in toc -->

#### Before Submitting a Bug Report

A good bug report contains all the necessary information for us (or others in the community) to reproduce, diagnose, and fix it. We ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.

- If your issue pertains to a specific library, please leave it on the relevant repository.
- Make sure that you are using the latest version.
- Determine if your bug is really a bug and not an error on your side, e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://github.com/phosphor-icons/core/blob/master/README.md). If you are looking for support, you might want to check [this section](#i-have-a-question)).
- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [issue tracker](https://github.com/phosphor-icons/core/issues?q=label%3Abug).
- Also make sure to search elsewhere (including Stack Overflow, framework or environment docs) to see if users outside of the GitHub community have discussed the issue.
- Collect information about the bug:
- Stack trace (Traceback)
- OS, Platform and Version
- Version of the browser, runtime environment, package manager, depending on what seems relevant.
- Your input, code, and any other relevant context
- Can you reliably reproduce the issue? And can you also reproduce it with older versions?

<!-- omit in toc -->

#### How Do I Submit a Good Bug Report?

> Please do not report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs can be sent by email to [[email protected]](mailto:[email protected][email protected]&subject=Phosphor%20Security%20Vulnerability).
<!-- You may add a PGP key to allow the messages to be sent encrypted as well. -->

We use GitHub issues to track bugs and errors. If you run into an issue with the project:

- Open an [issue](https://github.com/phosphor-icons/core/issues/new?assignees=rektdeckard&labels=bug&projects=&template=bug_report.md&title=).
- Fill in the templated fields, making sure to:
- Explain the behavior you would expect and the actual behavior.
- Provide as much context as possible and describe the _reproduction steps_ that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
- Provide the information you collected in the previous section.

Once it's filed:

- The project team will label the issue accordingly.
- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
- If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](#your-first-code-contribution).

<!-- You might want to create an issue template for bugs and errors that can be used as a guide and that defines the structure of the information to be included. If you do so, reference it here in the description. -->

### Suggesting Enhancements

This section guides you through submitting an enhancement suggestion for Phosphor Icons, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.

<!-- omit in toc -->

#### Before Submitting an Enhancement

- Make sure that you are using the latest version.
- Read the [documentation](https://github.com/phosphor-icons/core/blob/master/README.md) carefully and find out if the functionality is already covered, maybe by an individual configuration.
- Search the [issues](https://github.com/phosphor-icons/core/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.

<!-- omit in toc -->

#### How Do I Submit a Good Enhancement Suggestion?

Enhancement suggestions are tracked as [issues](https://github.com/phosphor-icons/core/issues).

- Use a **clear and descriptive title** for the issue to identify the suggestion.
- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
- You may want to **include screenshots and/or animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to.
- **Explain why this enhancement would be useful** to most Phosphor Icons users. You may also want to point out the other projects that solved it better and which could serve as inspiration.

<!-- ### Your First Code Contribution -->

<!-- TODO
include Setup of env, IDE and typical getting started instructions?
-->

<!-- ### Improving The Documentation -->

<!-- If you see something that can be improved in our documentation, -->

## Styleguides

### Code Conventions

We use 80-character print width, 2-space tab width, ES5 trailing commas, double-quoted strings, and trailing semicolons. Please run the format script on all code contributions before submitting a PR:

```sh
pnpm format
```

### Commit Messages

We aspire to use [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/#specification) style commit messages. This means commits should be of the format `<noun>(<domain>): <message>`, where:

- `<noun>` is one of `feat`, `fix`, `chore`, `refactor`, `docs`, `style`, `test`, `perf`, `ci`, `build`, or `revert`
- `<domain>` is a kebab-case name for the main affected area, e.g. `readme`
- `<message>` is a description in plain English of the changes at a high level

For example: `docs(readme): add installation instructions`.

Commits should contain a long-form description when relevant, or the message is not enough to describe the full nature of the changes. All commits sholud be limited to 80 characters line length.

<!-- omit in toc -->

## Attribution

This guide is based on the **contributing-gen**. [Make your own](https://github.com/bttger/contributing-gen)!

0 comments on commit 60cfbd8

Please sign in to comment.