labeler
labeler copied to clipboard
How to specify a list of simple wildcard globs?
I'm struggling to find the syntax to test a PR against a simple list of wildcard globs. I'd like to label a PR that touches any file that matches *.cpp, *.h, *.py, *.cmd, or *.ps1. How do I format this?
I've tried
Changes - Code:
- '*.cpp'
- '*.h'
- '*.c'
- '*.py'
- '*.cmd'
- '*.ps1'
among several other formats -- none seem to pick up changes I expect.
A few questions:
- How do I write the globs correctly?
- How can I diagnose these failures? Are there debug or verbose options?
- Is there a way to test/iterate locally (rather than push to github)?
Is it possible I need to do something to have the labeler add more than one label at a time? This thing is not operating as expected so I must be doing something awful.
Here is my action:
name: "Pull Request Labeler"
on:
- pull_request_target
jobs:
labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
And I have several label sections like above ^^^.
Hello everyone! This issue has been open for a year without any activity, so I'm going to close it as stale. Please feel free to contact us if the issue is still relevant to you and we will reopen it. Thanks!