Skip to content

Commit 8013795

Browse files
authored
chore: prepare repository for open source release (#20)
* docs(security): fix placeholder URL in SECURITY.md Replace {repository-url} placeholder with actual GitHub repository URL. * chore: update CODEOWNERS with frontend-product team Replace placeholder with @Doist/frontend-product team. * chore: remove unused dependabot.yml This repository uses Renovate for dependency updates instead of Dependabot. * docs: add CONTRIBUTING.md Add contribution guidelines including: - Code of Conduct reference - Open development policy - Semantic versioning explanation - Branch organization - How to propose changes - Project setup instructions - Development workflow and available commands - Pull request guidelines - Commit message guidelines (Conventional Commits) * docs: add CODE_OF_CONDUCT.md Add Contributor Covenant v2.1 code of conduct with Doist contact email (frontend+opensource@doist.com) for enforcement.
1 parent 90d70d1 commit 8013795

5 files changed

Lines changed: 195 additions & 8 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @{username-or-team-name}
1+
* @doist/frontend-product

.github/dependabot.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
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, caste, color, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
- Demonstrating empathy and kindness toward other people
14+
- Being respectful of differing opinions, viewpoints, and experiences
15+
- Giving and gracefully accepting constructive feedback
16+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
- Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
22+
- Trolling, insulting or derogatory comments, and personal or political attacks
23+
- Public or private harassment
24+
- Publishing others' private information, such as a physical or email address, without their explicit permission
25+
- Other conduct which could reasonably be considered inappropriate in a professional setting
26+
27+
## Enforcement Responsibilities
28+
29+
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.
30+
31+
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.
32+
33+
## Scope
34+
35+
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.
36+
37+
## Enforcement
38+
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at frontend+opensource@doist.com. All complaints will be reviewed and investigated promptly and fairly.
40+
41+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42+
43+
## Enforcement Guidelines
44+
45+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46+
47+
### 1. Correction
48+
49+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50+
51+
**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.
52+
53+
### 2. Warning
54+
55+
**Community Impact**: A violation through a single incident or series of actions.
56+
57+
**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.
58+
59+
### 3. Temporary Ban
60+
61+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62+
63+
**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.
64+
65+
### 4. Permanent Ban
66+
67+
**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.
68+
69+
**Consequence**: A permanent ban from any sort of public interaction within the community.
70+
71+
## Attribution
72+
73+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
74+
75+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][mozilla coc].
76+
77+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][faq]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
78+
79+
[homepage]: https://www.contributor-covenant.org
80+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
81+
[mozilla coc]: https://github.com/mozilla/diversity
82+
[faq]: https://www.contributor-covenant.org/faq
83+
[translations]: https://www.contributor-covenant.org/translations

