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

Add ability to apply shared configs from another repo #141

Closed
wants to merge 2 commits into from

Conversation

narwold
Copy link

@narwold narwold commented May 7, 2021

We had a use case where we wanted to apply the same label configs to multiple repos so that we could have some cross-cutting concerns across our repos. We stored these configs in our .github repo, but we needed a way to apply them without copy-pasting to all our other repos. This PR adds the ability to apply a shared-configurations option like this:

name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/labeler@main
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
        shared-configurations: '["my-org/my-repo/some-path/shared-preset.yml@branchname", "my-org/my-repo/some-path/another-preset.yml@branchname"]'

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

Successfully merging this pull request may close these issues.

None yet

1 participant