https://github.com/bradleyfalzon/graphql-mergeable
An example Go application using GitHub's GraphQL API and https://github.com/shurcooL/githubql
https://github.com/bradleyfalzon/graphql-mergeable
github go graphql
Last synced: about 2 months ago
JSON representation
An example Go application using GitHub's GraphQL API and https://github.com/shurcooL/githubql
- Host: GitHub
- URL: https://github.com/bradleyfalzon/graphql-mergeable
- Owner: bradleyfalzon
- License: cc0-1.0
- Created: 2017-07-06T12:11:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T06:14:21.000Z (almost 9 years ago)
- Last Synced: 2025-10-21T20:59:20.418Z (8 months ago)
- Topics: github, go, graphql
- Language: Go
- Size: 1.69 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
`githubql-mergeable` is an example Go application using GitHub's [GraphQL](https://developer.github.com/v4/) API via
Dmitri Shuralyov's ([@shurcool](https://github.com/shurcooL)) [githubql](https://github.com/shurcooL/githubql) library.
It's purpose was to test and illustrate the `githubql` library, it's not designed to be a useful program.
Running `githubql-mergeable` will show you all open GitHub Pull Requests for a user and their mergeable state.
# Running
Fetch the application using go get.
```
go get -u github.com/bradleyfalzon/githubql-mergeable
```
GitHub's GraphQL API requires authentication, the simplest way is to use a [Personal Access
Token](https://github.com/settings/tokens), and setting the environment's `GITHUB_TOKEN` to this value.
```
export GITHUB_TOKEN=aabbcc...ddeeff
```
`githubql-mergeable` then takes the GitHub's user's login as the first and only argument, and it's required.
```
githubql-mergeable bradleyfalzon
```
# Example
```
MERGEABLE | "2017-01-31 00:07:45 +0000 UTC" | "Feed + Folder View / Refreshing (#30)" | https://github.com/bradleyfalzon/hydrocarbon/pull/1
MERGEABLE | "2017-06-23 10:13:55 +0000 UTC" | "Stacktrace the culprit should be the received error not the cause" | https://github.com/evalphobia/logrus_sentry/pull/45
CONFLICTING | "2017-06-30 11:25:41 +0000 UTC" | "lots files" | https://github.com/bf-test/gopherci-dev1/pull/136
```
# License
Licensed under Creative Commons Zero (CC0) license.