Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Some help appreciated #36

Open
Andre601 opened this issue Jun 1, 2020 · 1 comment
Open

Some help appreciated #36

Andre601 opened this issue Jun 1, 2020 · 1 comment

Comments

@Andre601
Copy link

Andre601 commented Jun 1, 2020

I want to use this action to automatically label PRs for translations in my project.

The only - and for me most difficult - question I have is, what pattern I would need to use in order to only apply the label when the PR is towards those translations.
The translations always go towards json files located under src/resources/lang, the src/resources folder however also contains other json files for configuration settings and similar, so this should be ignored.

I'm not a pro at regex so Idk what would be a good pattern to cover the above requirements/rules.

@rdelgatte
Copy link
Contributor

Do you have filenames as example?
So far, this action only applies over filenames without any clue about their paths so if you have something like:

src/resources/lang/translations-en_GB.json
src/resources/lang/translations-fr_FR.json
src/resources/configuration.json

I guess you can still apply this kind of regex translations-[a-z]{2}_[A-Z]{2}.json to fetch all translations files inside lang subdirectory.

Notice that if you have a file anywhere-else/translations-en_GB.json it will also be fetched with such regex.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants