forked from laravel/laravel
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Remove unused workflow files and github actions, update depend…
…encies
- Loading branch information
Showing
176 changed files
with
17,097 additions
and
11,036 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,42 @@ | ||
draft: | ||
- changed-files: | ||
- any-glob-to-any-file: '**' | ||
|
||
feature: | ||
- head-branch: ['^feature', 'feature'] | ||
|
||
bugfix: | ||
- head-branch: [ '^bugfix', 'bugfix' ] | ||
|
||
hotfix: | ||
- head-branch: [ '^hotfix', 'hotfix' ] | ||
|
||
release: | ||
- base-branch: 'main' | ||
|
||
have testing: | ||
- changed-files: | ||
- any-glob-to-any-file: tests/** | ||
|
||
migrations: | ||
- changed-files: | ||
- any-glob-to-any-file: database/migrations/** | ||
|
||
dependencies: | ||
- changed-files: | ||
- any-glob-to-any-file: ['composer.**', 'package.**', 'package-lock.**', 'poetry.lock', 'yarn.lock', 'pnpm-lock.**'] | ||
|
||
change env: | ||
- changed-files: | ||
- any-glob-to-any-file: '.env.**' | ||
|
||
include command: | ||
- changed-files: | ||
- any-glob-to-any-file: 'src/Shared/App/Console/**' | ||
|
||
documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: ['README.**', 'docs/**'] | ||
|
||
refactor: | ||
- head-branch: [ '^refactor', 'refactor' ] |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Set PR title | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
set-title: | ||
runs-on: ubuntu-latest | ||
if: github.actor != 'dependabot[bot]' | ||
steps: | ||
- name: Set PR title | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const { owner, repo, number: pull_number } = context.issue; | ||
const pr = context.payload.pull_request; | ||
const body = pr.body || ''; | ||
const branchName = pr.head.ref; | ||
const baseBranch = pr.base.ref; | ||
const changeTypes = { | ||
feature: '- [x] 💎 Feature', | ||
bugfix: '- [x] 🐛 Bug Fix', | ||
hotfix: '- [x] 🔥 Hot Fix', | ||
release: '- [x] 🚀 Release', | ||
}; | ||
const format = (str, ...args) => { | ||
return str.replace(/{(\d+)}/g, (match, number) => { | ||
return typeof args[number] !== 'undefined' ? args[number] : match; | ||
}); | ||
}; | ||
const today = new Date(); | ||
let title = `Invalid branch name 👀 (type/task-id/description)`; | ||
let updatedBody = body; | ||
if (["main", "master"].includes(baseBranch)) { | ||
title = `[Release] vX.X.X 🚀 - ${today.toLocaleDateString('en-GB')}`; | ||
updatedBody = ''; | ||
} else if (["main", "master", "staging", "develop", "demo"].includes(branchName)) { | ||
title = `Merge from ${branchName} to ${baseBranch}`; | ||
} else { | ||
try { | ||
const [type, id, description] = branchName.split('/'); | ||
const templateTitle = description.split("-").join(' ').replace(/\b\w/g, (l) => l.toUpperCase()); | ||
const taskCode = id.startsWith("CU-") ? id.split("CU-").join('') : id; | ||
const typeOfChange = changeTypes[type] || '- [ ] Unknown Type'; | ||
title = `[${id}] ${templateTitle}`; | ||
updatedBody = format(body, templateTitle, id, taskCode, typeOfChange); | ||
} catch (e) { | ||
} | ||
} | ||
await github.rest.pulls.update({ | ||
owner, | ||
repo, | ||
pull_number, | ||
title, | ||
body: updatedBody | ||
}); | ||
- uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
This file was deleted.
Oops, something went wrong.
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
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 +1 @@ | ||
v20.13.1 | ||
v22.11.0 |
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,7 @@ | ||
<svg width="57" height="83" viewBox="0 0 57 83" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M45.2914 35.3701H11.5826C8.21783 35.3701 5.49018 38.135 5.49018 41.5456C5.49018 44.9562 8.21783 47.721 11.5826 47.721H45.2914C48.6561 47.721 51.3838 44.9562 51.3838 41.5456C51.3838 38.135 48.6561 35.3701 45.2914 35.3701ZM11.5826 32.851C6.84524 32.851 3.00488 36.7437 3.00488 41.5456C3.00488 46.3475 6.84523 50.2402 11.5826 50.2402H45.2914C50.0287 50.2402 53.8691 46.3475 53.8691 41.5456C53.8691 36.7437 50.0287 32.851 45.2914 32.851H11.5826Z" fill="black"/> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M23.2956 8.78935L6.44117 38.3801C4.7588 41.3338 5.75719 45.1106 8.67114 46.8159C11.5851 48.5212 15.3111 47.5092 16.9935 44.5555L33.8479 14.9648C35.5303 12.0111 34.5319 8.2343 31.6179 6.52899C28.704 4.82369 24.9779 5.83568 23.2956 8.78935ZM4.28884 37.1205C1.92018 41.2791 3.32585 46.5966 7.42849 48.9976C11.5311 51.3985 16.7772 49.9737 19.1458 45.8151L36.0002 16.2244C38.3689 12.0658 36.9632 6.74827 32.8606 4.34732C28.7579 1.94636 23.5119 3.37119 21.1432 7.52976L4.28884 37.1205Z" fill="black"/> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M40.0065 38.4444L23.1521 68.0351C21.4697 70.9888 22.4681 74.7656 25.3821 76.4709C28.296 78.1762 32.0221 77.1642 33.7044 74.2106L50.5588 44.6199C52.2412 41.6662 51.2428 37.8893 48.3289 36.184C45.4149 34.4787 41.6889 35.4907 40.0065 38.4444ZM20.9998 66.7755C18.6311 70.9341 20.0368 76.2517 24.1394 78.6526C28.2421 81.0536 33.4881 79.6287 35.8568 75.4702L52.7112 45.8794C55.0798 41.7209 53.6742 36.4033 49.5715 34.0023C45.4689 31.6014 40.2228 33.0262 37.8542 37.1848L20.9998 66.7755Z" fill="black"/> | ||
<path d="M34.7132 71.6174C34.7132 75.1311 31.9031 77.9795 28.4367 77.9795C24.9703 77.9795 22.1602 75.1311 22.1602 71.6174C22.1602 68.1037 24.9703 65.2552 28.4367 65.2552C31.9031 65.2552 34.7132 68.1037 34.7132 71.6174Z" fill="black"/> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M36.6069 11.3442C36.6069 15.6389 33.1722 19.1204 28.9353 19.1204C24.6984 19.1204 21.2637 15.6389 21.2637 11.3442C21.2637 7.04952 24.6984 3.56799 28.9353 3.56799C33.1722 3.56799 36.6069 7.04952 36.6069 11.3442ZM28.9353 16.8163C31.9168 16.8163 34.3338 14.3664 34.3338 11.3442C34.3338 8.32201 31.9168 5.87205 28.9353 5.87205C25.9537 5.87205 23.5367 8.32201 23.5367 11.3442C23.5367 14.3664 25.9537 16.8163 28.9353 16.8163Z" fill="black"/> | ||
</svg> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,44 @@ | ||
import type { StorybookConfig } from "@storybook/react-vite"; | ||
import { mergeConfig } from "vite"; | ||
|
||
const config: StorybookConfig = { | ||
|
||
/** | ||
* Fix for asset loading due to Laravel-Vite setup | ||
* https://github.com/storybookjs/storybook/issues/22550#issuecomment-1661920350 | ||
*/ | ||
async viteFinal(config) { | ||
return mergeConfig(config, { | ||
server: { | ||
origin: '' | ||
}, | ||
}); | ||
}, | ||
|
||
stories: [ | ||
"../resources/js/**/*.stories.@(js|jsx|mjs|ts|tsx)", | ||
], | ||
|
||
staticDirs: ["./images"], | ||
|
||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-onboarding", | ||
"@storybook/addon-interactions", | ||
"@storybook/addon-a11y", | ||
"@chromatic-com/storybook", | ||
], | ||
|
||
framework: { | ||
name: "@storybook/react-vite", | ||
options: {}, | ||
}, | ||
|
||
docs: {}, | ||
|
||
typescript: { | ||
reactDocgen: "react-docgen-typescript", | ||
}, | ||
}; | ||
export default config; |
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,5 @@ | ||
<link | ||
rel="shortcut icon" | ||
type="image/x-icon" | ||
href="https://cdn.prod.website-files.com/651178dd2e51892e3c569ce3/651178dd2e51892e3c569ee7_FaviconLogoPNG.png" | ||
/> |
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,10 @@ | ||
import { addons } from "@storybook/manager-api"; | ||
|
||
import DefaultTheme from "./theme"; | ||
|
||
addons.setConfig({ | ||
theme: DefaultTheme, | ||
sidebar: { | ||
showRoots: true, | ||
}, | ||
}); |
Oops, something went wrong.