Skip to content

Commit 3e8054b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specamaskara-dd
authored
sample change to trigger CI (#2427)
* Regenerate client from commit 1a1ecd3 of spec repo * try adding approval workflow * branch name * branch name regex * no wildcards * update workflow contexts --------- Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: Anika Maskara <[email protected]>
1 parent acdee9b commit 3e8054b

File tree

4 files changed

+41
-3
lines changed

4 files changed

+41
-3
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32149,7 +32149,7 @@ components:
3214932149
- attributes
3215032150
type: object
3215132151
RumRetentionFilterUpdateRequest:
32152-
description: The RUM retention filter body to update.
32152+
description: The RUM retention filter body to update
3215332153
properties:
3215432154
data:
3215532155
$ref: '#/components/schemas/RumRetentionFilterUpdateData'

.github/workflows/approval_status.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Send PR Approval Status
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
7+
on:
8+
pull_request:
9+
branches:
10+
- v2
11+
types: ["review_requested", "synchronize", "opened", "reopened"]
12+
pull_request_review:
13+
types:
14+
- submitted
15+
- dismissed
16+
17+
jobs:
18+
send_status:
19+
runs-on: ubuntu-latest
20+
if: >
21+
github.event.pull_request.draft == false &&
22+
!contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
23+
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/') &&
24+
contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated')
25+
steps:
26+
- name: Get GitHub App token
27+
id: get_token
28+
uses: actions/create-github-app-token@v1
29+
with:
30+
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
31+
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
32+
repositories: datadog-api-spec
33+
- name: Post PR review status check
34+
uses: DataDog/github-actions/post-review-status@db4b98a773662d0162dd81ed83907983c98b088a
35+
with:
36+
github-token: ${{ steps.get_token.outputs.token }}
37+
repo: datadog-api-spec
38+
check-name: datadog-api-client-typescript/${{ github.event.pull_request.base.ref }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ jobs:
136136
repo: datadog-api-spec
137137
# status: ${{ (needs.test.result == 'cancelled' || needs.examples.result == 'cancelled') && 'pending' || needs.test.result == 'success' && needs.examples.result == 'success' && 'success' || 'failure' }}
138138
status: ${{ needs.test.result == 'cancelled' && 'pending' || needs.test.result == 'success' && 'success' || 'failure' }}
139-
context: unit
139+
context: datadog-api-client-typescript/${{ github.event.pull_request.base.ref }}

services/rum_retention_filters/src/v2/models/RumRetentionFilterUpdateRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client";
33
import { RumRetentionFilterUpdateData } from "./RumRetentionFilterUpdateData";
44

55
/**
6-
* The RUM retention filter body to update.
6+
* The RUM retention filter body to update
77
*/
88
export class RumRetentionFilterUpdateRequest {
99
/**

0 commit comments

Comments
 (0)