Skip to content

Commit

Permalink
fix: changes to yml files and caching strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalCodes committed Oct 1, 2023
1 parent 2c1d745 commit 9342388
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 19 deletions.
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: 🐞 Bug
description: Report an issue to help improve the project.
title: "[🐞 BUG] Write a small description here"
title: "🐞Bug: Write a small description here"
labels:
[
"👷🏻‍♂️ status: awaiting triage",
"🐞 Bug"
"🐞 bug",
"hacktoberfest"
]
body:
- type: textarea
Expand Down
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: 📄 Documentation issue
description: Found an issue in the documentation? You can use this one!
title: "[📄 DOCS] write a small description here"
title: "📄Docs: Write a small description here"
labels:
[
"👷🏻‍♂️ status: awaiting triage",
"📄 aspect: docs",
"📚 docs",
"hacktoberfest"
]
body:
- type: textarea
Expand Down
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: 💡 Feature Request
description: Have a new idea/feature for Milan? Please suggest!
title: "[💡 FEATURE] write a small description here"
title: "💡Feature: Write a small description here"
labels:
[
"👷🏻‍♂️ status: awaiting triage",
"🛠 Feature"
"💡 feature",
"hacktoberfest"
]
body:
- type: textarea
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/other.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Other
description: Use this for any other issues. Please do NOT create blank issues
title: "[OTHER] write a small description here"
title: "📂Other: Write a small description here"
labels:
[
"👷🏻‍♂️ status: awaiting triage"
"👷🏻‍♂️ status: awaiting triage",
]
body:
- type: textarea
Expand Down
27 changes: 24 additions & 3 deletions .github/labeler-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ filters:
events: [pull_request]
targets: [title]

- label: "🛠 Feature"
- label: "💡 feature"
regexs:
- /feat/i
events: [pull_request]
targets: [title]

- label: "hacktoberfest-accepted"
regexs:
- /feat/i
events: [pull_request]
Expand All @@ -17,19 +23,34 @@ filters:
- /docs/i
events: [pull_request]
targets: [title]
- label: "📄 aspect: docs"

- label: "📚 docs"
regexs:
- /docs/i
events: [pull_request]
targets: [title]

- label: "hacktoberfest-accepted"
regexs:
- /docs/i
events: [pull_request]
targets: [title]



- label: "👷🏻‍♂️ status: awaiting triage"
regexs:
- /fix/i
events: [pull_request]
targets: [title]
- label: "🐞 Bug"

- label: "🐞 bug"
regexs:
- /fix/i
events: [pull_request]
targets: [title]

- label: "hacktoberfest-accepted"
regexs:
- /fix/i
events: [pull_request]
Expand Down
12 changes: 6 additions & 6 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ categories:
- "📈 Major"
- title: "🚀 New Features"
labels:
- "🛠 Feature"
- "💡 feature"
- title: "🐛 Bug Fixes"
labels:
- "🐞 Bug"
- "📄 aspect: docs"
- "🐞 bug"
- "📚 docs"
- title: "🧰 Maintenance"
labels:
- "chore"
Expand All @@ -23,12 +23,12 @@ version-resolver:
- "📈 Major"
minor:
labels:
- "🛠 Feature"
- "💡 feature"
patch:
labels:
- "🐞 Bug"
- "🐞 bug"
- "dependencies"
- "📄 aspect: docs"
- "📚 docs"
default: patch
template: |
Expand Down
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ export default defineConfig({
},
},
{
// Serves static resources from cache with a Stale While Revalidate strategy.
// serves static resources with a Network First strategy.
urlPattern: /\.(?:js|css|jsx)$/,
handler: "StaleWhileRevalidate",
handler: "NetworkFirst",
options: {
cacheName: "static-resources",
expiration: {
Expand Down

0 comments on commit 9342388

Please sign in to comment.