Skip to content

Commit cfd31a4

Browse files
api-clients-generation-pipeline[bot]zippolyteci.datadog-api-spec
authored
Don't create draft PRs for test branches (#479)
* don't post status check on non generated prs * Regenerate client from commit dfe65f1 of spec repo Co-authored-by: Hippolyte HENRY <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 11d260a commit cfd31a4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.4.1.dev8",
7-
"regenerated": "2021-06-09 08:35:00.795833",
8-
"spec_repo_commit": "f570d1e"
7+
"regenerated": "2021-06-10 11:38:39.754263",
8+
"spec_repo_commit": "dfe65f1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-06-09 08:35:22.264753",
13-
"spec_repo_commit": "f570d1e"
12+
"regenerated": "2021-06-10 11:39:01.898656",
13+
"spec_repo_commit": "dfe65f1"
1414
}
1515
}
1616
}

.github/workflows/test_integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Checkout code
4343
uses: actions/checkout@v2
4444
- name: Post pending status check
45-
if: github.event_name == 'pull_request'
45+
if: github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')
4646
uses: actions/[email protected]
4747
with:
4848
github-token: ${{ steps.get_token.outputs.token }}
@@ -71,15 +71,15 @@ jobs:
7171
PYTEST_ADDOPTS: "--ddtrace"
7272
DD_PYTEST_OPERATION_NAME: "test"
7373
- name: Post failure status check
74-
if: failure() && github.event_name == 'pull_request'
74+
if: failure() && github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')
7575
uses: actions/[email protected]
7676
with:
7777
github-token: ${{ steps.get_token.outputs.token }}
7878
script: |
7979
const script = require('./.github/workflows/scripts/test_integration.js')
8080
await script.post_status_check(github, context, "failure")
8181
- name: Post success status check
82-
if: "!failure() && github.event_name == 'pull_request'"
82+
if: "!failure() && github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')"
8383
uses: actions/[email protected]
8484
with:
8585
github-token: ${{ steps.get_token.outputs.token }}

0 commit comments

Comments
 (0)