GithubHelp home page GithubHelp logo

dfranc-d / ansys-all-members Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ansys/ansys-all-members

0.0 0.0 0.0 29 KB

Repository for updating the ansys/all-members team automatically

License: MIT License

Python 100.00%

ansys-all-members's Introduction

Ansys all-members team

Ansys Python Team Update MIT Black

Repository for updating the ansys/all-members team automatically.

Table of contents

Introduction

GitHub organizations do not provide an off-the-shelf capability of creating and maintaining up-to-date an all-members team. The goal of the update_team.py script in this repository is to:

  • Provided an org and an all-members team (i.e. @<MY_ORG>/all-members), update its members on the execution of this script.
  • Provide the capability to automate the update of the members using GitHub Actions.

Feel free to fork this repository for your own application. You are also welcome to help contribute to it in any possible way! Please submit an issue with any proposal you may have.

How does it work?

This repository basically contains a simple Python script update_team.py. Within this script, there are two main variables which a user must take into account:

  • MY_PAT: this variable will basically include your personal authentication token in order to interact with GitHub (using PyGitHub). You can also make use of the automated mechanism, by which the script will search for an environment variable named TOKEN which should contain your PAT.
  • MY_ORG: the organization whose team all-members we want to update.

In order to run it, simply modify these values and run:

    python update_team.py

Bear in mind that this specific version of the script has already set up the MY_ORG variable to ansys, since it is the organization for which this repository is oriented.

Furthermore, this repository has a GitHub Actions workflow to automate the update of the team members on a regular basis (since it has an on.schedule argument). If you want to make use of this capability take into account that a PAT must be stored as a repository secret. Check the workflow file for further details.

Requirements

In order to run the previous script, one only needs to install pygithub. In order to ease the user its installation, we have created a requirements file: requirements.txt. You can install the latest version of the package by doing as follows with the pip package manager:

    pip install -r requirements.txt

ansys-all-members's People

Contributors

robpasmue avatar dependabot[bot] avatar akaszynski avatar

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.