Skip to content
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

Bump pestphp/pest from 3.3.2 to 3.5.1 #184

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 40 additions & 10 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ PHP_CLI_SERVER_WORKERS=4
BCRYPT_ROUNDS=12

LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=laravel
# DB_USERNAME=root
# DB_PASSWORD=
DB_CONNECTION=pgsql
DB_HOST=pgsql
DB_PORT=5432
DB_DATABASE=laravel
DB_USERNAME=sail
DB_PASSWORD=password

SESSION_DRIVER=database
SESSION_LIFETIME=120
Expand All @@ -48,9 +47,9 @@ REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=log
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
Expand All @@ -63,4 +62,35 @@ AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

VITE_APP_NAME="${APP_NAME}"
VITE_APP_ENV="${APP_ENV}"
VITE_APP_URL="${APP_URL}"
VITE_API_URL="${APP_URL}/api"
VITE_GOOGLE_AUTH_SSO_CLIENT_ID=""

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"


SENTRY_LARAVEL_DSN=
SENTRY_TRACES_SAMPLE_RATE=1.0
SENTRY_ENVIRONMENT=

VITE_SENTRY_AUTH_TOKEN=
VITE_SENTRY_DSN_PUBLIC="${SENTRY_LARAVEL_DSN}"
VITE_SENTRY_ORGANIZATION=
VITE_SENTRY_PROJECT=
# String regex without the "/". Example:
# ^https:\/\/yourserver\.io\/api
VITE_SENTRY_TRACE_PROPAGATION_TARGET_REGEX=
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Prerequisites

Please answer the following questions for yourself before submitting an issue. **YOU MAY DELETE THE PREREQUISITES SECTION.**

- [ ] I am running the latest version
- [ ] I checked the documentation and found no answer
- [ ] I checked to make sure that this issue has not already been filed
- [ ] I'm reporting the issue to the correct repository (for multi-repository projects)

# Expected Behavior

Please describe the behavior you are expecting

# Current Behavior

What is the current behavior?

# Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

## Steps to Reproduce

Please provide detailed steps for reproducing the issue.

1. step 1
2. step 2
3. you get it...

## Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

* Firmware Version:
* Operating System:
* SDK version:
* Toolchain version:

## Failure Logs

Please include any relevant log snippets or files here.
63 changes: 63 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# ⚡ {0} - [{1}](https://app.clickup.com/t/{2}) ⚡

## 💻 What type of change is this?

{3}

## ⭐ Description

<!--
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Example:
-->

For more background, see ticket **{1}[in-progress].**

<!--
ONLY ADD SECTION IF A NEW PACKAGE IS ADDED
### Requires
This pr requires the following packages to be installed:
- `package1`
- `package2`
The packages are used for `reason1` and `reason2`.

Because of this, you must run `npm i` before starting.
-->

## 📷 Screenshots

<!--
Please include before AND after screenshots of the change, or proof of test about your branch
-->

### Before

![image](https://github.com/Light-it-labs/lightranet/assets/17851841/f55f13c3-0f79-4d38-a6d9-51444daf3c81)

### After

![image](https://github.com/Light-it-labs/lightranet/assets/17851841/38fd90e3-09e0-4af4-85e0-b8801d479f8c)


## 💬 Comments

<!--
Please describe any known issues, bugs, or unintended consequences with this change. Also, please include any additional comments you feel are relevant to the reviewer.

Ex:
This pr is blocked by #1234.
Im awaiting backend changes to be merged before I can complete this, etc.
This
-->

## ✅ Checklist
### To review
- [ ] I have tested this change locally in multiple screen sizes
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] If my task include an endpoint, I add the endpoint to Hopscotch/Postman Project
- [ ] Any dependent changes have been merged and published in downstream modules
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"

- package-ecosystem: "composer" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"

- package-ecosystem: "github-actions"
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
directory: "/"
schedule:
interval: "weekly"
42 changes: 42 additions & 0 deletions .github/labeler.yml
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' ]
3 changes: 3 additions & 0 deletions .github/review-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
needs review:
- changed-files:
- any-glob-to-any-file: '**'
12 changes: 0 additions & 12 deletions .github/workflows/issues.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/labeler.yml
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 }}"

12 changes: 0 additions & 12 deletions .github/workflows/pull-requests.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/review-labeler.yml
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

67 changes: 67 additions & 0 deletions .github/workflows/set-pr-title.yml
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
});
Loading