CONTRIBUTING.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# Contributing to react-compiler-tracker
2+
3+
The following is a set of guidelines for contributing to react-compiler-tracker. Please spend several minutes reading these guidelines before you create an issue, pull request or discussion.
4+
5+
## Code of Conduct
6+
7+
Doist has adopted the [Contributor Covenant](https://www.contributor-covenant.org/) as its Code of Conduct, and we expect contributors to react-compiler-tracker to adhere to it. Please read [the full text](https://github.com/Doist/react-compiler-tracker/blob/main/CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated.
8+
9+
## Open Development
10+
11+
All work on react-compiler-tracker happens directly on [GitHub](https://github.com/Doist/react-compiler-tracker). Both core team members and external contributors send pull requests that go through the same review process.
12+
13+
## Semantic Versioning
14+
15+
react-compiler-tracker follows [semantic versioning](https://semver.org/). We release patch versions for critical bugfixes, minor versions for new features or non-essential changes, and major versions for any breaking changes.
16+
17+
Every significant change is documented in the [CHANGELOG.md](CHANGELOG.md) file.
18+
19+
## Branch Organization
20+
21+
Submit all changes directly to the [main](https://github.com/Doist/react-compiler-tracker/tree/main) branch. We don't use separate branches for development or for upcoming releases. We do our best to keep `main` in good shape, with all tests passing.
22+
23+
## Proposing a Change
24+
25+
If you intend to change the public API, or make any non-trivial changes to the implementation, we recommend opening a [GitHub Discussion](https://github.com/Doist/react-compiler-tracker/discussions) with the core team first. Although we welcome all contributions, this lets us reach an agreement on your proposal before you put significant effort into something that might not fit Doist product requirements.
26+
27+
## Your First Pull Request
28+
29+
Working on your first Pull Request? You can learn how from this free video series:
30+
31+
- [How to Contribute to an Open Source Project on GitHub](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github)
32+
33+
If you decide to fix an issue, please be sure to check the comment thread in case somebody is already working on a fix. If nobody is working on it at the moment, please leave a comment stating that you intend to work on it so other people don't accidentally duplicate your effort.
34+
35+
## Project Setup
36+
37+
Before you can contribute to the codebase, you will need to fork the react-compiler-tracker repository, and the following steps will help you hit the ground running:
38+
39+
1. Fork the repository (click the <kbd>Fork</kbd> button at the top right of [this page](https://github.com/Doist/react-compiler-tracker));
40+
41+
2. Clone your fork locally;
42+
43+
```sh
44+
git clone https://github.com/<your_github_username>/react-compiler-tracker.git
45+
cd react-compiler-tracker
46+
```
47+
48+
3. Install all dependencies by running `npm install`;
49+
50+
## Development Workflow
51+
52+
After cloning react-compiler-tracker and installing all dependencies, several commands are at your disposal:
53+
54+
- `npm run build`: Builds the `@doist/react-compiler-tracker` package for publishing to [npm](https://www.npmjs.com/);
55+
- `npm run check`: Validates code quality and types with Biome and TypeScript;
56+
- `npm run fix`: Automatically fixes linting issues with Biome;
57+
- `npm run test`: Runs all unit tests with Vitest;
58+
- `npm run test:watch`: Runs tests in watch mode.
59+
60+
### Release Process (core team only)
61+
62+
The release process for react-compiler-tracker is automated with [release-please](https://github.com/googleapis/release-please). When commits following the [Conventional Commits](https://www.conventionalcommits.org/) specification are merged to `main`, release-please automatically creates or updates a release PR. When that PR is merged, a new version is published to npm.
63+
64+
## Sending a Pull Request
65+
66+
Pull requests are actively monitored, and only need the approval of one or more core team members. We will review your pull request and either merge it, request changes to it, or close it with an explanation.
67+
68+
Before submitting a pull request, please take the following into consideration:
69+
70+
- Fork [the repository](https://github.com/Doist/react-compiler-tracker) and create your branch from `main`;
71+
- Follow the [Commit Message Guidelines](#commit-message-guidelines) below;
72+
- Add tests for code that should be tested (like bug fixes);
73+
- Ensure the test suite passes with flying colours;
74+
- Do not override built-in validation and formatting checks.
75+
76+
### Commit Message Guidelines
77+
78+
#### Atomic Commits
79+
80+
If possible, make [atomic commits](https://en.wikipedia.org/wiki/Atomic_commit), which means:
81+
82+
- A commit should not mix whitespace and/or code style changes with functional code changes;
83+
- A commit should contain exactly one self-contained functional change;
84+
- A commit should not create an inconsistent state (e.g., test errors, linting errors, partial fix, etc.).
85+
86+
#### Commit Message Format
87+
88+
This repository expects all commit messages to follow the [Conventional Commits Specification](https://www.conventionalcommits.org/) to automate semantic versioning and `CHANGELOG.md` generation.
89+
90+
As a quick summary, each commit message consists of a **header**, an **optional body**, and an **optional footer**. The header has a special format that includes a **type**, an **optional scope**, and a **description**:
91+
92+
```
93+
<type>[optional scope]: <description>
94+
95+
[optional body]
96+
97+
[optional footer(s)]
98+
```
99+
100+
Commit types, such as `feat:` or `fix:`, are the only ones that will affect versioning and `CHANGELOG.md` generation, whereas commit types such as `build:`, `chore:`, `ci:`, `docs:`, `perf:`, `refactor:`, `revert:`, `style:` and `test:` will not. They are still valid, and it would be great if you could use them when appropriate.
101+
102+
A commit that has the text `BREAKING CHANGE:` at the beginning of its optional body or footer section, or appends a `!` after the type/scope, introduces a breaking API change (correlating with `MAJOR` in Semantic Versioning). A breaking change can be part of commits of any _type_.
103+
104+
## License
105+
106+
By contributing to react-compiler-tracker, you agree that your contributions will be licensed under its [MIT license](LICENSE).
107+
108+
## Attribution
109+
110+
This document is based on [reactjs.org contributing guidelines](https://reactjs.org/docs/how-to-contribute.html).

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ At the moment, we only officially support the latest version of the project with
66

77
## Reporting a vulnerability
88

9-
Please report any vulnerabilities by [opening an issue]({repository-url}/issues/new) and including as many details as you can. We will prioritize security reports over other issues.
9+
Please report any vulnerabilities by [opening an issue](https://github.com/Doist/react-compiler-tracker/issues/new) and including as many details as you can. We will prioritize security reports over other issues.
1010

1111
We don't currently offer a bounty for OSS vulnerabilities, but if it affects [one of the eligible targets, you might qualify for a reward](https://todoist.com/help/articles/doist-bug-bounty-policy).

0 commit comments

Comments
 (0)