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
35 changed files
with
6,999 additions
and
10,464 deletions.
There are no files selected for viewing
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
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 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,3 @@ | ||
needs review: | ||
- changed-files: | ||
- any-glob-to-any-file: '**' |
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,20 @@ | ||
name: Labeler | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
label: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
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,29 @@ | ||
name: Review Labeler | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: | ||
- review_requested | ||
|
||
jobs: | ||
label: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: ".github/review-label.yml" | ||
|
||
remove_label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-ecosystem/action-remove-labels@v1 | ||
with: | ||
labels: draft | ||
|
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,67 @@ | ||
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 | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.