Code Monkey home page Code Monkey logo

Comments (6)

fmueller avatar fmueller commented on August 21, 2024 1

Notes were added, Github integration itself is postponed until next quarter. I close this issue for now.

from zally.

fmueller avatar fmueller commented on August 21, 2024

@Nagogus @mkulak Can you add your notes first? Based on this we can write documentation and see what needs to be implemented further.

from zally.

Nagogus avatar Nagogus commented on August 21, 2024

@fmueller first we need to implement authentication interface, so we can get github token. Currently token is hardcoded.

from zally.

netme avatar netme commented on August 21, 2024

Maybe it can be another task then?

from zally.

mkulak avatar mkulak commented on August 21, 2024

Currently GH integration works this way:

  • We registered web-hook in test repo on actions "PR created" and "commit"
  • There is special endpoint /github-hook in GithubController which is called by github on each PR/commit in test repo. (see docs)
  • When callback from GH is received we set status of corresponding PR to pending. Then download content of swagger file from this PR and validate it. If there are MUST violations we set status of this PR to failed (which means that PR cannot be merged). Otherwise we set status to success.

Notes on current implementation:

  • All requests are executed synchronously (set pending -> get content -> set success/failed)
  • User need to setup webhook manually (Zappr does this automatically)
  • In order to access file content we need to get token for this repo. For now it's hardcoded (same thing).
  • Path to swagger file is hardcoded to swagger/swagger.yaml (perhaps there will be option to specify this path in Zally's frontend)
  • Status for PR is called "commit status" in GH parlance.

from zally.

netme avatar netme commented on August 21, 2024

@mkulak thanks for the notes. Also linking to #83, might be helpful.

from zally.

Related Issues (20)

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.