Skip to content

Commit

Permalink
Merge branch 'master' into feat/app-build-manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke authored Sep 18, 2024
2 parents 98ac88d + 9a0b3bb commit 2432232
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 53 deletions.
15 changes: 12 additions & 3 deletions .github/pr-labeler.config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Additional labels to assign based on file changes
"documentation":
- documentation/**/*
# Patterns to match to auto-assign labels based on path changes
# https://github.com/actions/labeler/tree/v5/?tab=readme-ov-file#match-object

# Documentation
'documentation':
- changed-files:
- any-glob-to-any-file: 'documentation/**/*'

# Scripts
'scripts':
- changed-files:
- any-glob-to-any-file: 'packages/scripts/**/*'
26 changes: 26 additions & 0 deletions .github/workflows/gh-pr-label-paths.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Automatically apply labels to PR based on filepaths of modified files
name: Github PR Label Paths
on:
pull_request:
# https://frontside.com/blog/2020-05-26-github-actions-pull_request/
types:
- opened
- synchronize
jobs:
label:
if: ${{ !contains(github.event.pull_request.labels.*.name , 'no-autolabel')}}
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
# Checkout repo to access local templates (if updated)
- name: checkout
uses: actions/checkout@main
# Assign labels based on files modified
# https://github.com/actions/labeler
- name: Assign PR path Labels
uses: actions/labeler@v5
with:
configuration-path: .github/pr-labeler.config.yml
sync-labels: false
51 changes: 51 additions & 0 deletions .github/workflows/gh-pr-label-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Automatically apply labels to PR based on title (if written in semantic format)
name: Github PR Label Title
on:
pull_request:
# https://frontside.com/blog/2020-05-26-github-actions-pull_request/
types:
- opened
- ready_for_review
jobs:
label:
# Avoid re-label if title not changed or using custom label to prevent
# https://github.com/orgs/community/discussions/101695
if: |
${{ !contains(github.event.pull_request.labels.*.name , 'no-autolabel')}} &&
(event.type == 'opened' || event.changes.title.from)
runs-on: ubuntu-latest
steps:
# Checkout repo to access local templates (if updated)
- name: checkout
uses: actions/checkout@main
# Check if PR title matches conventional commit standard
# Not strictly enforced so allow continue on error
# https://github.com/marketplace/actions/semantic-pull-request
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v5
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Assign labels based on conventional PR title
# https://github.com/marketplace/actions/conventional-release-labels
- name: Assign PR Name Labels
uses: bcoe/[email protected]
with:
# Labels assigned based on pr name prefix
type_labels: |
{
"breaking": "breaking",
"chore": "maintenance",
"docs": "documentation",
"feat": "feature",
"fix": "fix",
"refactor": "maintenance",
"Breaking": "breaking",
"Chore": "maintenance",
"Docs": "documentation",
"Feat": "feature",
"Fix": "fix",
"Refactor": "maintenance"
}
# Do not ignore any labels (default ignores chore:)
ignored_types: '[]'
44 changes: 0 additions & 44 deletions .github/workflows/gh-pr-labeler.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"dexie-observable": "3.0.0-beta.11",
"dexie-syncable": "^3.0.0-beta.10",
"document-register-element": "^1.14.10",
"dompurify": "^3.0.6",
"dompurify": "^3.1.3",
"extract-math": "^1.2.3",
"file-saver": "^2.0.5",
"firebase": "^10.7.0",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12543,10 +12543,10 @@ __metadata:
languageName: node
linkType: hard

"dompurify@npm:^3.0.6":
version: 3.0.8
resolution: "dompurify@npm:3.0.8"
checksum: cac660ccae15a9603f06a85344da868a4c3732d8b57f7998de0f421eb4b9e67d916be52e9bb2a57b2f95b49e994cc50bcd06bb87f2cb2849cf058bdf15266237
"dompurify@npm:^3.1.3":
version: 3.1.6
resolution: "dompurify@npm:3.1.6"
checksum: cc4fc4ccd9261fbceb2a1627a985c70af231274a26ddd3f643fd0616a0a44099bd9e4480940ce3655612063be4a1fe9f5e9309967526f8c0a99f931602323866
languageName: node
linkType: hard

Expand Down Expand Up @@ -14996,7 +14996,7 @@ __metadata:
dexie-observable: 3.0.0-beta.11
dexie-syncable: ^3.0.0-beta.10
document-register-element: ^1.14.10
dompurify: ^3.0.6
dompurify: ^3.1.3
eslint: ^8.54.0
eslint-config-prettier: ^9.1.0
eslint-config-standard-with-typescript: latest
Expand Down

0 comments on commit 2432232

Please sign in to comment.