Skip to content

Commit 549ac9d

Browse files
committed
chore(configuration): modify some configurations files, add hooks and delete unnecessary
1 parent 5b7180f commit 549ac9d

File tree

19 files changed

+38
-511
lines changed

19 files changed

+38
-511
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: :vendor_name
1+
github: pedrosalpr

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=q-a
4+
url: https://github.com/pedrosalpr/laravel-api-problem/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/:vendor_name/:package_name/discussions/new?category=ideas
7+
url: https://github.com/pedrosalpr/laravel-api-problem/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/:vendor_name/:package_name/security/policy
10+
url: https://github.com/pedrosalpr/laravel-api-problem/security/policy
1111
about: Learn how to notify us for sensitive bugs

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx commitlint --edit ${1}

.husky/pre-commit

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
echo "Validate Branch Name"
5+
6+
# Get the name of the branch that was created
7+
npx validate-branch-name
8+
9+
echo "Verificando os arquivos em staged se está de acordo com a configuração do PHP CS Fixer"
10+
composer lint-diff-staged

.husky/prepare-commit-msg

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
COMMIT_MSG_FILE=$1
5+
COMMIT_SOURCE=$2
6+
COMMIT_MSG=$(head -n1 "$COMMIT_MSG_FILE")
7+
8+
# Abort if special commit
9+
if [ "$COMMIT_SOURCE" = "merge" ] || [ "$COMMIT_SOURCE" = "squash" ]; then
10+
exit 0;
11+
fi
12+
13+
if [ "$COMMIT_MSG" = "" ]; then
14+
exec < /dev/tty && node_modules/.bin/cz --hook || true
15+
else
16+
npx commitlint --edit "$COMMIT_MSG_FILE"
17+
fi

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Changelog
22

3-
All notable changes to `:package_name` will be documented in this file.
3+
All notable changes to `laravel-api-problem` will be documented in this file.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) :vendor_name <author@domain.com>
3+
Copyright (c) pedrosalpr <pedrosalpr@gmail.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

config/skeleton.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)