All Projects → octokit → graphql-action

octokit / graphql-action

Licence: MIT license
A GitHub Action to send queries to GitHub's GraphQL API

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to graphql-action

openapi
GitHub's official OpenAPI spec with Octokit extensions
Stars: ✭ 24 (-65.71%)
Mutual labels:  tooling, octokit-js
plugin-enterprise-server.js
Octokit plugin for GitHub Enterprise REST APIs
Stars: ✭ 17 (-75.71%)
Mutual labels:  octokit-js
Orchard
A fertile ground for Clojure tooling
Stars: ✭ 219 (+212.86%)
Mutual labels:  tooling
auth-app.js
GitHub App authentication for JavaScript
Stars: ✭ 119 (+70%)
Mutual labels:  octokit-js
Go Tooling Workshop
A workshop covering all the tools gophers use in their day to day life
Stars: ✭ 2,683 (+3732.86%)
Mutual labels:  tooling
cljs-tooling
[DEPRECATED] Tooling support for ClojureScript
Stars: ✭ 58 (-17.14%)
Mutual labels:  tooling
Js Refactor
JS Refactoring tool for Visual Studio Code
Stars: ✭ 195 (+178.57%)
Mutual labels:  tooling
covid19-datafetcher
Fetch COVID19 data published by US states.
Stars: ✭ 32 (-54.29%)
Mutual labels:  tooling
covid-data-pipeline
Scan/Trim/Extra Pipeline for State Coronavirus Site
Stars: ✭ 15 (-78.57%)
Mutual labels:  tooling
docker-compose-laravel
A Docker Compose setup for Laravel projects.
Stars: ✭ 23 (-67.14%)
Mutual labels:  tooling
Daxif
A framework for automating a lot of xRM development processses. By using simple F# script commands/files one can save a lot of time and effort during this process by using Delegates DAXIF# library.
Stars: ✭ 37 (-47.14%)
Mutual labels:  tooling
swift-watch
Watches over your Swift project's source
Stars: ✭ 43 (-38.57%)
Mutual labels:  tooling
fliphub
the easiest app builder
Stars: ✭ 30 (-57.14%)
Mutual labels:  tooling
Bootboot
Dualboot your Ruby app made easy
Stars: ✭ 239 (+241.43%)
Mutual labels:  tooling
auth-oauth-app.js
GitHub OAuth App authentication for JavaScript
Stars: ✭ 56 (-20%)
Mutual labels:  octokit-js
Profilinggo
A quick tour (or reminder) of Go performance tools
Stars: ✭ 219 (+212.86%)
Mutual labels:  tooling
storybook-addon-props
React Storybook Addon to show component properties and stories into panels
Stars: ✭ 22 (-68.57%)
Mutual labels:  tooling
analysis-flow
Data Analysis Workflows & Reproducibility Learning Resources
Stars: ✭ 108 (+54.29%)
Mutual labels:  tooling
npmtooling
This is the repository for my course, Tooling with NPM Scripts on LinkedIn Learning and Lynda.com.
Stars: ✭ 13 (-81.43%)
Mutual labels:  tooling
openapi-types.ts
Generated TypeScript definitions based on GitHub's OpenAPI spec
Stars: ✭ 30 (-57.14%)
Mutual labels:  octokit-js

Octokit Request Action

A GitHub Action to send queries to GitHub's GraphQL API

Build Status

Usage

Minimal example

name: Log latest release
on:
  push:
    branches:
      - master

jobs:
  logLatestRelease:
    runs-on: ubuntu-latest
    steps:
      - uses: octokit/[email protected]
        id: get_latest_release
        with:
          query: |
            query release($owner:String!,$repo:String!) {
              repository(owner:$owner,name:$repo) {
                releases(first:1) {
                  nodes {
                    name
                    createdAt
                    tagName
                    description
                  }
                }
              }
            }
          owner: ${{ github.event.repository.owner.name }}
          repo: ${{ github.event.repository.name }}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - run: "echo 'latest release: ${{ steps.get_latest_release.outputs.data }}'"

To access deep values of outputs.data, use fromJSON().

Debugging

To see additional debug logs, create a secret with the name: ACTIONS_STEP_DEBUG and value true.

How it works

octokit/graphql-action is using @octokit/graphql internally with the addition that requests are automatically authenticated using the GITHUB_TOKEN environment variable. It is required to prevent rate limiting, as all anonymous requests from the same origin count against the same low rate.

The actions sets data output to the response data. Note that it is a string, you should use fromJSON() to access any value of the response. The action also sets headers (again, to a JSON string) and status.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].