forked from open-telemetry/opentelemetry-js-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add markdown lint and fixed markdown files (open-telemetry#716)
Co-authored-by: Valentin Marchaud <[email protected]>
- Loading branch information
Showing
40 changed files
with
334 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"MD013": false, | ||
"MD024": false, | ||
"MD033": false, | ||
"MD041": false | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,25 +25,29 @@ The Conventional Commits specification is a lightweight convention on top of com | |
We use [commitlint](https://github.com/conventional-changelog/commitlint) and [husky](https://github.com/typicode/husky) to prevent bad commit message. | ||
For example, you want to submit the following commit message `git commit -s -am "my bad commit"`. | ||
You will receive the following error : | ||
``` | ||
|
||
```text | ||
✖ type must be one of [ci, feat, fix, docs, style, refactor, perf, test, revert, chore] [type-enum] | ||
``` | ||
|
||
Here an exemple that will pass the verification: `git commit -s -am "chore(opentelemetry-core): update deps"` | ||
|
||
### Fork | ||
|
||
In the interest of keeping this repository clean and manageable, you should work from a fork. To create a fork, click the 'Fork' button at the top of the repository, then clone the fork locally using `git clone [email protected]:USERNAME/opentelemetry-js-contrib.git`. | ||
|
||
You should also add this repository as an "upstream" repo to your local copy, in order to keep it up to date. You can add this as a remote like so: | ||
``` | ||
|
||
```bash | ||
git remote add upstream https://github.com/open-telemetry/opentelemetry-js-contrib.git | ||
|
||
#verify that the upstream exists | ||
git remote -v | ||
``` | ||
|
||
To update your fork, fetch the upstream repo's branches and commits, then merge your main with upstream's main: | ||
``` | ||
|
||
```bash | ||
git fetch upstream | ||
git checkout main | ||
git merge upstream/main | ||
|
@@ -63,22 +67,26 @@ The `opentelemetry-js-contrib` project is written in TypeScript. | |
- `npm test` tests code the same way that our CI will test it. | ||
- `npm run lint:fix` lint (and maybe fix) any changes. | ||
|
||
|
||
### Generating API documentation | ||
|
||
- `npm run docs` to generate API documentation. Generates the documentation in `packages/opentelemetry-api/docs/out` | ||
|
||
### Generating CHANGELOG documentation | ||
|
||
- `npm run changelog` to generate CHANGELOG documentation in your terminal (see [RELEASING.md](RELEASING.md) for more details). | ||
|
||
### Benchmarks | ||
|
||
When two or more approaches must be compared, please write a benchmark in the benchmark/index.js module so that we can keep track of the most efficient algorithm. | ||
|
||
- `npm run bench` to run your benchmark. | ||
|
||
## Contributing Vendor Components | ||
|
||
This repo is generally meant for hosting components that work with popular open-source frameworks and tools. However, it is also possible to contribute components specific to a 3rd party vendor in this repo. | ||
|
||
### Adding a New Vendor Component | ||
|
||
Vendor components that are hosted in this repo will be versioned the same as all other contrib components, and released in lockstep with them under the `@opentelemetry` org in NPM. | ||
|
||
In exchange, vendor component contributors are expected to: | ||
|
@@ -96,4 +104,5 @@ In exchange, vendor component contributors are expected to: | |
- Update their components' usage of Core APIs upon the introduction of breaking changes upstream | ||
|
||
### Removing Vendor Components | ||
|
||
All vendor components are subject to removal from the repo at the sole discretion of the maintainers. Reasons for removal include but are not limited to failing to adhere to any of the expectations defined above in a timely manner. "Timely manner" can vary depending on the urgency of the task, for example if a flaky unit test is blocking a release for the entire repo that would be far more urgent than responding to a question about usage. As a rule of thumb, 2-3 business days is a good goal for non-urgent response times. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.