Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8472492

Browse filesBrowse files
committed
Only validate GraphQL previews
1 parent 84903f5 commit 8472492
Copy full SHA for 8472492

File tree

3 files changed

+7
-5
lines changed
Filter options

3 files changed

+7
-5
lines changed

‎.github/workflows/integration.yml

Copy file name to clipboardExpand all lines: .github/workflows/integration.yml
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
echo $'\u2705 Test passed' | tee -a $GITHUB_STEP_SUMMARY
6767
6868
test-previews:
69-
name: 'Integration test: previews option'
69+
name: 'Integration test: GraphQL previews option'
7070
runs-on: ubuntu-latest
7171
steps:
7272
- uses: actions/checkout@v3
@@ -77,7 +77,7 @@ jobs:
7777
with:
7878
script: |
7979
const endpoint = github.request.endpoint
80-
return endpoint({}).headers.accept
80+
return endpoint({url: \"/graphql\"}).headers.accept
8181
result-encoding: string
8282
- id: previews-set-single
8383
name: Previews set to a single value
@@ -86,7 +86,7 @@ jobs:
8686
previews: foo
8787
script: |
8888
const endpoint = github.request.endpoint
89-
return endpoint({}).headers.accept
89+
return endpoint({url: \"/graphql\"}).headers.accept
9090
result-encoding: string
9191
- id: previews-set-multiple
9292
name: Previews set to comma-separated list
@@ -95,7 +95,7 @@ jobs:
9595
previews: foo,bar,baz
9696
script: |
9797
const endpoint = github.request.endpoint
98-
return endpoint({}).headers.accept
98+
return endpoint({url: \"/graphql\"}).headers.accept
9999
result-encoding: string
100100
- run: |
101101
echo "- Validating previews default"

‎README.md

Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Version 7 of this action updated the runtime to Node 20 - https://docs.github.co
3939

4040
All scripts are now run with Node 20 instead of Node 16 and are affected by any breaking changes between Node 16 and 20
4141

42+
The `previews` input now only applies to GraphQL API calls as REST API previews are no longer necessary - https://github.blog/changelog/2021-10-14-rest-api-preview-promotions/.
43+
4244
### V6
4345

4446
Version 6 of this action updated the runtime to Node 16 - https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions

‎action.yml

Copy file name to clipboardExpand all lines: action.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ inputs:
1919
description: An optional user-agent string
2020
default: actions/github-script
2121
previews:
22-
description: A comma-separated list of API previews to accept
22+
description: A comma-separated list of GraphQL API previews to accept
2323
result-encoding:
2424
description: Either "string" or "json" (default "json")—how the result will be encoded
2525
default: json

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.