Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update GitHub template files

+349 -100
+12 -9
.changeset/config.json
··· 1 1 { 2 - "$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json", 3 - "changelog": ["@changesets/changelog-github", { "repo": "trueberryless-org/starlight-cooler-credit" }], 4 - "commit": false, 5 - "fixed": [], 6 - "linked": [], 7 - "access": "public", 8 - "baseBranch": "main", 9 - "updateInternalDependencies": "patch", 10 - "ignore": [] 2 + "$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json", 3 + "changelog": [ 4 + "@changesets/changelog-github", 5 + { "repo": "trueberryless-org/starlight-cooler-credit" } 6 + ], 7 + "commit": false, 8 + "fixed": [], 9 + "linked": [], 10 + "access": "public", 11 + "baseBranch": "main", 12 + "updateInternalDependencies": "patch", 13 + "ignore": [] 11 14 }
+8
.dockerignore
··· 1 + **/node_modules/ 2 + **/dist 3 + **/.git 4 + npm-debug.log 5 + .coverage 6 + .coverage.* 7 + .env 8 + .aws
+24 -5
.github/workflows/deployment.yaml
··· 44 44 steps: 45 45 - name: Checkout Repo 46 46 uses: actions/checkout@v4 47 - with: 48 - fetch-depth: 0 49 47 50 48 - name: Setup PNPM 51 49 uses: pnpm/action-setup@v3 ··· 86 84 87 85 deployment: 88 86 needs: [changes, changesets, image-tag] 89 - # Only run if there is no changeset (i.e. a release), there are changes to the docs and the commit message contains '[ci] release' or 'deploy' (workflow_dispatch supported) 90 - if: (needs.changes.outputs.docs == 'true' && needs.changesets.outputs.hasChangesets == 'false' && (contains(github.event.head_commit.message, 'deploy') || contains(github.event.head_commit.message, '[ci] release'))) || github.event_name == 'workflow_dispatch' 87 + if: > 88 + ( 89 + needs.changesets.outputs.hasChangesets == 'false' && 90 + ( 91 + contains(github.event.head_commit.message, 'deploy') || 92 + contains(github.event.head_commit.message, '[ci] release') 93 + ) 94 + ) || 95 + github.event_name == 'workflow_dispatch' 91 96 runs-on: ubuntu-latest 92 97 permissions: 93 98 contents: write ··· 174 179 tag: ${{ env.IMAGE_NAME }}-docs@${{ needs.image-tag.outputs.IMAGE_TAG }} 175 180 makeLatest: true 176 181 body: ${{ steps.extract-changelog.outputs.markdown }} 182 + skipIfReleaseExists: true 183 + 184 + - name: Check if release was created 185 + id: check_release 186 + run: | 187 + if [ -z "${{ steps.create_release.outputs.html_url }}" ]; then 188 + echo "RELEASE_SKIPPED=true" >> $GITHUB_ENV 189 + else 190 + echo "RELEASE_SKIPPED=false" >> $GITHUB_ENV 191 + fi 177 192 178 193 - name: Discord notification 194 + if: env.RELEASE_SKIPPED == 'false' 179 195 env: 180 196 DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }} 181 197 uses: Ilshidur/action-discord@0.3.2 182 198 with: 183 - args: "# ${{ env.IMAGE_NAME }}-docs@${{ needs.image-tag.outputs.IMAGE_TAG }}\n\n${{ steps.extract-changelog.outputs.markdown }}" 199 + args: | 200 + # ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }} 201 + 202 + ${{ steps.extract-changelog.outputs.markdown }}
+43
.github/workflows/format.yaml
··· 1 + name: Format 2 + 3 + on: 4 + push: 5 + branches: [main] 6 + 7 + jobs: 8 + format: 9 + runs-on: ubuntu-latest 10 + permissions: 11 + contents: write 12 + pull-requests: write 13 + steps: 14 + - uses: actions/checkout@v4 15 + - uses: pnpm/action-setup@v4 16 + with: 17 + run_install: | 18 + - recursive: false 19 + args: [--frozen-lockfile] 20 + - args: [--global, prettier, sort-package-json] 21 + - uses: actions/setup-node@v4 22 + with: 23 + node-version: 20 24 + cache: "pnpm" 25 + - name: Sort package.json 26 + run: find . -name "package.json" -not -path "*/node_modules/*" -exec sort-package-json {} \; 27 + - name: Format with Prettier 28 + run: pnpm prettier --write . 29 + - name: Create Pull Request 30 + uses: peter-evans/create-pull-request@v7 31 + with: 32 + token: ${{ secrets.PUBLIC_GITHUB_TOKEN }} 33 + commit-message: "[ci] format" 34 + committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> 35 + author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> 36 + signoff: false 37 + branch: ci-format 38 + delete-branch: true 39 + title: "[ci] format" 40 + body: "This PR was automatically created to sort package.json files in the repository using sort-package-json and to format the repository using prettier." 41 + labels: 🤖 bot 42 + assignees: trueberryless 43 + draft: false
+25 -5
.github/workflows/publish.yaml
··· 44 44 steps: 45 45 - name: Checkout Repo 46 46 uses: actions/checkout@v4 47 - with: 48 - fetch-depth: 0 49 47 50 48 - name: Setup PNPM 51 49 uses: pnpm/action-setup@v3 ··· 86 84 87 85 publish: 88 86 needs: [changes, changesets, image-tag] 89 - # Only run if there is no changeset (i.e. a release), there are changes to the packages/starlight-cooler-credit and the commit message contains '[ci] release' or 'deploy' (workflow_dispatch supported) 90 - if: (needs.changes.outputs.starlight-cooler-credit == 'true' && needs.changesets.outputs.hasChangesets == 'false' && (contains(github.event.head_commit.message, 'deploy') || contains(github.event.head_commit.message, '[ci] release'))) || github.event_name == 'workflow_dispatch' 87 + if: > 88 + ( 89 + needs.changesets.outputs.hasChangesets == 'false' && 90 + ( 91 + contains(github.event.head_commit.message, 'deploy') || 92 + contains(github.event.head_commit.message, '[ci] release') 93 + ) 94 + ) || 95 + github.event_name == 'workflow_dispatch' 91 96 runs-on: ubuntu-latest 92 97 permissions: 93 98 contents: write ··· 131 136 pattern: ${{ needs.image-tag.outputs.IMAGE_TAG }} 132 137 133 138 - uses: ncipollo/release-action@v1 139 + id: create_release 134 140 with: 135 141 tag: ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }} 136 142 makeLatest: true 137 143 body: ${{ steps.extract-changelog.outputs.markdown }} 144 + skipIfReleaseExists: true 145 + 146 + - name: Check if release was created 147 + id: check_release 148 + run: | 149 + if [ -z "${{ steps.create_release.outputs.html_url }}" ]; then 150 + echo "RELEASE_SKIPPED=true" >> $GITHUB_ENV 151 + else 152 + echo "RELEASE_SKIPPED=false" >> $GITHUB_ENV 153 + fi 138 154 139 155 - name: Discord notification 156 + if: env.RELEASE_SKIPPED == 'false' 140 157 env: 141 158 DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }} 142 159 uses: Ilshidur/action-discord@0.3.2 143 160 with: 144 - args: "# ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }}\n\n${{ steps.extract-changelog.outputs.markdown }}" 161 + args: | 162 + # ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }} 163 + 164 + ${{ steps.extract-changelog.outputs.markdown }}
+1 -2
.github/workflows/release.yaml
··· 2 2 3 3 on: 4 4 push: 5 - branches: 6 - - main 5 + branches: [main] 7 6 8 7 jobs: 9 8 release:
+124 -14
.gitignore
··· 1 - # build output 2 - dist/ 3 - # generated types 4 - .astro/ 1 + # Logs 2 + logs 3 + *.log 4 + npm-debug.log* 5 + yarn-debug.log* 6 + yarn-error.log* 7 + lerna-debug.log* 8 + .pnpm-debug.log* 9 + 10 + # Diagnostic reports (https://nodejs.org/api/report.html) 11 + report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 12 + 13 + # Runtime data 14 + pids 15 + *.pid 16 + *.seed 17 + *.pid.lock 18 + 19 + # Directory for instrumented libs generated by jscoverage/JSCover 20 + lib-cov 21 + 22 + # Coverage directory used by tools like istanbul 23 + coverage 24 + *.lcov 25 + 26 + # nyc test coverage 27 + .nyc_output 28 + 29 + # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 30 + .grunt 31 + 32 + # Bower dependency directory (https://bower.io/) 33 + bower_components 34 + 35 + # node-waf configuration 36 + .lock-wscript 37 + 38 + # Compiled binary addons (https://nodejs.org/api/addons.html) 39 + build/Release 5 40 6 - # dependencies 41 + # Dependency directories 7 42 node_modules/ 43 + jspm_packages/ 8 44 9 - # logs 10 - npm-debug.log* 11 - yarn-debug.log* 12 - yarn-error.log* 13 - pnpm-debug.log* 45 + # Snowpack dependency directory (https://snowpack.dev/) 46 + web_modules/ 14 47 48 + # TypeScript cache 49 + *.tsbuildinfo 50 + 51 + # Optional npm cache directory 52 + .npm 53 + 54 + # Optional eslint cache 55 + .eslintcache 15 56 16 - # environment variables 57 + # Optional stylelint cache 58 + .stylelintcache 59 + 60 + # Microbundle cache 61 + .rpt2_cache/ 62 + .rts2_cache_cjs/ 63 + .rts2_cache_es/ 64 + .rts2_cache_umd/ 65 + 66 + # Optional REPL history 67 + .node_repl_history 68 + 69 + # Output of 'npm pack' 70 + *.tgz 71 + 72 + # Yarn Integrity file 73 + .yarn-integrity 74 + 75 + # dotenv environment variable files 17 76 .env 18 - .env.production 77 + .env.development.local 78 + .env.test.local 79 + .env.production.local 80 + .env.local 81 + 82 + # parcel-bundler cache (https://parceljs.org/) 83 + .cache 84 + .parcel-cache 85 + 86 + # Next.js build output 87 + .next 88 + out 89 + 90 + # Nuxt.js build / generate output 91 + .nuxt 92 + dist 93 + 94 + # Gatsby files 95 + .cache/ 96 + # Comment in the public line in if your project uses Gatsby and not Next.js 97 + # https://nextjs.org/blog/next-9-1#public-directory-support 98 + # public 99 + 100 + # vuepress build output 101 + .vuepress/dist 102 + 103 + # vuepress v2.x temp and cache directory 104 + .temp 105 + .cache 106 + 107 + # Docusaurus cache and generated files 108 + .docusaurus 19 109 20 - # macOS-specific files 21 - .DS_Store 110 + # Serverless directories 111 + .serverless/ 112 + 113 + # FuseBox cache 114 + .fusebox/ 115 + 116 + # DynamoDB Local files 117 + .dynamodb/ 118 + 119 + # TernJS port file 120 + .tern-port 121 + 122 + # Stores VSCode versions used for (testing) VSCode extensions 123 + .vscode 124 + .vscode-test 125 + 126 + # yarn v2 127 + .yarn/cache 128 + .yarn/unplugged 129 + .yarn/build-state.yml 130 + .yarn/install-state.gz 131 + .pnp.*
+37
.prettierignore
··· 1 + # Dependency directories 2 + node_modules/ 3 + dist/ 4 + build/ 5 + out/ 6 + 7 + # Lock files 8 + pnpm-lock.yaml 9 + package-lock.json 10 + yarn.lock 11 + 12 + # Build and generated files 13 + *.min.* 14 + *.bundle.* 15 + *.map 16 + 17 + # Git and version control 18 + **/.git 19 + 20 + # Framework-specific files 21 + next-env.d.ts 22 + __generated__/ 23 + 24 + # Test and coverage files 25 + coverage/ 26 + *.spec.* 27 + *.test.* 28 + 29 + # Editor-specific files 30 + .vscode/ 31 + .idea/ 32 + *.sublime-project 33 + *.sublime-workspace 34 + 35 + # OS generated files 36 + .DS_Store 37 + Thumbs.db
+8
.prettierrc
··· 1 + { 2 + "trailingComma": "es5", 3 + "tabWidth": 2, 4 + "semi": true, 5 + "singleQuote": false, 6 + "endOfLine": "lf", 7 + "htmlWhitespaceSensitivity": "css" 8 + }
+1 -1
LICENSE
··· 1 1 MIT License 2 2 3 - Copyright (c) 2024-present, trueberryless-org 3 + Copyright (c) 2024-present, trueberryless 4 4 5 5 Permission is hereby granted, free of charge, to any person obtaining a copy 6 6 of this software and associated documentation files (the "Software"), to deal
+8 -8
manifest/certificate.yaml
··· 1 1 apiVersion: cert-manager.io/v1 2 2 kind: Certificate 3 3 metadata: 4 - name: starlight-cooler-credit 5 - namespace: starlight-cooler-credit 4 + name: starlight-cooler-credit 5 + namespace: starlight-cooler-credit 6 6 spec: 7 - secretName: starlight-cooler-credit 8 - issuerRef: 9 - name: acme-issuer 10 - kind: ClusterIssuer 11 - dnsNames: 12 - - "starlight-cooler-credit.trueberryless.org" 7 + secretName: starlight-cooler-credit 8 + issuerRef: 9 + name: acme-issuer 10 + kind: ClusterIssuer 11 + dnsNames: 12 + - "starlight-cooler-credit.trueberryless.org"
+1 -1
manifest/deployment.yaml
··· 17 17 spec: 18 18 containers: 19 19 - name: starlight-cooler-credit 20 - image: "trueberryless/starlight-cooler-credit:0.1.9" 20 + image: "trueberryless/starlight-cooler-credit" 21 21 imagePullPolicy: Always
+17 -17
manifest/ingress.yaml
··· 1 1 apiVersion: networking.k8s.io/v1 2 2 kind: Ingress 3 3 metadata: 4 - name: starlight-cooler-credit 5 - namespace: starlight-cooler-credit 4 + name: starlight-cooler-credit 5 + namespace: starlight-cooler-credit 6 6 spec: 7 - rules: 8 - - host: starlight-cooler-credit.trueberryless.org 9 - http: 10 - paths: 11 - - path: / 12 - pathType: Prefix 13 - backend: 14 - service: 15 - name: starlight-cooler-credit 16 - port: 17 - number: 80 7 + rules: 8 + - host: starlight-cooler-credit.trueberryless.org 9 + http: 10 + paths: 11 + - path: / 12 + pathType: Prefix 13 + backend: 14 + service: 15 + name: starlight-cooler-credit 16 + port: 17 + number: 80 18 18 19 - tls: 20 - - hosts: 21 - - starlight-cooler-credit.trueberryless.org 22 - secretName: starlight-cooler-credit 19 + tls: 20 + - hosts: 21 + - starlight-cooler-credit.trueberryless.org 22 + secretName: starlight-cooler-credit
+1 -1
manifest/namespace.yaml
··· 1 1 apiVersion: v1 2 2 kind: Namespace 3 3 metadata: 4 - name: starlight-cooler-credit 4 + name: starlight-cooler-credit
+9 -9
manifest/service.yaml
··· 1 1 apiVersion: v1 2 2 kind: Service 3 3 metadata: 4 - name: starlight-cooler-credit 5 - namespace: starlight-cooler-credit 6 - annotations: 7 - cert-manager.io/issuer: acme-issuer 4 + name: starlight-cooler-credit 5 + namespace: starlight-cooler-credit 6 + annotations: 7 + cert-manager.io/issuer: acme-issuer 8 8 spec: 9 - selector: 10 - app: starlight-cooler-credit 11 - ports: 12 - - name: http 13 - port: 80 9 + selector: 10 + app: starlight-cooler-credit 11 + ports: 12 + - name: http 13 + port: 80
+26 -24
package.json
··· 1 1 { 2 - "name": "starlight-cooler-credit-monorepo", 3 - "version": "1.0.0", 4 - "license": "MIT", 5 - "description": "Add a nice credit to Starlight or Astro at the bottom of Table of Contents.", 6 - "scripts": { 7 - "version": "pnpm changeset version && pnpm i --no-frozen-lockfile" 8 - }, 9 - "author": "trueberryless-org", 10 - "type": "module", 11 - "engines": { 12 - "node": "^18.17.1 || ^20.3.0 || >=21.0.0" 13 - }, 14 - "packageManager": "pnpm@9.6.0", 15 - "private": true, 16 - "homepage": "https://github.com/trueberryless-org/starlight-cooler-credit", 17 - "repository": { 18 - "type": "git", 19 - "url": "https://github.com/trueberryless-org/starlight-cooler-credit.git" 20 - }, 21 - "bugs": "https://github.com/trueberryless-org/starlight-cooler-credit/issues", 22 - "devDependencies": { 23 - "@changesets/changelog-github": "^0.5.0", 24 - "@changesets/cli": "^2.27.9" 25 - } 2 + "name": "starlight-cooler-credit-monorepo", 3 + "version": "1.0.0", 4 + "private": true, 5 + "description": "Add a nice credit to Starlight or Astro at the bottom of Table of Contents.", 6 + "homepage": "https://github.com/trueberryless-org/starlight-cooler-credit", 7 + "bugs": { 8 + "url": "https://github.com/trueberryless-org/starlight-cooler-credit/issues" 9 + }, 10 + "repository": { 11 + "type": "git", 12 + "url": "https://github.com/trueberryless-org/starlight-cooler-credit.git" 13 + }, 14 + "license": "MIT", 15 + "author": "trueberryless <trueberryless@gmail.com> (https://trueberryless.org)", 16 + "type": "module", 17 + "scripts": { 18 + "version": "pnpm changeset version && pnpm i --no-frozen-lockfile" 19 + }, 20 + "devDependencies": { 21 + "@changesets/changelog-github": "^0.5.0", 22 + "@changesets/cli": "^2.27.9" 23 + }, 24 + "packageManager": "pnpm@9.6.0", 25 + "engines": { 26 + "node": "^18.17.1 || ^20.3.0 || >=21.0.0" 27 + } 26 28 }
+2 -2
packages/starlight-cooler-credit/README.md
··· 10 10 11 11 ## License 12 12 13 - Licensed under the MIT License, Copyright © trueberryless-org. 13 + Licensed under the MIT license, Copyright © trueberryless. 14 14 15 - See [LICENSE](https://github.com/trueberryless-org/starlight-cooler-credit/blob/main/LICENSE) for more information. 15 + See [LICENSE](/LICENSE) for more information.
+2 -2
pnpm-workspace.yaml
··· 1 1 packages: 2 - - "docs/" 3 - - "packages/*" 2 + - "docs/" 3 + - "packages/*"