Skip to content

Commit dda1500

Browse files
authoredJul 4, 2023
Merge pull request #345 from php-api-clients/patch-broken-spec-files
Temporary patch broken spec files after download until github/rest-api-description#2609 has been resolved
2 parents efce7d9 + 1f26fa3 commit dda1500

15 files changed

+33
-0
lines changed
 

‎.github/workflows/generate-GitHub.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHub/previous.spec.yaml || true
1919
mv etc/specs/GitHub/current.spec.yaml etc/specs/GitHub/previous.spec.yaml
2020
curl -o etc/specs/GitHub/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHub/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubAE.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubAE/previous.spec.yaml || true
1919
mv etc/specs/GitHubAE/current.spec.yaml etc/specs/GitHubAE/previous.spec.yaml
2020
curl -o etc/specs/GitHubAE/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/github.ae/github.ae.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubAE/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubEnterprise-3.0.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubEnterprise-3.0/previous.spec.yaml || true
1919
mv etc/specs/GitHubEnterprise-3.0/current.spec.yaml etc/specs/GitHubEnterprise-3.0/previous.spec.yaml
2020
curl -o etc/specs/GitHubEnterprise-3.0/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.0/ghes-3.0.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.0/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubEnterprise-3.1.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubEnterprise-3.1/previous.spec.yaml || true
1919
mv etc/specs/GitHubEnterprise-3.1/current.spec.yaml etc/specs/GitHubEnterprise-3.1/previous.spec.yaml
2020
curl -o etc/specs/GitHubEnterprise-3.1/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.1/ghes-3.1.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.1/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubEnterprise-3.2.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubEnterprise-3.2/previous.spec.yaml || true
1919
mv etc/specs/GitHubEnterprise-3.2/current.spec.yaml etc/specs/GitHubEnterprise-3.2/previous.spec.yaml
2020
curl -o etc/specs/GitHubEnterprise-3.2/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.2/ghes-3.2.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.2/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubEnterprise-3.3.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubEnterprise-3.3/previous.spec.yaml || true
1919
mv etc/specs/GitHubEnterprise-3.3/current.spec.yaml etc/specs/GitHubEnterprise-3.3/previous.spec.yaml
2020
curl -o etc/specs/GitHubEnterprise-3.3/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.3/ghes-3.3.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.3/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubEnterprise-3.4.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubEnterprise-3.4/previous.spec.yaml || true
1919
mv etc/specs/GitHubEnterprise-3.4/current.spec.yaml etc/specs/GitHubEnterprise-3.4/previous.spec.yaml
2020
curl -o etc/specs/GitHubEnterprise-3.4/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.4/ghes-3.4.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.4/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubEnterprise-3.5.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubEnterprise-3.5/previous.spec.yaml || true
1919
mv etc/specs/GitHubEnterprise-3.5/current.spec.yaml etc/specs/GitHubEnterprise-3.5/previous.spec.yaml
2020
curl -o etc/specs/GitHubEnterprise-3.5/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.5/ghes-3.5.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.5/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubEnterprise-3.6.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubEnterprise-3.6/previous.spec.yaml || true
1919
mv etc/specs/GitHubEnterprise-3.6/current.spec.yaml etc/specs/GitHubEnterprise-3.6/previous.spec.yaml
2020
curl -o etc/specs/GitHubEnterprise-3.6/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.6/ghes-3.6.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.6/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubEnterprise-3.7.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubEnterprise-3.7/previous.spec.yaml || true
1919
mv etc/specs/GitHubEnterprise-3.7/current.spec.yaml etc/specs/GitHubEnterprise-3.7/previous.spec.yaml
2020
curl -o etc/specs/GitHubEnterprise-3.7/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.7/ghes-3.7.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.7/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubEnterprise-3.8.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubEnterprise-3.8/previous.spec.yaml || true
1919
mv etc/specs/GitHubEnterprise-3.8/current.spec.yaml etc/specs/GitHubEnterprise-3.8/previous.spec.yaml
2020
curl -o etc/specs/GitHubEnterprise-3.8/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.8/ghes-3.8.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.8/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubEnterprise-3.9.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubEnterprise-3.9/previous.spec.yaml || true
1919
mv etc/specs/GitHubEnterprise-3.9/current.spec.yaml etc/specs/GitHubEnterprise-3.9/previous.spec.yaml
2020
curl -o etc/specs/GitHubEnterprise-3.9/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.9/ghes-3.9.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.9/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎.github/workflows/generate-GitHubEnterpriseCloud.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/GitHubEnterpriseCloud/previous.spec.yaml || true
1919
mv etc/specs/GitHubEnterpriseCloud/current.spec.yaml etc/specs/GitHubEnterpriseCloud/previous.spec.yaml
2020
curl -o etc/specs/GitHubEnterpriseCloud/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghec/ghec.yaml
21+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterpriseCloud/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎etc/workflow-skeleton/generate-{{ path }}.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
rm etc/specs/{{ path }}/previous.spec.yaml || true
1919
mv etc/specs/{{ path }}/current.spec.yaml etc/specs/{{ path }}/previous.spec.yaml
2020
curl -o etc/specs/{{ path }}/current.spec.yaml {{ specUrl }}
21+
php utils/patch-broken-spec-files.php etc/specs/{{ path }}/current.spec.yaml
2122
- name: Hash specs
2223
id: spec-hash
2324
run: |

‎utils/patch-broken-spec-files.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
file_put_contents(
4+
$argv[1],
5+
str_replace(
6+
[
7+
" description: 'A group of pull requests that the merge queue has grouped together
8+
to be merged.
9+
10+
'"
11+
],
12+
[
13+
" description: 'A group of pull requests that the merge queue has grouped together to be merged.'"
14+
],
15+
file_get_contents(
16+
$argv[1],
17+
),
18+
),
19+
);

0 commit comments

Comments
 (0)