Skip to content

Commit

Permalink
Add typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
gagbo committed Jul 4, 2023
1 parent fdd21bd commit 9104bdb
Show file tree
Hide file tree
Showing 6 changed files with 238 additions and 174 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Autometrics Report

This Github action will comment on Pull Requests to tell you how metrics are
This GitHub action will comment on Pull Requests to tell you how metrics are
going to be affected.

The report tells you immediately if your new feature is well instrumented, and
Expand All @@ -21,7 +21,10 @@ go through the diff.
["Example Usage" section](#example-usage) show the minimal set of permissions needed.
- `rs-roots`: a list of project roots for rust projects, one root per line.
The values are given relative to the root of the repository, and should
point to the directory containing the `Cargo.toml` directory.
point to the directory containing the `Cargo.toml` file.
- `ts-roots`: a list of project roots for typescript projects, one root per line.
The values are given relative to the root of the repository, and should
point to the directory containing the `package.json` file.
- `retention-days`: the number of days to keep the list of functions as
[workflow
artifacts](https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts#about-workflow-artifacts).
Expand All @@ -37,6 +40,7 @@ go through the diff.
:----------:|:-----------:
gh-token | yes
rs-roots | no
ts-roots | no
retention-days | no
am-version | no

Expand Down Expand Up @@ -99,6 +103,10 @@ In the case of a mono repo that would look like
│ ├── README.md
│ │ ...
│ └── Cargo.toml
├── project-ts
│ ├── README.md
│ │ ...
│ └── package.json
└── README.md
```

Expand All @@ -111,6 +119,8 @@ with:
project-a
project-b
project-c
ts-roots: |
project-ts
```
Expand All @@ -122,7 +132,7 @@ All languages in the table will be eventually supported.
Language | Support
:---:|:---:
[Rust](https://github.com/autometrics-dev/autometrics-rs) | ✅
[Typescript](https://github.com/autometrics-dev/autometrics-ts) |
[Typescript](https://github.com/autometrics-dev/autometrics-ts) |
[Go](https://github.com/autometrics-dev/autometrics-go) | ❌
[Python](https://github.com/autometrics-dev/autometrics-py) | ❌
[C#](https://github.com/autometrics-dev/autometrics-cs) | ❌
Loading

0 comments on commit 9104bdb

Please sign in to comment.