-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: added content for bus-factor + technical fork (EN + ZH) (#25)
* docs: content for bus-factor Signed-off-by: neilblaze <[email protected]> * docs: modified bus-factor (ZH) & added Technical Fork (ZH) Signed-off-by: neilblaze <[email protected]> * doc: update chinese part Signed-off-by: frank-zsy <[email protected]> --------- Signed-off-by: neilblaze <[email protected]> Signed-off-by: frank-zsy <[email protected]> Co-authored-by: frank-zsy <[email protected]>
- Loading branch information
Showing
5 changed files
with
79 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 巴士系数(Bus Factor) | ||
|
||
  | ||
|
||
## 定义 | ||
|
||
巴士系数,或称为 Contributor Absence Factor,是由 [CHAOSS 社区](https://chaoss.community) 定义的一个指标。有关该指标的详细定义,请参阅 [CHAOSS Metrics - Bus Factor](https://chaoss.community/metric-bus-factor/)。 | ||
|
||
巴士系数是一个引人注目的指标,因为它形象的表达了一个问题,即:“在项目停滞之前,我们可以失去多少贡献者?”。巴士系数的计算是项目贡献量 50% 的最少人数,并表明了项目失去关键贡献者(包括维护者)后的韧性程度。 | ||
|
||
> 它有助于识别项目中的工作如何分布在贡献者之间,以及项目中做了大部分工作的关键人物。 | ||
## 数据 | ||
|
||
- **链接(基础):** `https://oss.x-lab.info/open_digger/{platform}/{owner}/{repo}/bus_factor.json` | ||
- **链接(详细):** `https://oss.x-lab.info/open_digger/{platform}/{owner}/{repo}/bus_factor_detail.json` | ||
|
||
要获取特定仓库的数据,请将`{platform}`、`{owner}`和`{repo}`替换为实际名称。这里有一个[示例](https://oss.x-lab.info/open_digger/github/X-lab2017/open-digger/bus_factor.json)。 | ||
|
||
## 代码 | ||
|
||
这里是[**实现代码**](https://github.com/X-lab2017/open-digger/blob/54478a97911a24a33e69147a985115b084c24f3f/src/metrics/chaoss.ts#L672)。 | ||
|
||
## CodePen 演示 | ||
|
||
<iframe height="600" scrolling="no" title="OpenDigger — [X-lab] OpenRank/Activity/Bus Factor" src="https://codepen.io/frank-zsy/embed/bGjyqQj?type=bus_factor&default-tab=js%2Cresult&editable=true" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true"> | ||
See the Pen <a href="https://codepen.io/frank-zsy/pen/bGjyqQj"> | ||
OpenDigger - [X-lab] OpenRank/Activity/Bus Factor</a> by Frank Zhao (<a href="https://codepen.io/frank-zsy">@frank-zsy</a>) | ||
on <a href="https://codepen.io">CodePen</a>. | ||
</iframe> |
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
33 changes: 33 additions & 0 deletions
33
i18n/en/docusaurus-plugin-content-docs/current/user_docs/metrics/bus_factor.md
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,33 @@ | ||
# Bus Factor | ||
|
||
  | ||
|
||
## Definition | ||
|
||
Bus Factor, or modernly Contributor Absence Factor is a metric defined by [CHAOSS](https://chaoss.community), see [CHAOSS Metrics - Bus Factor](https://chaoss.community/metric-bus-factor/) for a detailed definition of this metric. | ||
|
||
The Bus Factor is a compelling metric because it visualizes the question "How many contributors can we lose before a project stalls?". It is the smallest number of people that make 50% of contributions to the project & indicates a measure of the project's resilience to losing key contributors (including maintainers). | ||
|
||
> It helps identify how widely the work in a project is distributed across contributors as well as the key people in a project that are doing the majority of the work. | ||
|
||
## Data | ||
|
||
- **Link (base):** `https://oss.x-lab.info/open_digger/{platform}/{owner}/{repo}/bus_factor.json` | ||
- **Link (detail):** `https://oss.x-lab.info/open_digger/{platform}/{owner}/{repo}/bus_factor_detail.json` | ||
|
||
|
||
To get the data for a certain repository, replace `{platform}`, `{owner}` and `{repo}` with the actual name. Here is an [example](https://oss.x-lab.info/open_digger/github/X-lab2017/open-digger/bus_factor.json). | ||
|
||
## Code | ||
|
||
Here's the [**implementation code**](hhttps://github.com/X-lab2017/open-digger/blob/54478a97911a24a33e69147a985115b084c24f3f/src/metrics/chaoss.ts#L672). | ||
|
||
|
||
## CodePen Demo | ||
|
||
<iframe height="600" scrolling="no" title="OpenDigger — [X-lab] OpenRank/Activity/Bus Factor" src="https://codepen.io/frank-zsy/embed/bGjyqQj?type=bus_factor&default-tab=js%2Cresult&editable=true" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true"> | ||
See the Pen <a href="https://codepen.io/frank-zsy/pen/bGjyqQj"> | ||
OpenDigger - [X-lab] OpenRank/Activity/Bus Factor</a> by Frank Zhao (<a href="https://codepen.io/frank-zsy">@frank-zsy</a>) | ||
on <a href="https://codepen.io">CodePen</a>. | ||
</iframe> |
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