Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: autometrics-dev/diff-metrics
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.2
Choose a base ref
...
head repository: autometrics-dev/diff-metrics
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: release/v1
Choose a head ref
  • 3 commits
  • 7 files changed
  • 1 contributor

Commits on Jul 4, 2023

  1. Add typescript support

    gagbo committed Jul 4, 2023
    Copy the full SHA
    9104bdb View commit details

Commits on Jul 6, 2023

  1. feat: add Golang support

    Fixes #19
    gagbo committed Jul 6, 2023
    Copy the full SHA
    8c82521 View commit details
  2. chore: prepare release 1.2.0

    gagbo committed Jul 6, 2023
    Copy the full SHA
    5b3248c View commit details
Showing with 866 additions and 771 deletions.
  1. +28 −4 README.md
  2. +3 −0 action.yml
  3. +124 −60 dist/index.js
  4. +1 −1 dist/index.js.map
  5. +693 −695 package-lock.json
  6. +7 −7 package.json
  7. +10 −4 src/main.ts
32 changes: 28 additions & 4 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
@@ -21,7 +21,13 @@ 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.
- `go-roots`: a list of project roots for golang projects, one root per line.
The values are given relative to the root of the repository, and should
point to the directory containing the `go.mod` 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).
@@ -37,6 +43,8 @@ go through the diff.
:----------:|:-----------:
gh-token | yes
rs-roots | no
ts-roots | no
go-roots | no
retention-days | no
am-version | no

@@ -99,6 +107,14 @@ In the case of a mono repo that would look like
│ ├── README.md
│ │ ...
│ └── Cargo.toml
├── project-d
│ ├── README.md
│ │ ...
│ └── go.mod
├── project-ts
│ ├── README.md
│ │ ...
│ └── package.json
└── README.md
```

@@ -111,6 +127,10 @@ with:
project-a
project-b
project-c
go-roots: |
project-d
ts-roots: |
project-ts
```
@@ -122,7 +142,11 @@ 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) |
[Go](https://github.com/autometrics-dev/autometrics-go) |
[Typescript](https://github.com/autometrics-dev/autometrics-ts) |
[Go](https://github.com/autometrics-dev/autometrics-go) | ⚠️[^mid]
[Python](https://github.com/autometrics-dev/autometrics-py) | ❌
[C#](https://github.com/autometrics-dev/autometrics-cs) | ❌
[^mid]: Golang's version detects functions decorated with `//autometrics` directives, but
does not deal with `net/http` middleware wrapper yet.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -14,6 +14,9 @@ inputs:
ts-roots:
description: 'The list of typescript project roots to check. One path per line'
required: false
go-roots:
description: 'The list of golang project roots to check. One path per line'
required: false
retention-days:
description: 'The number of days to keep the artifacts for. Defaults to 0 (inherits the policy from the repository)'
required: false
Loading