mastani/nova-git-manager

Laravel Nova Git Manager tool.

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

0.0.1 2022-04-16 05:51 UTC

This package is auto-updated.

Last update: 2024-04-16 11:00:10 UTC


README

This is a package for Laravel Nova which allows you to easily manage your Git.

Total Downloads Latest Stable Version Latest Unstable Version License

Screeenshots

Laravel Nova Git Manager Tool

Requirements

  • PHP >= 7.1
  • Laravel application with Laravel Nova installed
  • shell_exec function enabled (For running git log/checkout/pull commands). See usage

Installation

Install the package via composer:

$ composer require mastani/nova-git-manager

Register the tool in the tools method of the NovaServiceProvider:

// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        new \Mastani\NovaGitManager\NovaGitManager,
    ];
}

Customizations (Optional)

If you want to change the "Git Path" or "Commit URL" you can publish the config file:

php artisan vendor:publish --provider="Mastani\NovaGitManager\ToolServiceProvider" --tag="config"

Now head over to "config/nova-git-manager.php" and you can change the value:

/*
|--------------------------------------------------------------------------
| Git root path
|--------------------------------------------------------------------------
|
| Determine the default Git root path
| Default is your project base path.
|
*/

'git_path' => base_path(),

/*
|--------------------------------------------------------------------------
| Commit base url
|--------------------------------------------------------------------------
|
| Determine the default Git commit url
| Example for Github: https://github.com/your_username/your_repository/commit/%s
| Example for Gitlab: https://gitlab.com/your_username/your_repository/-/commit/%s
|
*/

'commit_url' => 'https://github.com/your_username/your_repository/commit/%s'

Contributors

Amin Mastani

License

The MIT License (MIT). Please see License File for more information.