Git Product home page Git Product logo

Comments (5)

rcebulko avatar rcebulko commented on May 28, 2024 1

Well...about that...

Currently the bot works by pushing to a cloud repository which is separate from this repo, which I wrote a script to do by copy-pasting from a local amp-github-apps repo to a local amp-owners-bot repo, then pushing. When you run gcloud instances reset (or something like that), it restarts the instance and runs a startup-script which is part of the GCE instance metadata and contains a combination of startup script things (logging, checking out code, installing stuff, starting node under supervisord) along will a bunch of both sensitive and standard env variables. So, GCE settings and env vars are kinda one big blob at the moment. In theory there is a metadata key-value store in GCE settings, but I'm uncertain how easy it is to access these values within the app. The first step will be to move public-safe (ie. not Oauth/API tokens and keys) to a .env file where possible, and strip the massive startup-script into smaller pieces that can be checked into the repo. As that happens, we'll have a better idea of what options are available to us re: configuration.

from amp-github-apps.

rsimha avatar rsimha commented on May 28, 2024

When suggesting reviewers, we should only suggest those in the ampproject/reviewers-amphtml group.

Agree, this should absolutely be the behavior.

The proposed approach sounds good in general. Re: ALLOWED_REVIEWERS_TEAM, are env variables the only means of passing data to a bot instance? Or is there an alternative way to configure an instance via, say, GCE settings?

from amp-github-apps.

rcebulko avatar rcebulko commented on May 28, 2024

Update: Created tracking issue for the configuration/deployment issues #500

from amp-github-apps.

rcebulko avatar rcebulko commented on May 28, 2024

This is implemented; closing

from amp-github-apps.

rsimha avatar rsimha commented on May 28, 2024

Reopening this issue based on a discussion on our team chat. Today, the following statement from the original discussion does not hold true:

When suggesting reviewers, we should only suggest those in the ampproject/reviewers-amphtml group.

Here are some ideas:

  • If possible, suggested reviewer(s) will be selected from the intersection of the set of owners and the set of members of ampproject/reviewers-amphtml.
  • If none of the owners are members of ampproject/reviewers-amphtml, then select an arbitrary owner. It's that owner's responsibility to add a valid reviewer. (this should be rare)

WDYT?

from amp-github-apps.

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.