Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Add rules to both PR and issue worker

adnan-bhaldarfe73e71c5d77
diff --git a/.github/workflows/label-issue.yml b/.github/workflows/label-issue.yml
index 7a9b3bac..bf236dd3 100644
--- a/.github/workflows/label-issue.yml
+++ b/.github/workflows/label-issue.yml
@@ -23,9 +23,10 @@ jobs:
const title = issue.title.toLowerCase();
const rules = [
+ [/\b(feat|features?)\b/, 'feature'],
[/\b(bug|crash(es|ed)?|error|exception|fail(s|ed|ure)?|broken|freez(e|es)|hang(s)?|not working|doesn'?t work)\b/, 'bug'],
[/\b(feature request|enhancement|improve(ment)?|suggestion|would be nice|please add)\b/, 'enhancement'],
- [/\b(add support|support for|new format|new engine)\b/, 'formats'],
+ [/\b(formats?|add support|support for|new engine)\b/, 'formats'],
[/\b(docs?|documentation|readme|typo)\b/, 'documentation'],
[/\b(translation|translate|localization|localisation|i18n|l10n)\b/, 'translation'],
[/\b(accessibility|a11y|screen reader|high contrast|narrator|nvda)\b/, 'accessibility'],
diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml
index a171f01d..9fb82f46 100644
--- a/.github/workflows/label-pr.yml
+++ b/.github/workflows/label-pr.yml
@@ -30,10 +30,12 @@ jobs:
const pull = context.payload.pull_request;
const title = pull.title.toLowerCase();
const rules = [
- [/^feat(\(.+\))?!?:/, 'feature'],
- [/^fix(\(.+\))?!?:/, 'bug'],
+ [/\b(feat|features?)\b/, 'feature'],
+ [/\bbug\b|^fix(\(.+\))?!?:/, 'bug'],
+ [/\bformats?\b/, 'formats'],
[/^docs(\(.+\))?!?:/, 'documentation'],
- [/^(build|ci)(\(.+\))?!?:/, 'build'],
+ [/^ci(\(.+\))?!?:/, 'ci'],
+ [/^build(\(.+\))?!?:/, 'build'],
[/^(i18n|l10n)(\(.+\))?!?:/, 'translation'],
];
// Only labels the repository has: adding an unknown name would create a new label.