Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow regex in repository list #74

Open
vcharan17 opened this issue Feb 6, 2023 · 0 comments
Open

Allow regex in repository list #74

vcharan17 opened this issue Feb 6, 2023 · 0 comments

Comments

@vcharan17
Copy link

vcharan17 commented Feb 6, 2023

Allow specifying a list of full repository names or regex patterns under repository list so that whenever a new repo, with name matching one of the regex patterns, is created in the organization, labels can be automatically synced to that new repo.

Removes the need to keep adding repositories in the action's repository list, whenever new ones are created.

Google's secrets sync action already has this functionality. I would like a similar functionality in this action as well.

For e.g., following structure of the current action:

- uses: micnncim/[email protected]
  with:
    prune: false   # Do not delete existing labels, not present in manifest file.
    manifest: .github/config/sync-labels.yaml
    repository: |
      my-org/repoA
      my-org/repoB
      my-org/repoB
      your-org/repoX
      your-org/repoY
    token: ${{ secrets.PAT }}

should be converted to work as follows, as well:

- uses: micnncim/[email protected]
  with:
    prune: false   # Do not delete existing labels, not present in manifest file.
    manifest: .github/config/sync-labels.yaml
    repository: |
      ^my-org/.*
      ^your-org/.*
    token: ${{ secrets.PAT }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant