Skip to content

[SetUp] Updated clients base #1392

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
874 changes: 774 additions & 100 deletions .github/renovate.json

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions .github/workflows/ci-GitHubEnterprise-3.13.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "CI: GitHubEnterprise-3.13"
on:
pull_request:
paths:
- ".github/workflows/ci-GitHubEnterprise-3.13.yaml"
- ".github/workflows/generate-GitHubEnterprise-3.13.yaml"
- ".github/workflows/release-management-GitHubEnterprise-3.13.yaml"
- "clients/GitHubEnterprise-3.13/**"
## This workflow needs the `pull-request` permissions to work for the package diffing
## Refs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions
permissions:
pull-requests: write
contents: read
jobs:
ci:
name: Continuous Integration
uses: WyriHaximus/github-workflows/.github/workflows/package.yaml@main
with:
disableMarkdownLinkCheck: true
disableSetMilestone: true
workingDirectory: "clients/GitHubEnterprise-3.13"
21 changes: 21 additions & 0 deletions .github/workflows/ci-GitHubEnterprise-3.14.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "CI: GitHubEnterprise-3.14"
on:
pull_request:
paths:
- ".github/workflows/ci-GitHubEnterprise-3.14.yaml"
- ".github/workflows/generate-GitHubEnterprise-3.14.yaml"
- ".github/workflows/release-management-GitHubEnterprise-3.14.yaml"
- "clients/GitHubEnterprise-3.14/**"
## This workflow needs the `pull-request` permissions to work for the package diffing
## Refs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions
permissions:
pull-requests: write
contents: read
jobs:
ci:
name: Continuous Integration
uses: WyriHaximus/github-workflows/.github/workflows/package.yaml@main
with:
disableMarkdownLinkCheck: true
disableSetMilestone: true
workingDirectory: "clients/GitHubEnterprise-3.14"
21 changes: 21 additions & 0 deletions .github/workflows/ci-GitHubEnterprise-3.15.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "CI: GitHubEnterprise-3.15"
on:
pull_request:
paths:
- ".github/workflows/ci-GitHubEnterprise-3.15.yaml"
- ".github/workflows/generate-GitHubEnterprise-3.15.yaml"
- ".github/workflows/release-management-GitHubEnterprise-3.15.yaml"
- "clients/GitHubEnterprise-3.15/**"
## This workflow needs the `pull-request` permissions to work for the package diffing
## Refs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions
permissions:
pull-requests: write
contents: read
jobs:
ci:
name: Continuous Integration
uses: WyriHaximus/github-workflows/.github/workflows/package.yaml@main
with:
disableMarkdownLinkCheck: true
disableSetMilestone: true
workingDirectory: "clients/GitHubEnterprise-3.15"
8 changes: 4 additions & 4 deletions .github/workflows/generate-GitHub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Generate: GitHub"
on:
workflow_dispatch:
schedule:
- cron: '13 16 * * *'
- cron: '13 19 * * *'
jobs:
supported-versions-matrix:
name: Supported Versions Matrix GitHub
Expand Down Expand Up @@ -41,12 +41,12 @@ jobs:
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "previous=" . md5(file_get_contents("etc/specs/GitHub/previous.spec.yaml")) . "\n", FILE_APPEND);'
- name: Look current up spec version
id: look-current-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHub/current.spec.yaml'
- name: Look previous up spec version
id: look-previous-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHub/previous.spec.yaml'
- name: Generate spec diff
Expand All @@ -64,7 +64,7 @@ jobs:
run: |
make generate-client GitHub
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
branch: "GitHub/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 }}"
token: ${{ secrets.SUBSPLIT_GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/generate-GitHubAE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Generate: GitHubAE"
on:
workflow_dispatch:
schedule:
- cron: '13 18 * * *'
- cron: '13 21 * * *'
jobs:
supported-versions-matrix:
name: Supported Versions Matrix GitHubAE
Expand Down Expand Up @@ -41,12 +41,12 @@ jobs:
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "previous=" . md5(file_get_contents("etc/specs/GitHubAE/previous.spec.yaml")) . "\n", FILE_APPEND);'
- name: Look current up spec version
id: look-current-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHubAE/current.spec.yaml'
- name: Look previous up spec version
id: look-previous-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHubAE/previous.spec.yaml'
- name: Generate spec diff
Expand All @@ -64,7 +64,7 @@ jobs:
run: |
make generate-client GitHubAE
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
branch: "GitHubAE/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 }}"
token: ${{ secrets.SUBSPLIT_GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generate-GitHubEnterprise-3.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "previous=" . md5(file_get_contents("etc/specs/GitHubEnterprise-3.1/previous.spec.yaml")) . "\n", FILE_APPEND);'
- name: Look current up spec version
id: look-current-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.1/current.spec.yaml'
- name: Look previous up spec version
id: look-previous-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.1/previous.spec.yaml'
- name: Generate spec diff
Expand All @@ -64,7 +64,7 @@ jobs:
run: |
make generate-client GitHubEnterprise-3.1
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
branch: "GitHubEnterprise-3.1/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 }}"
token: ${{ secrets.SUBSPLIT_GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generate-GitHubEnterprise-3.10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "previous=" . md5(file_get_contents("etc/specs/GitHubEnterprise-3.10/previous.spec.yaml")) . "\n", FILE_APPEND);'
- name: Look current up spec version
id: look-current-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.10/current.spec.yaml'
- name: Look previous up spec version
id: look-previous-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.10/previous.spec.yaml'
- name: Generate spec diff
Expand All @@ -64,7 +64,7 @@ jobs:
run: |
make generate-client GitHubEnterprise-3.10
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
branch: "GitHubEnterprise-3.10/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 }}"
token: ${{ secrets.SUBSPLIT_GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generate-GitHubEnterprise-3.11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "previous=" . md5(file_get_contents("etc/specs/GitHubEnterprise-3.11/previous.spec.yaml")) . "\n", FILE_APPEND);'
- name: Look current up spec version
id: look-current-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.11/current.spec.yaml'
- name: Look previous up spec version
id: look-previous-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.11/previous.spec.yaml'
- name: Generate spec diff
Expand All @@ -64,7 +64,7 @@ jobs:
run: |
make generate-client GitHubEnterprise-3.11
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
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 }}"
token: ${{ secrets.SUBSPLIT_GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generate-GitHubEnterprise-3.12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "previous=" . md5(file_get_contents("etc/specs/GitHubEnterprise-3.12/previous.spec.yaml")) . "\n", FILE_APPEND);'
- name: Look current up spec version
id: look-current-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.12/current.spec.yaml'
- name: Look previous up spec version
id: look-previous-up-spec-version
uses: mikefarah/yq@v4.43.1
uses: mikefarah/yq@v4.44.3
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.12/previous.spec.yaml'
- name: Generate spec diff
Expand All @@ -64,7 +64,7 @@ jobs:
run: |
make generate-client GitHubEnterprise-3.12
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
branch: "GitHubEnterprise-3.12/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 }}"
token: ${{ secrets.SUBSPLIT_GITHUB_TOKEN }}
Expand Down
81 changes: 81 additions & 0 deletions .github/workflows/generate-GitHubEnterprise-3.13.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: "Generate: GitHubEnterprise-3.13"
on:
workflow_dispatch:
schedule:
- cron: '13 8 * * *'
jobs:
supported-versions-matrix:
name: Supported Versions Matrix GitHubEnterprise-3.13
runs-on: ubuntu-latest
outputs:
version: ${{ steps.supported-versions-matrix.outputs.lowest }}
steps:
- uses: actions/checkout@v4
- id: supported-versions-matrix
uses: WyriHaximus/github-action-composer-php-versions-in-range@v1
with:
workingDirectory: clients/GitHubEnterprise-3.13
generate-githubenterprise-3_13:
name: Generate GitHubEnterprise-3.13
runs-on: ubuntu-latest
needs:
- supported-versions-matrix
container:
image: wyrihaximusnet/php:${{ needs.supported-versions-matrix.outputs.version }}-nts-alpine-slim-dev-root
steps:
- uses: actions/checkout@v4
- uses: ramsey/composer-install@v2
- uses: ramsey/composer-install@v2
with:
working-directory: "clients/GitHubEnterprise-3.13"
- name: Download current spec file
run: |
rm etc/specs/GitHubEnterprise-3.13/previous.spec.yaml || true
mv etc/specs/GitHubEnterprise-3.13/current.spec.yaml etc/specs/GitHubEnterprise-3.13/previous.spec.yaml
curl -o etc/specs/GitHubEnterprise-3.13/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.13/ghes-3.13.yaml
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.13/current.spec.yaml
- name: Hash specs
id: spec-hash
run: |
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "current=" . md5(file_get_contents("etc/specs/GitHubEnterprise-3.13/current.spec.yaml")) . "\n", FILE_APPEND);'
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "previous=" . md5(file_get_contents("etc/specs/GitHubEnterprise-3.13/previous.spec.yaml")) . "\n", FILE_APPEND);'
- name: Look current up spec version
id: look-current-up-spec-version
uses: mikefarah/[email protected]
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.13/current.spec.yaml'
- name: Look previous up spec version
id: look-previous-up-spec-version
uses: mikefarah/[email protected]
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.13/previous.spec.yaml'
- name: Generate spec diff
id: spec-diff
run: |
curl -fsSL https://pb33f.io/openapi-changes/install.sh | sh
echo "Detected Schema changes:" >> "var/detected-schema-changes"
echo "$(openapi-changes summary --markdown --no-color --no-logo etc/specs/GitHubEnterprise-3.13/current.spec.yaml etc/specs/GitHubEnterprise-3.13/previous.spec.yaml)" >> "var/detected-schema-changes"
cat var/detected-schema-changes
delimiter="$(openssl rand -hex 8)"
echo "diff<<${delimiter}" >> "${GITHUB_OUTPUT}"
echo "$(cat var/detected-schema-changes)" >> "${GITHUB_OUTPUT}"
echo "${delimiter}" >> "${GITHUB_OUTPUT}"
- name: Update Client to ${{ steps.look-current-up-spec-version.outputs.result }}
run: |
make generate-client GitHubEnterprise-3.13
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: "GitHubEnterprise-3.13/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 }}"
token: ${{ secrets.SUBSPLIT_GITHUB_TOKEN }}
labels: |
Automated PR
New Version
automerge
Enhancement ✨
GitHubEnterprise-3.13
title: "[GitHubEnterprise-3.13] 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 }}"
body-path: "var/detected-schema-changes"
commit-message: |
[GitHubEnterprise-3.13] 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 }}
${{ steps.spec-diff.outputs.diff }}
81 changes: 81 additions & 0 deletions .github/workflows/generate-GitHubEnterprise-3.14.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: "Generate: GitHubEnterprise-3.14"
on:
workflow_dispatch:
schedule:
- cron: '13 9 * * *'
jobs:
supported-versions-matrix:
name: Supported Versions Matrix GitHubEnterprise-3.14
runs-on: ubuntu-latest
outputs:
version: ${{ steps.supported-versions-matrix.outputs.lowest }}
steps:
- uses: actions/checkout@v4
- id: supported-versions-matrix
uses: WyriHaximus/github-action-composer-php-versions-in-range@v1
with:
workingDirectory: clients/GitHubEnterprise-3.14
generate-githubenterprise-3_14:
name: Generate GitHubEnterprise-3.14
runs-on: ubuntu-latest
needs:
- supported-versions-matrix
container:
image: wyrihaximusnet/php:${{ needs.supported-versions-matrix.outputs.version }}-nts-alpine-slim-dev-root
steps:
- uses: actions/checkout@v4
- uses: ramsey/composer-install@v2
- uses: ramsey/composer-install@v2
with:
working-directory: "clients/GitHubEnterprise-3.14"
- name: Download current spec file
run: |
rm etc/specs/GitHubEnterprise-3.14/previous.spec.yaml || true
mv etc/specs/GitHubEnterprise-3.14/current.spec.yaml etc/specs/GitHubEnterprise-3.14/previous.spec.yaml
curl -o etc/specs/GitHubEnterprise-3.14/current.spec.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/ghes-3.14/ghes-3.14.yaml
php utils/patch-broken-spec-files.php etc/specs/GitHubEnterprise-3.14/current.spec.yaml
- name: Hash specs
id: spec-hash
run: |
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "current=" . md5(file_get_contents("etc/specs/GitHubEnterprise-3.14/current.spec.yaml")) . "\n", FILE_APPEND);'
php -r 'file_put_contents(getenv("GITHUB_OUTPUT"), "previous=" . md5(file_get_contents("etc/specs/GitHubEnterprise-3.14/previous.spec.yaml")) . "\n", FILE_APPEND);'
- name: Look current up spec version
id: look-current-up-spec-version
uses: mikefarah/[email protected]
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.14/current.spec.yaml'
- name: Look previous up spec version
id: look-previous-up-spec-version
uses: mikefarah/[email protected]
with:
cmd: yq '.info.version' 'etc/specs/GitHubEnterprise-3.14/previous.spec.yaml'
- name: Generate spec diff
id: spec-diff
run: |
curl -fsSL https://pb33f.io/openapi-changes/install.sh | sh
echo "Detected Schema changes:" >> "var/detected-schema-changes"
echo "$(openapi-changes summary --markdown --no-color --no-logo etc/specs/GitHubEnterprise-3.14/current.spec.yaml etc/specs/GitHubEnterprise-3.14/previous.spec.yaml)" >> "var/detected-schema-changes"
cat var/detected-schema-changes
delimiter="$(openssl rand -hex 8)"
echo "diff<<${delimiter}" >> "${GITHUB_OUTPUT}"
echo "$(cat var/detected-schema-changes)" >> "${GITHUB_OUTPUT}"
echo "${delimiter}" >> "${GITHUB_OUTPUT}"
- name: Update Client to ${{ steps.look-current-up-spec-version.outputs.result }}
run: |
make generate-client GitHubEnterprise-3.14
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: "GitHubEnterprise-3.14/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 }}"
token: ${{ secrets.SUBSPLIT_GITHUB_TOKEN }}
labels: |
Automated PR
New Version
automerge
Enhancement ✨
GitHubEnterprise-3.14
title: "[GitHubEnterprise-3.14] 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 }}"
body-path: "var/detected-schema-changes"
commit-message: |
[GitHubEnterprise-3.14] 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 }}
${{ steps.spec-diff.outputs.diff }}
Loading
Loading