| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 84903f5 commit 8472492
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,7 +66,7 @@ jobs: | |||
| 66 | 66 | echo $'\u2705 Test passed' | tee -a $GITHUB_STEP_SUMMARY | |
| 67 | 67 | ||
| 68 | 68 | test-previews: | |
| 69 | - name: 'Integration test: previews option' | ||
| 69 | + name: 'Integration test: GraphQL previews option' | ||
| 70 | 70 | runs-on: ubuntu-latest | |
| 71 | 71 | steps: | |
| 72 | 72 | - uses: actions/checkout@v3 | |
@@ -77,7 +77,7 @@ jobs: | |||
| 77 | 77 | with: | |
| 78 | 78 | script: | | |
| 79 | 79 | const endpoint = github.request.endpoint | |
| 80 | - return endpoint({}).headers.accept | ||
| 80 | + return endpoint({url: \"/graphql\"}).headers.accept | ||
| 81 | 81 | result-encoding: string | |
| 82 | 82 | - id: previews-set-single | |
| 83 | 83 | name: Previews set to a single value | |
@@ -86,7 +86,7 @@ jobs: | |||
| 86 | 86 | previews: foo | |
| 87 | 87 | script: | | |
| 88 | 88 | const endpoint = github.request.endpoint | |
| 89 | - return endpoint({}).headers.accept | ||
| 89 | + return endpoint({url: \"/graphql\"}).headers.accept | ||
| 90 | 90 | result-encoding: string | |
| 91 | 91 | - id: previews-set-multiple | |
| 92 | 92 | name: Previews set to comma-separated list | |
@@ -95,7 +95,7 @@ jobs: | |||
| 95 | 95 | previews: foo,bar,baz | |
| 96 | 96 | script: | | |
| 97 | 97 | const endpoint = github.request.endpoint | |
| 98 | - return endpoint({}).headers.accept | ||
| 98 | + return endpoint({url: \"/graphql\"}).headers.accept | ||
| 99 | 99 | result-encoding: string | |
| 100 | 100 | - run: | | |
| 101 | 101 | echo "- Validating previews default" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,6 +39,8 @@ Version 7 of this action updated the runtime to Node 20 - https://docs.github.co | |||
| 39 | 39 | ||
| 40 | 40 | All scripts are now run with Node 20 instead of Node 16 and are affected by any breaking changes between Node 16 and 20 | |
| 41 | 41 | ||
| 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 | + | ||
| 42 | 44 | ### V6 | |
| 43 | 45 | ||
| 44 | 46 | 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 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ inputs: | |||
| 19 | 19 | description: An optional user-agent string | |
| 20 | 20 | default: actions/github-script | |
| 21 | 21 | previews: | |
| 22 | - description: A comma-separated list of API previews to accept | ||
| 22 | + description: A comma-separated list of GraphQL API previews to accept | ||
| 23 | 23 | result-encoding: | |
| 24 | 24 | description: Either "string" or "json" (default "json")—how the result will be encoded | |
| 25 | 25 | default: json | |
| Back | FazBrowse Home | New Git URL |
0 commit comments