github / safe-settings

ISC License
561 stars 137 forks source link

Add glob matching to include/exclude in diffable #622

Open avelizmu opened 2 months ago

avelizmu commented 2 months ago

Enable glob patterns in include/exclude attribute in diffable rather than just static matching.

Example with a glob for adding a team to a subsection of a suborg

suborgrepos:
  - 'myteam-*'

teams:
  - name: Myteam-admins
    permission: admin
  - name: Myteam-developers
    permission: push
  - name: Other-team
    permission: push
    include:
      - '*-config'

So that the Myteam teams can have access to all the myteam-* repos, and Other-team can have access to the myteam-*-config repos