Skip to content

Commit 4a85dc4

Browse files
author
Florian Strauß
committed
“wip”
1 parent d6e0eb8 commit 4a85dc4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/Http/Controllers/ChangelogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ public function __invoke(Request $request)
1414
if (file_exists(base_path('HISTORY.md'))) {
1515
$history = Markdown::parse(file_get_contents(base_path('HISTORY.md')))->toHtml();
1616
}
17-
return view('laravel-github-changelog::index', compact('changelog', 'history'));
17+
return view('github-changelog::index', compact('changelog', 'history'));
1818
}
1919
}

src/LaravelGithubChangelog.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ class LaravelGithubChangelog
99
public function changelog()
1010
{
1111
return collect(
12-
Http::withHeaders(['Authorization' => 'token ' . config('laravel-github-changelog.github.token')])
12+
Http::withHeaders(['Authorization' => 'token ' . config('github-changelog.github.token')])
1313
->get(
1414
'https://api.github.com/repos/' .
15-
config('laravel-github-changelog.github.user') . '/' .
16-
config('laravel-github-changelog.github.repo') . '/commits?since=' .
17-
config('laravel-github-changelog.github.since')
15+
config('github-changelog.github.user') . '/' .
16+
config('github-changelog.github.repo') . '/commits?since=' .
17+
config('github-changelog.github.since')
1818
)
1919
->json()
2020
)->map(function ($commit) {
2121
$matches = $this->matchCommitSyntax($commit['commit']['message']);
2222
if (count($matches) < 3) {
2323
return null;
2424
}
25-
$mapping = config('laravel-github-changelog.types');
25+
$mapping = config('github-changelog.types');
2626
return [
2727
'author' => $commit['commit']['author']['name'],
2828
'date' => new \DateTime($commit['commit']['author']['date']),

src/LaravelGithubChangelogServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ public function boot()
1515
* Optional methods to load your package assets
1616
*/
1717
// $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-github-changelog');
18-
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'laravel-github-changelog');
18+
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'github-changelog');
1919
// $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
2020
$this->loadRoutesFrom(__DIR__ . '/routes.php');
2121

2222
if ($this->app->runningInConsole()) {
2323
$this->publishes([
24-
__DIR__ . '/../config/config.php' => config_path('laravel-github-changelog.php'),
24+
__DIR__ . '/../config/config.php' => config_path('github-changelog.php'),
2525
], 'config');
2626

2727
// Publishing the views.
@@ -50,7 +50,7 @@ public function boot()
5050
public function register()
5151
{
5252
// Automatically apply the package configuration
53-
$this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'laravel-github-changelog');
53+
$this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'github-changelog');
5454

5555
// Register the main class to use with the facade
5656
$this->app->singleton('laravel-github-changelog', function () {

0 commit comments

Comments
 (0)