-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(v3): simplify change SHA management; use median lead time for ch…
…ange instead of average value
- Loading branch information
1 parent
9638de2
commit d4eca99
Showing
22 changed files
with
140 additions
and
229 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 |
---|---|---|
|
@@ -199,7 +199,7 @@ As seen above, the required inputs are: | |
|
||
1. The endpoint | ||
2. The API key | ||
3. The product name | ||
3. The repo name (proxy for the "product") | ||
|
||
#### GitHub Actions action | ||
|
||
|
@@ -213,7 +213,7 @@ steps: | |
fetch-depth: 0 | ||
|
||
- name: Dorametrix | ||
uses: mikaelvesavuori/dorametrix-action@v1.0.0 | ||
uses: mikaelvesavuori/dorametrix-action@v3 | ||
with: | ||
endpoint: ${{ secrets.DORAMETRIX_ENDPOINT }} | ||
api-key: ${{ secrets.DORAMETRIX_API_KEY }} | ||
|
@@ -225,6 +225,8 @@ The specific action, `mikaelvesavuori/[email protected]`, is available fo | |
|
||
#### Bitbucket Pipelines pipe | ||
|
||
_Note that the version below assumes Dorametrix version 1/2._ | ||
|
||
An example using two user-provided secrets and setting the product with a known variable representing the repo name: | ||
|
||
```yaml | ||
|
@@ -389,7 +391,7 @@ All of the below demonstrates "directly calling" the API; since webhook events f | |
```json | ||
{ | ||
"eventType": "change", | ||
"product": "demo" | ||
"repo": "demo" | ||
} | ||
``` | ||
|
||
|
@@ -406,21 +408,8 @@ All of the below demonstrates "directly calling" the API; since webhook events f | |
```json | ||
{ | ||
"eventType": "deployment", | ||
"product": "demo", | ||
"changes": [ | ||
{ | ||
"id": "356a192b7913b04c54574d18c28d46e6395428ab", | ||
"timeCreated": "1642879177" | ||
}, | ||
{ | ||
"id": "da4b9237bacccdf19c0760cab7aec4a8359010b0", | ||
"timeCreated": "1642874964" | ||
}, | ||
{ | ||
"id": "77de68daecd823babbb58edb1c8e14d7106e83bb", | ||
"timeCreated": "1642873353" | ||
} | ||
] | ||
"repo": "demo", | ||
"changeSha": "356a192b7913b04c54574d18c28d46e6395428ab" | ||
} | ||
``` | ||
|
||
|
@@ -437,7 +426,7 @@ All of the below demonstrates "directly calling" the API; since webhook events f | |
```json | ||
{ | ||
"eventType": "incident", | ||
"product": "demo" | ||
"repo": "demo" | ||
} | ||
``` | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
process.env.IS_TEST = true; | ||
process.env.IS_TEST = true; |
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.