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

Implementation of user profile, authentication and watch list #2

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
26560ab
task: change to laravel app
SirMishaa Dec 22, 2024
81c4567
task: run lint and add config for pint
SirMishaa Dec 22, 2024
a1b1d28
task: add public assets to gitignore, remove files, also add ide helper
SirMishaa Dec 22, 2024
e219b6b
feat: change type of data column to json to fix error with filament, …
SirMishaa Dec 22, 2024
cb378b8
feat: create Watchlist model, add factory and migration, also add som…
SirMishaa Dec 23, 2024
3ea0827
task: run linting task everytime
SirMishaa Dec 23, 2024
7272128
task: change base folder, and use pnpm instead of npm
SirMishaa Dec 23, 2024
ce1eac1
task: change order, install pnpm then node
SirMishaa Dec 23, 2024
886eea3
task: specify package.json file location
SirMishaa Dec 23, 2024
1341cdd
task: specify cache-dependency-path for the setup node step in ci
SirMishaa Dec 23, 2024
6a07896
task: use postgresql for database, also change creds
SirMishaa Dec 23, 2024
246da5e
task: specify cache store as null in env when running test to use no …
SirMishaa Dec 23, 2024
1f97fed
feat: implement Movie model with seeder, factory and filement resourc…
SirMishaa Dec 25, 2024
057b498
feat: public log viewer asset in composer to fix test, also change db…
SirMishaa Dec 25, 2024
5675df2
feat: publish vendor log viewer and laravel asset everytime after ins…
SirMishaa Dec 25, 2024
e694dd7
task: change ci to run composer run test, and add custom script test …
SirMishaa Dec 25, 2024
7d81232
task: change some pipeline file name, also change one env variable to…
SirMishaa Dec 25, 2024
d11e09d
feat: implementation of WatchlistItem morph with start of polymorphic…
SirMishaa Dec 28, 2024
766d97a
feat: create also watch list item when crating user, adapt movie factory
SirMishaa Dec 28, 2024
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
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.git/
.env
docker-composer.yml
bootstrap/cache/*
storage/app/*
storage/framework/cache/*
storage/framework/views/*
storage/logs/*
vendor/
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto eol=lf
*.py whitespace=erro
107 changes: 107 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
---
- name: "breaking-change"
color: d93f0b
description: "A breaking change for existing users."
- name: "bug"
color: fc2929
description: "Inconsistencies or issues which will cause a problem for users."
- name: "bugfix"
color: ededed
description: "Fixing a bug."
- name: "documentation"
color: 0052cc
description: "Solely about the documentation of the project."
- name: "enhancement"
color: 1d76db
description: "Enhancement of the code, not introducing new features."
- name: "refactor"
color: 1d76db
description: "Improvement of existing code, not introducing new features."
- name: "performance"
color: 1d76db
description: "Improving performance, not introducing new features."
- name: "new-feature"
color: 0e8a16
description: "New features or request."
- name: "maintenance"
color: 2af79e
description: "Generic maintenance tasks."
- name: "ci"
color: 1d76db
description: "Work that improves the continue integration."
- name: "dependencies"
color: 1d76db
description: "Upgrade or downgrade of project dependencies."

- name: "in-progress"
color: fbca04
description: "Issue is currently being resolved by a developer."
- name: "stale"
color: fef2c0
description: "There has not been activity on this issue or PR for quite some time."
- name: "no-stale"
color: fef2c0
description: "This issue or PR is exempted from the stable bot."
- name: "wontfix"
color: ffffff
description: "This issue or PR will not be fixed."
- name: "cleanup"
color: ef75d5
description: "Cleanup of code."
- name: "sync"
color: 00a6ed
description: "Syncing with upstream github config repository."

- name: "security"
color: ee0701
description: "Marks a security issue that needs to be resolved asap."
- name: "incomplete"
color: fef2c0
description: "Marks a PR or issue that is missing information."
- name: "invalid"
color: fef2c0
description: "Marks a PR or issue that is missing information."
- name: "duplicate"
color: cfd3d7
description: "This issue or pull request already exists."

- name: "beginner-friendly"
color: 0e8a16
description: "Good first issue for people wanting to contribute to the project."
- name: "help-wanted"
color: 0e8a16
description: "We need some extra helping hands or expertise in order to resolve this."

- name: "hacktoberfest"
description: "Issues/PRs are participating in the Hacktoberfest."
color: fbca04
- name: "hacktoberfest-accepted"
description: "Issues/PRs are participating in the Hacktoberfest."
color: fbca04

- name: "priority-critical"
color: ee0701
description: "This should be dealt with ASAP. Not fixing this issue would be a serious error."
- name: "priority-high"
color: b60205
description: "After critical issues are fixed, these should be dealt with before any further issues."
- name: "priority-medium"
color: 0e8a16
description: "This issue may be useful, and needs some attention."
- name: "priority-low"
color: e4ea8a
description: "Nice addition, maybe... someday..."

- name: "major"
color: b60205
description: "This PR causes a major version bump in the version number."
- name: "minor"
color: 0e8a16
description: "This PR causes a minor version bump in the version number."

- name: "php"
color: "45229e"
description: "This PR is related to PHP."
- name: "javascript"
color: "168700"
description: "This PR is related to JavaScript."
60 changes: 60 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
change-template: "- #$NUMBER $TITLE @$AUTHOR"
sort-direction: ascending

categories:
- title: "🚨 Breaking changes"
labels:
- "breaking-change"
- title: "✨ New features"
labels:
- "new-feature"
- title: "🐛 Bug fixes"
labels:
- "bugfix"
- title: "🚀 Enhancements"
labels:
- "enhancement"
- "refactor"
- "performance"
- title: "🧰 Maintenance"
labels:
- "maintenance"
- "ci"
- title: "📚 Documentation"
labels:
- "documentation"
- title: "⬆️ Dependency updates"
collapse-after: 10
labels:
- "dependencies"

version-resolver:
major:
labels:
- "major"
- "breaking-change"
minor:
labels:
- "minor"
- "new-feature"
patch:
labels:
- "bugfix"
- "chore"
- "ci"
- "dependencies"
- "documentation"
- "enhancement"
- "performance"
- "refactor"
default: patch

template: |
## What's changed

$CHANGES

**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
39 changes: 39 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"timezone": "Europe/Amsterdam",
"schedule": ["before 6am every weekday"],
"rebaseWhen": "behind-base-branch",
"dependencyDashboard": true,
"labels": ["dependencies"],
"commitMessagePrefix": "⬆️",
"packageRules": [
{
"matchManagers": ["composer"],
"addLabels": ["php"]
},
{
"matchManagers": ["npm"],
"addLabels": ["javascript"]
},
{
"matchManagers": ["npm", "composer"],
"matchUpdateTypes": ["minor", "patch"],
"automerge": false
},
{
"matchManagers": ["github-actions"],
"addLabels": ["github_actions"],
"rangeStrategy": "pin"
},
{
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
},
{
"matchManagers": ["docker-compose"],
"matchUpdateTypes": ["patch"],
"automerge": false
}
]
}
26 changes: 26 additions & 0 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Format

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
pint:
name: 🧹 Laravel Pint
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: 🚀 Change directory to cineboo-api
run: cd cineboo-api

- name: 🚀 Run Laravel Pint
uses: aglipanci/[email protected]
with:
preset: laravel
verboseMode: true
testMode: true
25 changes: 25 additions & 0 deletions .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Sync labels

# yamllint disable-line rule:truthy
on:
push:
branches:
- main
paths:
- .github/labels.yml
workflow_dispatch:

jobs:
labels:
name: ♻️ Sync labels
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
- name: 🚀 Run Label Syncer
uses: micnncim/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/lint-code-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Code static analysis (PHPStan)

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

env:
DEFAULT_PHP: "8.3"
DEFAULT_FOLDER: "./cineboo-api"

jobs:
phpstan:
name: 🧹 Larastan
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: 🏗 Setup PHP, with composer and extensions
uses: shivammathur/[email protected]
with:
php-version: ${{env.DEFAULT_PHP}}
coverage: none

- name: 🏗 Install Laravel Dependencies
working-directory: ${{env.DEFAULT_FOLDER}}
run: |
composer install -n --prefer-dist

- name: 🚀 Run Static Analysis
working-directory: ${{env.DEFAULT_FOLDER}}
run: ./vendor/bin/phpstan --memory-limit=1G --error-format=github
24 changes: 24 additions & 0 deletions .github/workflows/pr-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: PR Labels

# yamllint disable-line rule:truthy
on:
pull_request_target:
types:
- opened
- labeled
- unlabeled
- synchronize
workflow_call:

jobs:
validate:
name: Verify
runs-on: ubuntu-latest
steps:
- name: 🏷 Verify PR has a valid label
uses: klaasnicolaas/[email protected]
with:
valid-labels: >-
breaking-change, bugfix, documentation, enhancement, sync,
refactor, performance, new-feature, maintenance, ci, dependencies
22 changes: 22 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Release Drafter

# yamllint disable-line rule:truthy
on:
push:
branches:
- main
workflow_dispatch:

jobs:
update_release_draft:
name: ✏️ Draft release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- name: 🚀 Run Release Drafter
uses: release-drafter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading