Skip to content

Commit

Permalink
chore(configuration): modify some configurations files, add hooks and…
Browse files Browse the repository at this point in the history
… delete unnecessary
  • Loading branch information
pedrosalpr committed Feb 10, 2024
1 parent 5b7180f commit 549ac9d
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 511 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: :vendor_name
github: pedrosalpr
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/:vendor_name/:package_name/discussions/new?category=q-a
url: https://github.com/pedrosalpr/laravel-api-problem/discussions/new?category=q-a
about: Ask the community for help
- name: Request a feature
url: https://github.com/:vendor_name/:package_name/discussions/new?category=ideas
url: https://github.com/pedrosalpr/laravel-api-problem/discussions/new?category=ideas
about: Share ideas for new features
- name: Report a security issue
url: https://github.com/:vendor_name/:package_name/security/policy
url: https://github.com/pedrosalpr/laravel-api-problem/security/policy
about: Learn how to notify us for sensitive bugs
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit ${1}
10 changes: 10 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
. "$(dirname -- "$0")/_/husky.sh"

echo "Validate Branch Name"

# Get the name of the branch that was created
npx validate-branch-name

echo "Verificando os arquivos em staged se está de acordo com a configuração do PHP CS Fixer"
composer lint-diff-staged
17 changes: 17 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

COMMIT_MSG_FILE=$1
COMMIT_SOURCE=$2
COMMIT_MSG=$(head -n1 "$COMMIT_MSG_FILE")

# Abort if special commit
if [ "$COMMIT_SOURCE" = "merge" ] || [ "$COMMIT_SOURCE" = "squash" ]; then
exit 0;
fi

if [ "$COMMIT_MSG" = "" ]; then
exec < /dev/tty && node_modules/.bin/cz --hook || true
else
npx commitlint --edit "$COMMIT_MSG_FILE"
fi
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Changelog

All notable changes to `:package_name` will be documented in this file.
All notable changes to `laravel-api-problem` will be documented in this file.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) :vendor_name <author@domain.com>
Copyright (c) pedrosalpr <pedrosalpr@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 0 additions & 6 deletions config/skeleton.php

This file was deleted.

Loading

0 comments on commit 549ac9d

Please sign in to comment.