-
-
Notifications
You must be signed in to change notification settings - Fork 0
ci: sync template files [skip netlify] #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,34 @@ | ||
| # See https://github.com/actions/labeler/tree/v5 | ||
|
|
||
| "🚨 action": | ||
| - changed-files: | ||
| - any-glob-to-any-file: .github/workflows/** | ||
|
|
||
| "📝 changeset": | ||
| - changed-files: | ||
| - any-glob-to-any-file: "**/.changeset/**.{md,mdx}" | ||
|
|
||
| "🚧 config": | ||
| - changed-files: | ||
| - any-glob-to-any-file: "**/*config*.{js,ts,jsx,tsx,mjs,mts,json,yml,yaml,toml,cjs,cts}" | ||
|
|
||
| "✒️ documentation": | ||
| - changed-files: | ||
| - any-glob-to-any-file: "**/README.md" | ||
|
|
||
| "🌏 i18n": | ||
| - changed-files: | ||
| - all-globs-to-any-file: ["**/docs/**", "!**/docs/en/**"] | ||
|
|
||
| "🚀 manifest": | ||
| - changed-files: | ||
| - any-glob-to-any-file: "manifest*/**" | ||
|
|
||
| "📦 package": | ||
| - changed-files: | ||
| - any-glob-to-any-file: "**/packages/**" | ||
| - any-glob-to-any-file: "**/package.json" | ||
|
|
||
| "🏯 styles": | ||
| - changed-files: | ||
| - any-glob-to-any-file: "**/*.{css,scss,sass,less,styl}" |
This file contains hidden or 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 @@ | ||
| { | ||
| $schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
| extends: [ | ||
| ":disableDependencyDashboard", | ||
| ":semanticPrefixFixDepsChoreOthers", | ||
| ":ignoreModulesAndTests", | ||
| "workarounds:all", | ||
| "helpers:pinGitHubActionDigestsToSemver", | ||
| "docker:disable", | ||
| ], | ||
| rangeStrategy: "bump", | ||
| ignorePaths: ["**/node_modules/**"], | ||
| packageRules: [ | ||
| { | ||
| groupName: "github-actions", | ||
| matchManagers: ["github-actions"], | ||
| }, | ||
| { | ||
| matchManagers: ["npm"], | ||
| groupName: "dependencies", | ||
| matchDepTypes: ["devDependencies", "dependencies", "peerDependencies"], | ||
| enabled: false, | ||
| }, | ||
| { | ||
| description: "Disable package manager version updates", | ||
| matchPackageNames: ["pnpm"], | ||
| matchDepTypes: ["packageManager"], | ||
| enabled: false, | ||
| }, | ||
| ], | ||
| } |
This file contains hidden or 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,37 @@ | ||
| name: autofix.ci | ||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [main] | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| autofix: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
|
||
| - name: Setup PNPM | ||
| uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | ||
| with: | ||
| node-version: 20 | ||
| cache: "pnpm" | ||
|
|
||
| - name: Install Dependencies | ||
| run: pnpm i | ||
|
|
||
| - name: Run prettier | ||
| run: pnpm exec prettier . --write | ||
|
|
||
| # Optimize all PNGs with https://pngquant.org/ | ||
| - run: sudo apt-get update && sudo apt-get install -y pngquant | ||
| - name: Run pngquant | ||
| run: | | ||
| shopt -s globstar | ||
| find . -name '*.png' -exec pngquant --ext .png 256 {} \; | ||
|
|
||
| - uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef |
This file contains hidden or 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,55 @@ | ||
| name: "Pull Request Labeler" | ||
| on: | ||
| - pull_request_target | ||
|
|
||
| jobs: | ||
| labeler: | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Generate GitHub App token | ||
| id: generate_token | ||
| uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | ||
| with: | ||
| app_id: ${{ secrets.BOT_APP_ID }} | ||
| private_key: ${{ secrets.BOT_PRIVATE_KEY }} | ||
|
|
||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Ensure labels exist | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
| run: | | ||
| gh label delete "bug" --yes || true | ||
| gh label delete "documentation" --yes || true | ||
| gh label delete "duplicate" --yes || true | ||
| gh label delete "enhancement" --yes || true | ||
| gh label delete "good first issue" --yes || true | ||
| gh label delete "help wanted" --yes || true | ||
| gh label delete "invalid" --yes || true | ||
| gh label delete "question" --yes || true | ||
| gh label delete "wontfix" --yes || true | ||
|
|
||
| gh label create "🚨 action" --description "Changes in GitHub workflows or actions" --color "A75AD5" --force | ||
| gh label create "🤖 bot" --description "Automatically generated pull request" --color "0075CA" --force | ||
| gh label create "🐛 bug" --description "Something isn't working" --color "D73A4A" --force | ||
| gh label create "📝 changeset" --description "Contains changeset files" --color "304EF9" --force | ||
| gh label create "🚧 config" --description "Configuration file updates" --color "C0ED4F" --force | ||
| gh label create "✒️ documentation" --description "Documentation updates, like README changes" --color "66741D" --force | ||
| gh label create "🔁 duplicate" --description "This issue or pull request already exists" --color "008672" --force | ||
| gh label create "⏫ enhancement" --description "New feature or request" --color "3C11FD" --force | ||
| gh label create "🥇 good first issue" --description "Good for newcomers" --color "7057FF" --force | ||
| gh label create "🆘 help wanted" --description "Extra attention is needed" --color "BFD4F2" --force | ||
| gh label create "🌏 i18n" --description "Updates to internationalized docs, excluding English" --color "006B75" --force | ||
| gh label create "👀 invalid" --description "This doesn't seem right" --color "E4E669" --force | ||
| gh label create "🚀 manifest" --description "Manifest-related changes" --color "96D3D7" --force | ||
| gh label create "📦 package" --description "Updates in package structure or package.json" --color "F34A37" --force | ||
| gh label create "❓ question" --description "Further information is requested" --color "D876E3" --force | ||
| gh label create "🏯 styles" --description "Stylesheets or design updates" --color "550F5A" --force | ||
| gh label create "🔒 wontfix" --description "This will not be worked on" --color "FFFFFF" --force | ||
|
|
||
| - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5 | ||
| with: | ||
| configuration-path: .github/labeler.yaml | ||
| sync-labels: true |
This file contains hidden or 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,43 @@ | ||
| name: WelcomeBot | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| branches: [main] | ||
| types: [opened] | ||
|
|
||
| permissions: | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| welcome: | ||
| name: Welcome First-Time Contributors | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Generate GitHub App token | ||
| id: generate_token | ||
| uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | ||
| with: | ||
| app_id: ${{ secrets.BOT_APP_ID }} | ||
| private_key: ${{ secrets.BOT_PRIVATE_KEY }} | ||
|
|
||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Convert Repository Name to Title Case | ||
| id: convert_repo_name | ||
| run: | | ||
| REPO_NAME="${{ github.event.repository.name }}" | ||
| TITLE_CASE_REPO_NAME=$(echo "$REPO_NAME" | sed 's/-/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) tolower(substr($i,2))} 1') | ||
| echo "title_case_repo_name=$TITLE_CASE_REPO_NAME" >> $GITHUB_ENV | ||
| - uses: zephyrproject-rtos/action-first-interaction@58853996b1ac504b8e0f6964301f369d2bb22e5c | ||
| with: | ||
| repo-token: ${{ steps.generate_token.outputs.token }} | ||
| pr-opened-message: | | ||
| Hello! Thank you for opening your **first PR** to ${{ env.title_case_repo_name }}! ✨ | ||
|
|
||
| Here’s what will happen next: | ||
|
|
||
| 1. Our GitHub bots will run to check your changes. | ||
| If they spot any issues you will see some error messages on this PR. | ||
| Don’t hesitate to ask any questions if you’re not sure what these mean! | ||
|
|
||
| 2. One or more of our maintainers will take a look and may ask you to make changes. | ||
| We try to be responsive, but don’t worry if this takes a few days. |
This file contains hidden or 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,27 +1,138 @@ | ||
| # build output | ||
| dist/ | ||
| # generated types | ||
| .astro/ | ||
|
|
||
| # dependencies | ||
| node_modules/ | ||
|
|
||
| # logs | ||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| pnpm-debug.log* | ||
| lerna-debug.log* | ||
| .pnpm-debug.log* | ||
|
|
||
| # Diagnostic reports (https://nodejs.org/api/report.html) | ||
| report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
|
||
| # Runtime data | ||
| pids | ||
| *.pid | ||
| *.seed | ||
| *.pid.lock | ||
|
|
||
| # Directory for instrumented libs generated by jscoverage/JSCover | ||
| lib-cov | ||
|
|
||
| # Coverage directory used by tools like istanbul | ||
| coverage | ||
| *.lcov | ||
|
|
||
| # nyc test coverage | ||
| .nyc_output | ||
|
|
||
| # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
| .grunt | ||
|
|
||
| # Bower dependency directory (https://bower.io/) | ||
| bower_components | ||
|
|
||
| # node-waf configuration | ||
| .lock-wscript | ||
|
|
||
| # Compiled binary addons (https://nodejs.org/api/addons.html) | ||
| build/Release | ||
|
|
||
| # Dependency directories | ||
| node_modules/ | ||
| jspm_packages/ | ||
|
|
||
| # Snowpack dependency directory (https://snowpack.dev/) | ||
| web_modules/ | ||
|
|
||
| # TypeScript cache | ||
| *.tsbuildinfo | ||
|
|
||
| # Optional npm cache directory | ||
| .npm | ||
|
|
||
| # Optional eslint cache | ||
| .eslintcache | ||
|
|
||
| # environment variables | ||
| # Optional stylelint cache | ||
| .stylelintcache | ||
|
|
||
| # Microbundle cache | ||
| .rpt2_cache/ | ||
| .rts2_cache_cjs/ | ||
| .rts2_cache_es/ | ||
| .rts2_cache_umd/ | ||
|
|
||
| # Optional REPL history | ||
| .node_repl_history | ||
|
|
||
| # Output of 'npm pack' | ||
| *.tgz | ||
|
|
||
| # Yarn Integrity file | ||
| .yarn-integrity | ||
|
|
||
| # dotenv environment variable files | ||
| .env | ||
| .env.production | ||
| .env.development.local | ||
| .env.test.local | ||
| .env.production.local | ||
| .env.local | ||
|
|
||
| # parcel-bundler cache (https://parceljs.org/) | ||
| .cache | ||
| .parcel-cache | ||
|
|
||
| # Astro | ||
| .astro | ||
|
|
||
| # Next.js build output | ||
| .next | ||
| out | ||
|
|
||
| # Nuxt.js build / generate output | ||
| .nuxt | ||
| dist | ||
| .output | ||
|
|
||
| # Gatsby files | ||
| .cache/ | ||
| # Comment in the public line in if your project uses Gatsby and not Next.js | ||
| # https://nextjs.org/blog/next-9-1#public-directory-support | ||
| # public | ||
|
|
||
| # vuepress build output | ||
| .vuepress/dist | ||
|
|
||
| # vuepress v2.x temp and cache directory | ||
| .temp | ||
| .cache | ||
|
|
||
| # Docusaurus cache and generated files | ||
| .docusaurus | ||
|
|
||
| # Serverless directories | ||
| .serverless/ | ||
|
|
||
| # FuseBox cache | ||
| .fusebox/ | ||
|
|
||
| # DynamoDB Local files | ||
| .dynamodb/ | ||
|
|
||
| # TernJS port file | ||
| .tern-port | ||
|
|
||
| # macOS-specific files | ||
| .DS_Store | ||
| # Stores VSCode versions used for (testing) VSCode extensions | ||
| .vscode | ||
| .vscode-test | ||
|
|
||
| # jetbrains setting folder | ||
| .idea/ | ||
| # yarn v2 | ||
| .yarn/cache | ||
| .yarn/unplugged | ||
| .yarn/build-state.yml | ||
| .yarn/install-state.gz | ||
| .pnp.* | ||
|
|
||
| # Local Netlify folder | ||
| .netlify | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.