-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into production
- Loading branch information
Showing
95 changed files
with
3,491 additions
and
2,945 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: PR Filter | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, reopened] | ||
|
||
jobs: | ||
check-template: | ||
if: github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check PR Content | ||
id: intercept | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const script = require('.github/workflows/scripts/pr-filter.js'); | ||
await script({ github, context, core }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ on: | |
required: true | ||
BUILDER: | ||
required: true | ||
workflow_dispatch: | ||
|
||
jobs: | ||
launch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
function hasTypes(markdown) { | ||
return /## Type of change/.test(markdown) && /-\s\[x\]/i.test(markdown); | ||
} | ||
|
||
function hasDescription(markdown) { | ||
return ( | ||
/## Description/.test(markdown) && | ||
!/## Description\s*\n\s*(##|\s*$)/.test(markdown) | ||
); | ||
} | ||
|
||
module.exports = async ({ github, context, core }) => { | ||
const pr = context.payload.pull_request; | ||
const body = pr.body === null ? '' : pr.body; | ||
const markdown = body.replace(/<!--[\s\S]*?-->/g, ''); | ||
const action = context.payload.action; | ||
|
||
const isValid = | ||
markdown !== '' && hasTypes(markdown) && hasDescription(markdown); | ||
|
||
if (!isValid) { | ||
await github.rest.pulls.update({ | ||
...context.repo, | ||
pull_number: pr.number, | ||
state: 'closed' | ||
}); | ||
|
||
await github.rest.issues.createComment({ | ||
...context.repo, | ||
issue_number: pr.number, | ||
body: `Oops, it seems you've ${action} an invalid pull request. No worries, we'll close it for you.` | ||
}); | ||
|
||
core.setFailed('PR content does not meet template requirements.'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,5 @@ package-lock.json | |
!.vscode/tasks.json | ||
|
||
# Misc | ||
_sass/dist | ||
_sass/vendors | ||
assets/js/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"ignoreFiles": ["_sass/vendors/**"], | ||
"extends": "stylelint-config-standard-scss", | ||
"rules": { | ||
"no-descending-specificity": null, | ||
"shorthand-property-no-redundant-values": null, | ||
"at-rule-no-vendor-prefix": null, | ||
"property-no-vendor-prefix": null, | ||
"selector-no-vendor-prefix": null, | ||
"value-no-vendor-prefix": null, | ||
"color-function-notation": "legacy", | ||
"alpha-value-notation": "number", | ||
"selector-not-notation": "simple", | ||
"color-hex-length": "long", | ||
"declaration-block-single-line-max-declarations": 3, | ||
"scss/operator-no-newline-after": null, | ||
"rule-empty-line-before": [ | ||
"always", | ||
{ | ||
"ignore": ["after-comment", "first-nested"] | ||
} | ||
], | ||
"value-keyword-case": [ | ||
"lower", | ||
{ | ||
"ignoreProperties": ["/^\\$/"] | ||
} | ||
], | ||
"media-feature-range-notation": "prefix" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,17 +20,17 @@ webfonts: https://fonts.googleapis.com/css2?family=Lato:wght@300;400&family=Sour | |
# Libraries | ||
|
||
toc: | ||
css: https://cdn.jsdelivr.net/npm/tocbot@4.29.0/dist/tocbot.min.css | ||
js: https://cdn.jsdelivr.net/npm/tocbot@4.29.0/dist/tocbot.min.js | ||
css: https://cdn.jsdelivr.net/npm/tocbot@4.32.2/dist/tocbot.min.css | ||
js: https://cdn.jsdelivr.net/npm/tocbot@4.32.2/dist/tocbot.min.js | ||
|
||
fontawesome: | ||
css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/all.min.css | ||
css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.7.1/css/all.min.css | ||
|
||
search: | ||
js: https://cdn.jsdelivr.net/npm/[email protected]/dest/simple-jekyll-search.min.js | ||
|
||
mermaid: | ||
js: https://cdn.jsdelivr.net/npm/mermaid@11.0.2/dist/mermaid.min.js | ||
js: https://cdn.jsdelivr.net/npm/mermaid@11.4.0/dist/mermaid.min.js | ||
|
||
dayjs: | ||
js: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<!-- Matomo --> | ||
<script type="text/javascript"> | ||
var _paq = window._paq = window._paq || []; | ||
_paq.push(['trackPageView']); | ||
_paq.push(['enableLinkTracking']); | ||
(function() { | ||
<script> | ||
document.addEventListener('DOMContentLoaded', () => { | ||
var _paq = (window._paq = window._paq || []); | ||
_paq.push(['trackPageView']); | ||
_paq.push(['enableLinkTracking']); | ||
var u="//{{ site.analytics.matomo.domain }}/"; | ||
_paq.push(['setTrackerUrl', u+'matomo.php']); | ||
_paq.push(['setSiteId', {{ site.analytics.matomo.id }}]); | ||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; | ||
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); | ||
})(); | ||
}); | ||
</script> | ||
<!-- End Matomo Code --> |
File renamed without changes.
Oops, something went wrong.