Giter Site home page Giter Site logo

Comments (6)

bradleyfalzon avatar bradleyfalzon commented on September 27, 2024 1

Correct, that's what the go-github PR is for, just working out how to best make https://github.com/bradleyfalzon/gopherci/blob/master/internal/github/handlers.go#L67 a little more generic (move to event method which accepts statuses url, analyser.config and installationID), so a small refactor is needed but I think it's all relatively straight forward.

To begin with, I'll just hit the statuses API and in the near future, we can organise email notifications (and other notifications customisation in general), but the first step is having us check the push request.

from gopherci.

bradleyfalzon avatar bradleyfalzon commented on September 27, 2024

We'll need to also support sending an email notification to the user on failure, but it's not clear to me exactly how to get the user's permission. I presume only members of the user/organisation can push directly to a branch, and in which case I may or may not have access to their private email address.

Discovering email is related to #3

from gopherci.

fortytw2 avatar fortytw2 commented on September 27, 2024

Additionally, gopherCI seems to only build a PR on the first opening of it, not for subsequent commits on the same PR (not sure if I'm misreading this though)

from gopherci.

bradleyfalzon avatar bradleyfalzon commented on September 27, 2024

Yeah and I'm tracking that in #24 it's a really simple fix so will address soon.

from gopherci.

bradleyfalzon avatar bradleyfalzon commented on September 27, 2024

This is now being blocked by google/go-github#533 but I don't think I'll have an implementation before that's merged in anyway.

from gopherci.

dmitshur avatar dmitshur commented on September 27, 2024

Note many people would push to their repository then make a PR, this workflow should ideally not cause GopherCI to run on push and then on PR creation.

Hehe, Travis does that and it's indeed suboptimal. But the fact they haven't resolved it makes me unsure if it's viable to solve it well (maybe it is, maybe it isn't).

Are you planning on using commit statuses to report CI result on pushed commits? I guess so based on google/go-github#533. That's what Travis does too, and I think it'll be great. Just wanted to give the approach a 👍.

from gopherci.

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.