Skip to content

Commit

Permalink
add dropped rebase changes - see #335
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Apr 15, 2024
1 parent 4c50721 commit af04262
Show file tree
Hide file tree
Showing 4 changed files with 382 additions and 26 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/pr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,28 +270,28 @@ jobs:
body: commentBody
});
# compare-graphql-schema:
# needs: [update-schemas]
# runs-on: ubuntu-latest
# permissions:
# pull-requests: write
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: graphql-diff
# - name: Comment schema check result
# uses: actions/github-script@v6
# with:
# script: |
# const diffFmt = s => {
# return "```diff\n" + s + "\n```";
# };
# const commentBody = ${{ needs.update-schemas.outputs.GRAPHQL_STATUS }} == '0'
# ? `No GraphQL schema changes detected.`
# : `GraphQL schema change detected:\n\n${diffFmt(require('fs').readFileSync('${{ needs.update-schemas.outputs.GRAPHQL_DIFF_FILE }}'))}`;
# github.rest.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: commentBody
# });
compare-graphql-schema:
needs: [update-schemas]
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/download-artifact@v3
with:
name: graphql-diff
- name: Comment schema check result
uses: actions/github-script@v6
with:
script: |
const diffFmt = s => {
return "```diff\n" + s + "\n```";
};
const commentBody = ${{ needs.update-schemas.outputs.GRAPHQL_STATUS }} == '0'
? `No GraphQL schema changes detected.`
: `GraphQL schema change detected:\n\n${diffFmt(require('fs').readFileSync('${{ needs.update-schemas.outputs.GRAPHQL_DIFF_FILE }}'))}`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: commentBody
});
52 changes: 52 additions & 0 deletions schema/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ components:
type: integer
downloadUrl:
type: string
jvmId:
type: string
metadata:
$ref: '#/components/schemas/Metadata'
name:
Expand Down Expand Up @@ -382,6 +384,31 @@ paths:
- SecurityScheme: []
tags:
- Recordings
/api/beta/fs/recordings/{jvmId}:
get:
parameters:
- in: path
name: jvmId
required: true
schema:
type: string
responses:
"200":
content:
application/json:
schema:
items:
$ref: '#/components/schemas/ArchivedRecordingDirectory'
type: array
description: OK
"401":
description: Not Authorized
"403":
description: Not Allowed
security:
- SecurityScheme: []
tags:
- Recordings
/api/beta/fs/recordings/{jvmId}/{filename}:
delete:
parameters:
Expand Down Expand Up @@ -1242,6 +1269,31 @@ paths:
description: OK
tags:
- Discovery
/api/v2.2/graphql:
get:
responses:
"200":
description: OK
"401":
description: Not Authorized
"403":
description: Not Allowed
security:
- SecurityScheme: []
tags:
- Graph QL
post:
responses:
"200":
description: OK
"401":
description: Not Authorized
"403":
description: Not Allowed
security:
- SecurityScheme: []
tags:
- Graph QL
/api/v2/rules:
get:
responses:
Expand Down
Loading

0 comments on commit af04262

Please sign in to comment.