Giter Club home page Giter Club logo

github-protobuf's Introduction

Github API protobuf

This project contains the protobuf definition files for entities and events in the Github API.

Build Status

Building

You can generate language bindings by running the Makefile with the following targets:

  • protoc-go Go bindings Go
  • protoc-python Python bindings
  • protoc-java Java bindings
  • protoc-js JavaScript bindings NodeJS
  • protoc-ruby Ruby bindings
  • protoc-php PHP bindings

Code will be generated to the build/VERSION/LANGUAGE such as build/1.0.0/go

Testing

You can run make test which will generate go test tests and run against the Go bindings to test Github API events from the documentation.

License

Licensed under the MIT License.

github-protobuf's People

Contributors

jhaynie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

github-protobuf's Issues

non go generated files don't play nice

i have a rough script that i need to integrate into the build that will strip out the gogo library usage for non go files that i need to integrate:

#!/bin/sh

## Make all relative imports inside github package to absolute to allow easier importing into other packages
## Remove GoGo specific stuff for python
## Copy misc testing files

for f in `find build/python/*.proto`; do
    tmpfile=$(mktemp /tmp/ghp.XXXXXX)
    tmpfile2=$(mktemp /tmp/ghp.XXXXXX)
    tmpfile3=$(mktemp /tmp/ghp.XXXXXX)
    tmpfile4=$(mktemp /tmp/ghp.XXXXXX)
    sed -e 's/import "github.com\/jhaynie\/go-github-protobuf\/github\/\([a-z]*\)\.proto"/import "\1.proto"/g' $f > $tmpfile
    sed -e 's/import "github.com\/gogo\/protobuf\/gogoproto\/gogo\.proto";//g' $tmpfile > $tmpfile2
    sed -e 's/option/\/\/options/g' $tmpfile2 > $tmpfile3
    sed -e 's/\[/;\/\/\[/g'  $tmpfile3 > $tmpfile4
    cp $tmpfile4 $f
    rm -rf $tmpfile $tmpfile2 $tmpfile3 $tmpfile4
    cp etc/requirements.txt build/python
    cp etc/test.py build/python
done

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.