https://github.com/backstage/tempo
Repo for collecting and storing open source metrics.
https://github.com/backstage/tempo
Last synced: about 1 year ago
JSON representation
Repo for collecting and storing open source metrics.
- Host: GitHub
- URL: https://github.com/backstage/tempo
- Owner: backstage
- Created: 2022-03-18T15:42:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-05T19:39:26.000Z (about 3 years ago)
- Last Synced: 2025-06-04T21:28:55.283Z (about 1 year ago)
- Language: TypeScript
- Size: 454 KB
- Stars: 4
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tempo
Repo for collecting and storing open source metrics.
## Scripts
### `$ yarn generate`
Generates the metrics for the entire Backstage org.
#### Args
- `--withAdopterList` - Fetches and processes the adopter list
- `--withMetrics` - Fetches and processes pull request and issue metrics
- `--commitChange` - Commits the metric changes back to the repo, when omitted it runs in a dryrun mode.
## Shape of [metrics.json](./metrics.json)
```ts
{
/**
* List of the adopters taken from then
* backstage/backstage/ADOPTERS.md file
*/
namesOfAdopters: string[];
/**
* List of contributors that have either
* submitted a pull request or opened
* an issue.
*/
namesOfContributors: string[];
/**
* List of new contributors that have either
* submitted a pull request or opened
* an issue.
*/
namesOfContributorsNew: string[];
/**
* Number of pull requests in the last
* month
*/
numberOfPullRequestNew: number;
/**
* p50 number of new pull requests
* submitted every week
*/
p50NumberOfPullsPerWeek: number;
/**
* p50 number of new contributors
* every week.
*/
p50NumberOfNewContributorsPerWeek: number;
/**
* p50 of the time pull requests in the
* last 30 days have been opened to the
* time they were closed.
*/
p50SecondsToClosePulls: number;
/**
* p50 of the time issues in the
* last 30 days have been opened to the
* time they were closed.
*/
p50SecondsToCloseIssues: number;
/**
* mean number of new pull requests
* submitted every week
*/
meanNumberOfPullsPerWeek: number;
/**
* mean number of new contributors
* every week.
*/
meanNumberOfNewContributorsPerWeek: number;
/**
* mean of the time pull requests in the
* last 30 days have been opened to the
* time they were closed.
*/
meanSecondsToClosePulls: number;
/**
* mean of the time issues in the
* last 30 days have been opened to the
* time they were closed.
*/
meanSecondsToCloseIssues: number;
}
```