mirror of
https://github.com/Lucaslhm/Flipper-IRDB.git
synced 2024-12-24 20:37:08 +00:00
feat: name check
This commit is contained in:
parent
8d6731b541
commit
2eb6275709
72
.fff-ir-lint.json
Normal file
72
.fff-ir-lint.json
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"name-check": {
|
||||||
|
"$path-prefix": "",
|
||||||
|
"$groups": {
|
||||||
|
"power": [
|
||||||
|
"power",
|
||||||
|
"pwr",
|
||||||
|
"/^((power|pwr)[_\\s]*)?(toggle|on|off)$/",
|
||||||
|
"/^(turn[_\\s]*)?(on|off)$/"
|
||||||
|
],
|
||||||
|
"vol_up": [
|
||||||
|
"/^vol(ume)?[_\\s]*(up|[\\^+])$/"
|
||||||
|
],
|
||||||
|
"vol_dn": [
|
||||||
|
"/^vol(ume)?[_\\s]*(d(o?w)?n|[v\\-])$/"
|
||||||
|
],
|
||||||
|
"ch_next": [
|
||||||
|
"/^ch(an(nel)?)?[_\\s]*(up|[\\^+])$/"
|
||||||
|
],
|
||||||
|
"ch_prev": [
|
||||||
|
"/^ch(an(nel)?)?[_\\s]*(d(o?w)?n|[\\v-])$/"
|
||||||
|
],
|
||||||
|
"mute": [
|
||||||
|
"mute",
|
||||||
|
"mte",
|
||||||
|
"/^mute.*$/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"TVs/*": {
|
||||||
|
"Power": [
|
||||||
|
"$group:power",
|
||||||
|
"off",
|
||||||
|
"on"
|
||||||
|
],
|
||||||
|
"Vol_up": [
|
||||||
|
"$group:vol_up"
|
||||||
|
],
|
||||||
|
"Vol_dn": [
|
||||||
|
"$group:vol_dn"
|
||||||
|
],
|
||||||
|
"Ch_next": [
|
||||||
|
"$group:ch_next"
|
||||||
|
],
|
||||||
|
"Ch_prev": [
|
||||||
|
"$group:ch_prev"
|
||||||
|
],
|
||||||
|
"Mute": [
|
||||||
|
"$group:mute"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ACs/*": {
|
||||||
|
"Off": [
|
||||||
|
"off",
|
||||||
|
"/^((power|pwr)[_\\s]*)?off$/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Audio_Receivers/*,SoundBars/*,Speakers/*": {
|
||||||
|
"Power": [
|
||||||
|
"$group:power"
|
||||||
|
],
|
||||||
|
"Vol_up": [
|
||||||
|
"$group:vol_up"
|
||||||
|
],
|
||||||
|
"Vol_dn": [
|
||||||
|
"$group:vol_dn"
|
||||||
|
],
|
||||||
|
"Mute": [
|
||||||
|
"$group:mute"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
.github/workflows/pr-lint.yaml
vendored
3
.github/workflows/pr-lint.yaml
vendored
@ -22,6 +22,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repository: 'darmiel/fff-ir-lint'
|
repository: 'darmiel/fff-ir-lint'
|
||||||
path: fff-ir-lint
|
path: fff-ir-lint
|
||||||
|
ref: 'feat/name-check'
|
||||||
|
|
||||||
# only check files changed in the PR
|
# only check files changed in the PR
|
||||||
- name: Get Changed Files
|
- name: Get Changed Files
|
||||||
@ -44,7 +45,7 @@ jobs:
|
|||||||
id: run
|
id: run
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
run: python fff-ir-lint/main.py github2 file:changed_file_list.txt
|
run: 'LINTER_CONFIG=.fff-ir-lint.json python fff-ir-lint/main.py github2 file:changed_file_list.txt'
|
||||||
|
|
||||||
- uses: ntsd/auto-request-changes-action@v2
|
- uses: ntsd/auto-request-changes-action@v2
|
||||||
name: "Request Changes"
|
name: "Request Changes"
|
||||||
|
Loading…
Reference in New Issue
Block a user