Code Monkey home page Code Monkey logo

members's People

Contributors

3imed-jaberi avatar aashimawadhwa avatar akash-tk avatar avidcoder101 avatar ayushrana182 avatar challengehandler avatar cixtor avatar devenes avatar dileep8014 avatar eross220 avatar francesco601 avatar hemantwasthere avatar ihasidul avatar itsfoss0 avatar jayantgoel001 avatar jbampton avatar jhonnylusonode avatar kkweon avatar lamrecognitions avatar larry-neil-1206 avatar lorezi avatar mergify[bot] avatar mobasherah12 avatar msamidev avatar nakatsinho avatar nhanaz avatar phuocantd avatar samuelbarrionuevo avatar trojan0x avatar warriorwizard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

members's Issues

Support remove members

If there is a member in the org that is not found in members.yaml, it should remove the member to make the members.yaml as a single source of truth.

Design Document

I'm using this thread as a design doc.

Based on the doc, there are 2 types of org members (admin and member)
https://developer.github.com/v3/orgs/members/#set-organization-membership-for-a-user

So, I propose members.yaml looking like the following:

# GitHub handle

admins:
- incidrthreat
- sagarc03

members:
- kkweon
- ...

And then set up a GitHub Action on push to master event, it will

  1. Fetch the current list of members (GET /orgs/:org/members)
  2. Compare with the members.yaml
    • Find users who are removed
    • Find users who are added and check whether they are admins or members
    • Find users who have changed the status (admin <-> member)
  3. Make the requests based on the above difference

For the first phase, let's get the binary (main.go) done so that it works manually.
For the second phase, add a GitHub Action to automate the process.

User stories

  • A user can add him/herself by adding the GitHub username
  • A user can remove him/herself by removing the GitHub username
  • A user can switch to owner from members by moving the username

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.