Skip to content

Commit

Permalink
bump lint to node 20.x, add ZFW to policy
Browse files Browse the repository at this point in the history
  • Loading branch information
dhawton committed Dec 11, 2023
1 parent 84f9c59 commit a84b3c8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/[email protected]
Expand Down
60 changes: 40 additions & 20 deletions .policy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
policy:
approval:
- or:
- has auto-merge label
- and:
- or:
- the maintainers-frontend team has approved
- or:
- has auto-merge label
- and:
- or:
- the maintainers-frontend team has approved
- the HCF team has approved
- the ZAN team has approved
- the ZDV team has approved
- the ZLC team has approved
- the ZFW team has approved
- an admin has approved
- the HCF team has approved
- the ZAN team has approved
- the ZDV team has approved
- the ZLC team has approved

approval_rules:
- name: the maintainers-frontend team has approved
Expand All @@ -24,7 +25,7 @@ approval_rules:
requires:
count: 1
teams:
- "adh-partnership/maintainers-frontend"
- "adh-partnership/maintainers-frontend"
- name: the HCF team has approved
if:
changed_files:
Expand All @@ -42,8 +43,8 @@ approval_rules:
requires:
count: 1
teams:
- "adh-partnership/hcf"
- "adh-partnership/maintainers-frontend"
- "adh-partnership/hcf"
- "adh-partnership/maintainers-frontend"
- name: the ZAN team has approved
if:
changed_files:
Expand All @@ -61,8 +62,8 @@ approval_rules:
requires:
count: 1
teams:
- "adh-partnership/zan"
- "adh-partnership/maintainers-frontend"
- "adh-partnership/zan"
- "adh-partnership/maintainers-frontend"
- name: the ZDV team has approved
if:
changed_files:
Expand All @@ -80,8 +81,8 @@ approval_rules:
requires:
count: 1
teams:
- "adh-partnership/zdv"
- "adh-partnership/maintainers-frontend"
- "adh-partnership/zdv"
- "adh-partnership/maintainers-frontend"
- name: the ZLC team has approved
if:
changed_files:
Expand All @@ -99,8 +100,27 @@ approval_rules:
requires:
count: 1
teams:
- "adh-partnership/zlc"
- "adh-partnership/maintainers-frontend"
- "adh-partnership/zlc"
- "adh-partnership/maintainers-frontend"
- name: the ZFW team has approved
if:
changed_files:
paths:
- "src/facilities/zfw/.*"
- "src/facility-zfw.ts"
options:
request_review:
enabled: true
mode: teams
methods:
comments:
- "LGTM"
- "/lgtm"
requires:
count: 1
teams:
- "adh-partnership/zfw"
- "adh-partnership/maintainers-frontend"
- name: an admin has approved
options:
allow_author: true
Expand All @@ -112,10 +132,10 @@ approval_rules:
requires:
count: 1
teams:
- "adh-partnership/admin"
- "adh-partnership/admin"
- name: has auto-merge label
if:
has_labels:
- "auto-merge"
- "auto-merge"
has_author_in:
users: ["adh-bot"]

0 comments on commit a84b3c8

Please sign in to comment.