Skip to content

Commit 5aa0386

Browse files
authored
[SetUp] Updated clients base
1 parent 0587c73 commit 5aa0386

30 files changed

+229481
-11
lines changed

.github/renovate.json

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,124 @@
655655
],
656656
"enabled": false
657657
},
658+
{
659+
"matchFileNames": [
660+
"clients/GitHubEnterprise-3.11/composer.json"
661+
],
662+
"branchPrefix": "renovate/GitHubEnterprise-3.11/php/",
663+
"commitMessagePrefix": "[GitHubEnterprise-3.11]",
664+
"labels": [
665+
"GitHubEnterprise-3.11"
666+
],
667+
"extends": [
668+
"github>wyrihaximus/renovate-config//composer/do-not-update-php"
669+
]
670+
},
671+
{
672+
"matchFileNames": [
673+
"clients/GitHubEnterprise-3.11/composer.json"
674+
],
675+
"branchPrefix": "renovate/GitHubEnterprise-3.11/php/",
676+
"commitMessagePrefix": "[GitHubEnterprise-3.11]",
677+
"labels": [
678+
"GitHubEnterprise-3.11"
679+
],
680+
"extends": [
681+
"github>wyrihaximus/renovate-config//composer/in-range"
682+
]
683+
},
684+
{
685+
"matchFileNames": [
686+
"clients/GitHubEnterprise-3.11/composer.json"
687+
],
688+
"branchPrefix": "renovate/GitHubEnterprise-3.11/php/",
689+
"commitMessagePrefix": "[GitHubEnterprise-3.11]",
690+
"labels": [
691+
"GitHubEnterprise-3.11"
692+
],
693+
"extends": [
694+
"github>wyrihaximus/renovate-config//composer/infection"
695+
]
696+
},
697+
{
698+
"matchFileNames": [
699+
"clients/GitHubEnterprise-3.11/composer.json"
700+
],
701+
"branchPrefix": "renovate/GitHubEnterprise-3.11/php/",
702+
"commitMessagePrefix": "[GitHubEnterprise-3.11]",
703+
"labels": [
704+
"GitHubEnterprise-3.11"
705+
],
706+
"extends": [
707+
"github>wyrihaximus/renovate-config//composer/php"
708+
]
709+
},
710+
{
711+
"matchFileNames": [
712+
"clients/GitHubEnterprise-3.11/composer.json"
713+
],
714+
"branchPrefix": "renovate/GitHubEnterprise-3.11/php/",
715+
"commitMessagePrefix": "[GitHubEnterprise-3.11]",
716+
"labels": [
717+
"GitHubEnterprise-3.11"
718+
],
719+
"extends": [
720+
"github>wyrihaximus/renovate-config//composer/phpunit"
721+
]
722+
},
723+
{
724+
"matchFileNames": [
725+
"clients/GitHubEnterprise-3.11/composer.json"
726+
],
727+
"branchPrefix": "renovate/GitHubEnterprise-3.11/php/",
728+
"commitMessagePrefix": "[GitHubEnterprise-3.11]",
729+
"labels": [
730+
"GitHubEnterprise-3.11"
731+
],
732+
"extends": [
733+
"github>wyrihaximus/renovate-config//composer/psr"
734+
]
735+
},
736+
{
737+
"matchFileNames": [
738+
"clients/GitHubEnterprise-3.11/composer.json"
739+
],
740+
"branchPrefix": "renovate/GitHubEnterprise-3.11/php/",
741+
"commitMessagePrefix": "[GitHubEnterprise-3.11]",
742+
"labels": [
743+
"GitHubEnterprise-3.11"
744+
],
745+
"extends": [
746+
"github>wyrihaximus/renovate-config//composer/react"
747+
]
748+
},
749+
{
750+
"matchFileNames": [
751+
"clients/GitHubEnterprise-3.11/composer.json"
752+
],
753+
"branchPrefix": "renovate/GitHubEnterprise-3.11/php/",
754+
"commitMessagePrefix": "[GitHubEnterprise-3.11]",
755+
"labels": [
756+
"GitHubEnterprise-3.11"
757+
],
758+
"extends": [
759+
"github>wyrihaximus/renovate-config//composer/widen"
760+
]
761+
},
762+
{
763+
"matchManagers": [
764+
"github-actions"
765+
],
766+
"matchFileNames": [
767+
".github/workflows/**GitHubEnterprise-3.11.yaml"
768+
],
769+
"branchPrefix": "renovate/GitHubEnterprise-3.11/github-actions/",
770+
"commitMessagePrefix": "[GitHubEnterprise-3.11]",
771+
"labels": [
772+
"GitHubEnterprise-3.11"
773+
],
774+
"enabled": false
775+
},
658776
{
659777
"matchFileNames": [
660778
"clients/GitHubEnterprise-3.2/composer.json"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "CI: GitHubEnterprise-3.11"
2+
on:
3+
pull_request:
4+
paths:
5+
- ".github/workflows/ci-GitHubEnterprise-3.11.yaml"
6+
- ".github/workflows/generate-GitHubEnterprise-3.11.yaml"
7+
- ".github/workflows/release-management-GitHubEnterprise-3.11.yaml"
8+
- "clients/GitHubEnterprise-3.11/**"
9+
## This workflow needs the `pull-request` permissions to work for the package diffing
10+
## Refs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions
11+
permissions:
12+
pull-requests: write
13+
contents: read
14+
jobs:
15+
ci:
16+
name: Continuous Integration
17+
uses: WyriHaximus/github-workflows/.github/workflows/package.yaml@main
18+
with:
19+
disableMarkdownLinkCheck: true
20+
disableSetMilestone: true
21+
workingDirectory: "clients/GitHubEnterprise-3.11"

.github/workflows/generate-GitHub.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Generate: GitHub"
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '13 14 * * *'
5+
- cron: '13 15 * * *'
66
jobs:
77
supported-versions-matrix:
88
name: Supported Versions Matrix GitHub

.github/workflows/generate-GitHubAE.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Generate: GitHubAE"
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '13 16 * * *'
5+
- cron: '13 17 * * *'
66
jobs:
77
supported-versions-matrix:
88
name: Supported Versions Matrix GitHubAE
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: "Generate: GitHubEnterprise-3.11"
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '13 6 * * *'
6+
jobs:
7+
supported-versions-matrix:
8+
name: Supported Versions Matrix GitHubEnterprise-3.11
9+
runs-on: ubuntu-latest
10+
outputs:
11+
version: ${{ steps.supported-versions-matrix.outputs.lowest }}
12+
steps:
13+
- uses: actions/checkout@v4
14+
- id: supported-versions-matrix
15+
uses: WyriHaximus/github-action-composer-php-versions-in-range@v1
16+
with:
17+
workingDirectory: clients/GitHubEnterprise-3.11
18+
generate-githubenterprise-3_11:
19+
name: Generate GitHubEnterprise-3.11
20+
runs-on: ubuntu-latest
21+
needs:
22+
- supported-versions-matrix
23+
container:
24+
image: wyrihaximusnet/php:${{ needs.supported-versions-matrix.outputs.version }}-nts-alpine-slim-dev-root
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: ramsey/composer-install@v2
28+
- uses: ramsey/composer-install@v2
29+
with:
30+
working-directory: "clients/GitHubEnterprise-3.11"
31+
- name: Download current spec file
32+
run: |
33+
rm etc/specs/GitHubEnterprise-3.11/previous.spec.yaml || true
34+
mv etc/specs/GitHubEnterprise-3.11/current.spec.yaml etc/specs/GitHubEnterprise-3.11/previous.spec.yaml
35+
curl -o etc/specs/GitHubEnterprise-3.11/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.11/ghes-3.11.yaml
36+
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.11/current.spec.yaml
37+
- name: Hash specs
38+
id: spec-hash
39+
run: |
40+
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "current=" . md5(file_get_contents("etc/specs/GitHubEnterprise-3.11/current.spec.yaml")) . "\n", FILE_APPEND);'
41+
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "previous=" . md5(file_get_contents("etc/specs/GitHubEnterprise-3.11/previous.spec.yaml")) . "\n", FILE_APPEND);'
42+
- name: Look current up spec version
43+
id: look-current-up-spec-version
44+
uses: mikefarah/[email protected]
45+
with:
46+
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.11/current.spec.yaml'
47+
- name: Look previous up spec version
48+
id: look-previous-up-spec-version
49+
uses: mikefarah/[email protected]
50+
with:
51+
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.11/previous.spec.yaml'
52+
- name: Generate spec diff
53+
id: spec-diff
54+
run: |
55+
curl -fsSL https://pb33f.io/openapi-changes/install.sh | sh
56+
echo "Detected Schema changes:" >> "var/detected-schema-changes"
57+
echo "$(openapi-changes summary --no-color --no-logo etc/specs/GitHubEnterprise-3.11/current.spec.yaml etc/specs/GitHubEnterprise-3.11/previous.spec.yaml)" >> "var/detected-schema-changes"
58+
cat var/detected-schema-changes
59+
delimiter="$(openssl rand -hex 8)"
60+
echo "diff<<${delimiter}" >> "${GITHUB_OUTPUT}"
61+
echo "$(cat var/detected-schema-changes)" >> "${GITHUB_OUTPUT}"
62+
echo "${delimiter}" >> "${GITHUB_OUTPUT}"
63+
- name: Update Client to ${{ steps.look-current-up-spec-version.outputs.result }}
64+
run: |
65+
make generate-client GitHubEnterprise-3.11
66+
- name: Create Pull Request
67+
uses: peter-evans/create-pull-request@v5
68+
with:
69+
branch: "GitHubEnterprise-3.11/from-${{ steps.look-current-up-spec-version.outputs.result }}-${{ steps.spec-hash.outputs.current }}-from-${{ steps.look-previous-up-spec-version.outputs.result }}-${{ steps.spec-hash.outputs.current }}"
70+
token: ${{ secrets.SUBSPLIT_GITHUB_TOKEN }}
71+
labels: |
72+
Automated PR
73+
New Version
74+
automerge
75+
Enhancement ✨
76+
GitHubEnterprise-3.11
77+
title: "[GitHubEnterprise-3.11] Update to ${{ steps.look-current-up-spec-version.outputs.result }}-${{ steps.spec-hash.outputs.current }} from ${{ steps.look-previous-up-spec-version.outputs.result }}-${{ steps.spec-hash.outputs.previous }}"
78+
body-path: "var/detected-schema-changes"
79+
commit-message: |
80+
[GitHubEnterprise-3.11] Update to ${{ steps.look-current-up-spec-version.outputs.result }}-${{ steps.spec-hash.outputs.current }} from ${{ steps.look-previous-up-spec-version.outputs.result }}-${{ steps.spec-hash.outputs.previous }}
81+
${{ steps.spec-diff.outputs.diff }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Generate: GitHubEnterprise-3.2"
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '13 6 * * *'
5+
- cron: '13 7 * * *'
66
jobs:
77
supported-versions-matrix:
88
name: Supported Versions Matrix GitHubEnterprise-3.2

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Generate: GitHubEnterprise-3.3"
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '13 7 * * *'
5+
- cron: '13 8 * * *'
66
jobs:
77
supported-versions-matrix:
88
name: Supported Versions Matrix GitHubEnterprise-3.3

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Generate: GitHubEnterprise-3.4"
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '13 8 * * *'
5+
- cron: '13 9 * * *'
66
jobs:
77
supported-versions-matrix:
88
name: Supported Versions Matrix GitHubEnterprise-3.4

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Generate: GitHubEnterprise-3.5"
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '13 9 * * *'
5+
- cron: '13 10 * * *'
66
jobs:
77
supported-versions-matrix:
88
name: Supported Versions Matrix GitHubEnterprise-3.5

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Generate: GitHubEnterprise-3.6"
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '13 10 * * *'
5+
- cron: '13 11 * * *'
66
jobs:
77
supported-versions-matrix:
88
name: Supported Versions Matrix GitHubEnterprise-3.6

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Generate: GitHubEnterprise-3.7"
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '13 11 * * *'
5+
- cron: '13 12 * * *'
66
jobs:
77
supported-versions-matrix:
88
name: Supported Versions Matrix GitHubEnterprise-3.7

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Generate: GitHubEnterprise-3.8"
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '13 12 * * *'
5+
- cron: '13 13 * * *'
66
jobs:
77
supported-versions-matrix:
88
name: Supported Versions Matrix GitHubEnterprise-3.8

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Generate: GitHubEnterprise-3.9"
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '13 13 * * *'
5+
- cron: '13 14 * * *'
66
jobs:
77
supported-versions-matrix:
88
name: Supported Versions Matrix GitHubEnterprise-3.9

.github/workflows/generate-GitHubEnterpriseCloud.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Generate: GitHubEnterpriseCloud"
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '13 15 * * *'
5+
- cron: '13 16 * * *'
66
jobs:
77
supported-versions-matrix:
88
name: Supported Versions Matrix GitHubEnterpriseCloud
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Release Management: GitHubEnterprise-3.11"
2+
on:
3+
pull_request:
4+
paths:
5+
- ".github/workflows/ci-GitHubEnterprise-3.11.yaml"
6+
- ".github/workflows/generate-GitHubEnterprise-3.11.yaml"
7+
- ".github/workflows/release-management-GitHubEnterprise-3.11.yaml"
8+
- "clients/GitHubEnterprise-3.11/**"
9+
types:
10+
- opened
11+
- labeled
12+
- unlabeled
13+
- synchronize
14+
- reopened
15+
permissions:
16+
contents: write
17+
issues: write
18+
pull-requests: write
19+
jobs:
20+
release-managment:
21+
name: Release Management
22+
uses: WyriHaximus/github-workflows/.github/workflows/package-release-managment.yaml@main
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.json]
11+
indent_size = 2
12+
13+
[*.yml]
14+
indent_size = 2
15+
16+
[*.yaml]
17+
indent_size = 2
18+
19+
[Makefile]
20+
indent_style = tab
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Ignoring files for distribution archieves
2+
.github/ export-ignore
3+
etc/ export-ignore
4+
tests/ export-ignore
5+
var/ export-ignore
6+
.editorconfig export-ignore
7+
.gitattributes export-ignore
8+
.gitignore export-ignore
9+
CONTRIBUTING.md export-ignore
10+
composer.lock export-ignore
11+
infection.json.dist export-ignore
12+
Makefile export-ignore
13+
phpunit.xml.dist export-ignore
14+
README.md export-ignore
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var/
2+
vendor/
3+
etc/qa/.phpunit.result.cache

0 commit comments

Comments
 (0)