Comments (4)
@mytrancoinhako, @Mar0xy: As this GitHub Action is written in Go (Golang), handling regular expressions (Regex) requires a bit of extra care. Specifically, you'll need to escape special characters using double backslashes. This is because the backslash in Go strings is an escape character and therefore must be escaped itself.
Here's an example that should work:
- label: "File"
files:
- ".*\\/subfolder\\/.*\\.md"
To clarify this, I've submitted PR (#129) that updates the documentation accordingly.
from labeler.
I am having the same issue and it only happens on the files property
from labeler.
Thanks @philippwaller , a while back I added this note to the docs on this topic, it has a link to https://regex101.com with the golang flavour which is needed to match the behaviour in the action. The tests and docs update made by @philippwaller should make this clearer.
I will close this issue for now but let me know if the issue is solved for you.
from labeler.
Related to/duplicate of #105
from labeler.
Related Issues (20)
- `appendOnly: true` doesn't seem to work HOT 4
- ~~What flavour of regex is being used ?~~ README: add info about using escape character in regexes HOT 3
- `fail_on_error: true` doesn't seem to work HOT 4
- Could a "moving" `v1` tag be added to this repo ? HOT 2
- 1.8.0 release failed HOT 2
- Enhanced label customization HOT 2
- author-can-merge: false does not seem to work HOT 13
- [Feature] Label only if unlabled
- [Feature] Apply labels based on author's team membership HOT 1
- feat: calculate age based on modification date HOT 1
- Docker build failed HOT 4
- Add support for issues HOT 5
- [Feature] Naming labels based on regex capture groups HOT 1
- Ignore files in PR Size condition HOT 3
- Semantic versioning HOT 5
- [Feature] support local config file HOT 2
- Cannot run the action since 1.6.2 release: action.tar.gz not found HOT 4
- [Labeler] job no more working -- Docker build failed with exit code 1 HOT 2
- Avoid referencing `latest` in Dockerfile HOT 2
- label based on name of PR target branch HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labeler.