File tree Expand file tree Collapse file tree 4 files changed +86
-58
lines changed
Expand file tree Collapse file tree 4 files changed +86
-58
lines changed Original file line number Diff line number Diff line change 1+ name : Apollo Check
2+ on :
3+ pull_request :
4+ jobs :
5+ build :
6+ runs-on : ubuntu-latest
7+ env :
8+ APOLLO_VCS_BRANCH : ${{ github.head_ref }}
9+ APOLLO_VCS_COMMIT : ${{ github.event.pull_request.head.sha }}
10+ steps :
11+ - uses : actions/checkout@v4
12+ - uses : apollographql-gh-actions/install-rover@v1
13+ - uses : apollographql-gh-actions/rover-subgraph-lint@v1
14+ with :
15+ apollo-key : ${{ secrets.APOLLO_KEY }}
16+ graph-ref : ${{ secrets.APOLLO_GRAPH_REF }}
17+ name : github
18+ schema : ./github.graphql
19+ - uses : apollographql-gh-actions/rover-subgraph-check@v1
20+ with :
21+ apollo-key : ${{ secrets.APOLLO_KEY }}
22+ graph-ref : ${{ secrets.APOLLO_GRAPH_REF }}
23+ name : github
24+ schema : ./github.graphql
Original file line number Diff line number Diff line change 1+ name : Apollo Publish
2+ on :
3+ push :
4+ branches :
5+ - main
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ environment : apollo
10+ steps :
11+ - uses : actions/checkout@v4
12+ - uses : apollographql-gh-actions/install-rover@v1
13+ - uses : apollographql-gh-actions/rover-subgraph-publish@v1
14+ with :
15+ apollo-key : ${{ secrets.APOLLO_KEY }}
16+ graph-ref : ${{ secrets.APOLLO_GRAPH_REF }}
17+ name : github
18+ schema : ./github.graphql
19+ no-url : true
Original file line number Diff line number Diff line change 1+ extend schema
2+ @link (url : " https://specs.apollo.dev/federation/v2.10" , import : ["@key" ])
3+ @link (
4+ url : " https://specs.apollo.dev/connect/v0.1"
5+ import : ["@connect" , " @source" ]
6+ )
7+ @source (
8+ name : " github"
9+ http : {
10+ baseURL : " https://api.github.com"
11+ headers : [
12+ { name : " Accept" , value : " application/vnd.github+json" }
13+ { name : " User-Agent" , value : " {$config.agent}" }
14+ { name : " Authorization" , value : " token {$config.token}" }
15+ ]
16+ }
17+ )
18+
19+ type Query {
20+ "All trees in the leetcode-study repository"
21+ gitTrees : [GitTree ]!
22+ @connect (
23+ source : "github"
24+ # https://docs.github.com/en/rest/git/trees#get-a-tree
25+ http : {
26+ GET : "/repos/DaleStudy/leetcode-study/git/trees/main?recursive=1"
27+ }
28+ selection : """
29+ $.tree {
30+ type
31+ path
32+ }
33+ """
34+ )
35+ }
36+
37+ "A file or directory in the Git repository"
38+ type GitTree {
39+ "The type of the node"
40+ type : String !
41+ "The path of the node"
42+ path : String !
43+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments