FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-commitizen/php-commitizen at master · conventional-commits/php-commitizen · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
conventional-commits
/
php-commitizen
Public
Notifications
You must be signed in to change notification settings
Fork
12
Star
119
Code
Issues
4
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
php-commitizen
/
php-commitizen
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (20 loc) · 783 Bytes
Breadcrumbs
php-commitizen
/
php-commitizen
Copy path
File metadata and controls
24 lines (20 loc) · 783 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env php
<?php
declare
(strict_types=
1
);
use
Damianopetrungaro
\
PHPCommitizen
\
CreateConventionalCommit
;
use
Symfony
\
Component
\
Console
\
Application
;
use
Symfony
\
Component
\
Console
\
Output
\
ConsoleOutput
;
foreach
([
__DIR__
.
'
/../../autoload.php
'
,
__DIR__
.
'
/../vendor/autoload.php
'
,
__DIR__
.
'
/vendor/autoload.php
'
]
as
$
autoloadFile
) {
if
(
file_exists
(
$
autoloadFile
)) {
require
$
autoloadFile
;
break
;
}
}
try
{
$
configuration
=
require
__DIR__
.
'
/.php-commitizen.php
'
;
$
app
=
new
Application
(
'
PHP Commitizen
'
);
$
app
->
add
(
new
\
Damianopetrungaro
\
PHPCommitizen
\
CommitCommand
(
$
configuration
,
new
CreateConventionalCommit
()));
$
app
->
run
();
}
catch
(
Throwable
$
e
) {
(
new
ConsoleOutput
())->
writeln
(
"
<error>
{
$
e
->
getMessage
()}
</error>
"
);
}
Back
|
FazBrowse Home
|
New Git URL