Plugin Directory

Changeset 3146858


Ignore:
Timestamp:
09/05/2024 09:17:58 AM (18 months ago)
Author:
PressLabs
Message:

Version 1.0.7

  • Fix: HOME env definition;
  • Fix: deprecation warnings in PHP 8.1;
  • Compat: added composer.json package;
  • Compat: add the possibility to use a custom .gitignore by defining the GITIGNORE constant.
Location:
gitium
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gitium/tags/1.0.7/functions.php

    r2923946 r3146858  
    194194
    195195    foreach ( $commit_groups as $base_path => $change ) {
    196         $commit_message = _gitium_format_message( $change['name'], $change['version'], "${change['action']} ${change['type']}" );
     196        $commit_message = _gitium_format_message( $change['name'], $change['version'], "{$change['action']} {$change['type']}" );
    197197        $commit = _gitium_commit_changes( "$commit_message $msg_append", $base_path, false );
    198198        if ( $commit ) {
  • gitium/tags/1.0.7/gitium-webhook.php

    r1909349 r3146858  
    1919define( 'SHORTINIT', true );
    2020//$wordpress_loader = $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php';
    21 $wordpress_loader = filter_input(INPUT_SERVER, 'DOCUMENT_ROOT', FILTER_SANITIZE_STRING) . '/wp-load.php';
     21$wordpress_loader = filter_input(INPUT_SERVER, 'DOCUMENT_ROOT', FILTER_SANITIZE_FULL_SPECIAL_CHARS) . '/wp-load.php';
    2222
    2323require_once $wordpress_loader;
     
    2626
    2727$webhook_key = get_option( 'gitium_webhook_key', '' );
    28 $get_key = filter_input(INPUT_GET, 'key', FILTER_SANITIZE_STRING);
     28$get_key = filter_input(INPUT_GET, 'key', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    2929if ( ! empty ( $webhook_key ) && isset( $get_key ) && $webhook_key == $get_key ) :
    3030    ( '1.7' <= substr( $git->get_version(), 0, 3 ) ) or wp_die( 'Gitium plugin require minimum `git version 1.7`!' );
  • gitium/tags/1.0.7/gitium.php

    r2996937 r3146858  
    22/**
    33 * Plugin Name: Gitium
    4  * Version: 1.0.6
     4 * Version: 1.0.7
    55 * Author: Presslabs
    66 * Author URI: https://www.presslabs.com
     
    1010 * Domain Path: /languages/
    1111 */
    12 /*  Copyright 2014-2016 Presslabs SRL <[email protected]>
     12/*  Copyright 2014-2024 Presslabs <[email protected]>
    1313
    1414    This program is free software; you can redistribute it and/or modify
  • gitium/tags/1.0.7/inc/class-git-wrapper.php

    r2996931 r3146858  
    1616*/
    1717
    18 define('GITIGNORE', <<<EOF
     18if (!defined('GITIGNORE'))
     19    define('GITIGNORE', <<<EOF
    1920*.log
    2021*.swp
     
    135136
    136137    private function get_env() {
    137         $env      = array();
     138        $env      = array(
     139            'HOME' => getenv( 'HOME' ),
     140        );
    138141        $key_file = null;
    139142
     
    163166
    164167        $git_bin_path = apply_filters( 'gitium_git_bin_path', '' );
    165         $cmd = "${git_bin_path}git $args 2>&1";
     168        $cmd = "{$git_bin_path}git $args 2>&1";
    166169
    167170        $proc = proc_open(
  • gitium/tags/1.0.7/inc/class-gitium-menu.php

    r2923946 r3146858  
    6060
    6161    public function disconnect_repository() {
    62         $gitium_disconnect_repo = filter_input(INPUT_POST, 'GitiumSubmitDisconnectRepository', FILTER_SANITIZE_STRING);
     62        $gitium_disconnect_repo = filter_input(INPUT_POST, 'GitiumSubmitDisconnectRepository', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    6363
    6464        if ( ! isset( $gitium_disconnect_repo ) ) {
     
    7474
    7575    public function show_message() {
    76         $get_message = filter_input(INPUT_GET, 'message', FILTER_SANITIZE_STRING);
    77         $get_success = filter_input(INPUT_GET, 'success', FILTER_SANITIZE_STRING);
     76        $get_message = filter_input(INPUT_GET, 'message', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
     77        $get_success = filter_input(INPUT_GET, 'success', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    7878        if ( isset( $get_message ) && $get_message ) {
    7979            $type    = ( isset( $get_success ) && $get_success == 1 ) ? 'updated' : 'error';
  • gitium/tags/1.0.7/inc/class-gitium-submenu-configure.php

    r1909349 r3146858  
    5353
    5454    public function regenerate_keypair() {
    55         $submit_keypair = filter_input(INPUT_POST, 'GitiumSubmitRegenerateKeypair', FILTER_SANITIZE_STRING);
     55        $submit_keypair = filter_input(INPUT_POST, 'GitiumSubmitRegenerateKeypair', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    5656        if ( ! isset( $submit_keypair ) ) {
    5757            return;
     
    6363
    6464    public function gitium_warning() {
    65         $submit_warning = filter_input(INPUT_POST, 'GitiumSubmitWarning', FILTER_SANITIZE_STRING);
     65        $submit_warning = filter_input(INPUT_POST, 'GitiumSubmitWarning', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    6666        if ( ! isset( $submit_warning ) ) {
    6767            return;
     
    8989
    9090    public function init_repo() {
    91         $remote_url = filter_input(INPUT_POST, 'remote_url', FILTER_SANITIZE_STRING);
    92         $gitium_submit_fetch = filter_input(INPUT_POST, 'GitiumSubmitFetch', FILTER_SANITIZE_STRING);
     91        $remote_url = filter_input(INPUT_POST, 'remote_url', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
     92        $gitium_submit_fetch = filter_input(INPUT_POST, 'GitiumSubmitFetch', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    9393        if ( ! isset( $gitium_submit_fetch ) || ! isset( $remote_url ) ) {
    9494            return;
     
    108108
    109109    public function choose_branch() {
    110         $gitium_submit_merge_push = filter_input(INPUT_POST, 'GitiumSubmitMergeAndPush', FILTER_SANITIZE_STRING);
    111         $tracking_branch = filter_input(INPUT_POST, 'tracking_branch', FILTER_SANITIZE_STRING);
     110        $gitium_submit_merge_push = filter_input(INPUT_POST, 'GitiumSubmitMergeAndPush', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
     111        $tracking_branch = filter_input(INPUT_POST, 'tracking_branch', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    112112        if ( ! isset( $gitium_submit_merge_push ) || ! isset( $tracking_branch ) ) {
    113113            return;
  • gitium/tags/1.0.7/inc/class-gitium-submenu-settings.php

    r1680884 r3146858  
    3939
    4040    public function regenerate_webhook() {
    41         $gitium_regen_webhook = filter_input(INPUT_POST, 'GitiumSubmitRegenerateWebhook', FILTER_SANITIZE_STRING);
     41        $gitium_regen_webhook = filter_input(INPUT_POST, 'GitiumSubmitRegenerateWebhook', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    4242        if ( ! isset( $gitium_regen_webhook ) ) {
    4343            return;
     
    4949
    5050    public function regenerate_public_key() {
    51         $submit_regenerate_pub_key = filter_input(INPUT_POST, 'GitiumSubmitRegeneratePublicKey', FILTER_SANITIZE_STRING);
     51        $submit_regenerate_pub_key = filter_input(INPUT_POST, 'GitiumSubmitRegeneratePublicKey', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    5252        if ( ! isset( $submit_regenerate_pub_key ) ) {
    5353            return;
     
    100100
    101101    public function save() {
    102         $submit_save = filter_input(INPUT_POST, 'GitiumSubmitSave', FILTER_SANITIZE_STRING);
    103         $gitignore_content = filter_input(INPUT_POST, 'gitignore_content', FILTER_SANITIZE_STRING);
     102        $submit_save = filter_input(INPUT_POST, 'GitiumSubmitSave', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
     103        $gitignore_content = filter_input(INPUT_POST, 'gitignore_content', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    104104        if ( ! isset( $submit_save ) || ! isset( $gitignore_content ) ) {
    105105            return;
  • gitium/tags/1.0.7/inc/class-gitium-submenu-status.php

    r1680884 r3146858  
    7878
    7979    public function save_ignorelist() {
    80         $gitium_ignore_path = filter_input(INPUT_POST, 'GitiumIgnorePath', FILTER_SANITIZE_STRING);
     80        $gitium_ignore_path = filter_input(INPUT_POST, 'GitiumIgnorePath', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    8181        if ( ! isset( $gitium_ignore_path ) ) {
    8282            return;
     
    9595
    9696    public function save_changes() {
    97         $gitium_save_changes = filter_input(INPUT_POST, 'GitiumSubmitSaveChanges', FILTER_SANITIZE_STRING);
    98         $gitium_commit_msg = filter_input(INPUT_POST, 'commitmsg', FILTER_SANITIZE_STRING);
     97        $gitium_save_changes = filter_input(INPUT_POST, 'GitiumSubmitSaveChanges', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
     98        $gitium_commit_msg = filter_input(INPUT_POST, 'commitmsg', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    9999        if ( ! isset( $gitium_save_changes ) ) {
    100100            return;
  • gitium/tags/1.0.7/readme.txt

    r2996937 r3146858  
    55Tags: git, version, versioning, deployment, version-control, github, bitbucket, travis, code, revision, testing, development, branch, production, staging, debug, plugin, gitium, presslabs, simple
    66Requires at least: 4.7
    7 Tested up to: 6.2.2
     7Tested up to: 6.6
    88Requires PHP: 5.6
    99License: GPLv2
    10 Stable tag: 1.0.6
     10Stable tag: 1.0.7
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1212
     
    5555
    5656= Manual Installation =
    57 1. Upload `gitium.zip` to the `/wp-content/plugins/` directory;
    58 2. Extract the `gitium.zip` archive into the `/wp-content/plugins/` directory;
    59 3. Activate the plugin through the 'Plugins' menu in WordPress.
    60 
    61 Alternatively, go into your WordPress dashboard and click on Plugins -> Add Plugin and search for `Gitium`. Then, click on Install and, after that, on Activate Now.
    62 
     57
     581. Go to your WordPress admin dashboard.
     592. Navigate to 'Plugins' → 'Add New'.
     603. Search for "Gitium".
     614. Install and activate the Gitium plugin.
    6362
    6463= Usage =
    6564
    66 Activate the plugin and follow the on-screen instructions under the `Gitium` menu.
    67 
    68 _IMPORTANT_: Gitium does its best not to version your WordPress core, neither your `/wp-content/uploads` folder.
     65- Connect Your Repository
     66After activation, go to the Gitium settings in your WordPress admin area.
     67Copy the Public Key that Gitium has generated for you from the Key Pair field.
     68In your repository manager of choice (GitHub, GitLab, or Bitbucket), go to the settings page and find the “Deploy keys” (or similar) section. There you will need to add the Public Key you’ve copied from Gitium. This will grant Gitium access to your repository. Make sure to allow write access as well. Also make sure that you copy the entire key from gitium.
     69Now go back to your main repository page and copy the SSH URL to your repo. Paste this URL in Gitium and press the “Fetch” button.
     70A “Repository initialized successfully” message will show up. This means that your repository has been populated with the current code of your website and it is ready to start working with Gitium.
     71
     72- Initial Commit
     73Once connected, Gitium will automatically commit your existing WordPress theme and plugins to the connected repository.
     74This initial commit serves as the baseline for your site’s code.
     75
     76- Making Changes
     77Make changes to your WordPress site’s code (themes, plugins) as needed.
     78Gitium will automatically commit these changes to your Git repository.
     79Using the webhook provided by Gitium, it will also automatically deploy the changes from the repository to your WordPress site.
     80
     81- Webook Configuration
     82Gitium uses the webhook to automatically deploy remote changes to your server. To configure it follow these steps:
     83    1. Go to your WordPress website and go to your Gitium Settings page;
     84    2. Copy the full Webhook URL that Gitium provides;
     85    3. In your Git Manager settings, go to Webhook section, add a new webhook and paste the webhook URL you have copied from Gitium.
     86    4. Press Add, no settings changes needed. The webook simply needs a ping, nothing more. The security key is already embedded in the final URL Gitium has generated for you.
     87
     88Now when you push to your repo, this webhook will automatically pull the changes to your remote server and deploy them.
     89
     90You can see more details about the plugin also in our documentation here: https://www.presslabs.com/docs/code/gitium/install-gitium/
    6991
    7092== Frequently Asked Questions ==
     
    96118Submodules are currently not supported.
    97119
     120= Where do I report security bugs found in this plugin? =
     121
     122Please report security bugs found in the source code of the Gitium plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/gitium). The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.
     123
    98124== Upgrade Notice ==
    99 = 1.0.5 =
    100 Fixed wrong redirection for multisite installations during initial setup
     125= 1.0.7 =
     126PHP8.1 compatibility, check if gitignore is already defined and add HOME env
    101127
    102128== Changelog ==
     129
     130= 1.0.7 =
     131* Fix: HOME env definition;
     132* Fix: deprecation warnings in PHP 8.1;
     133* Compat: added composer.json package;
     134* Compat: add the possibility to use a custom `.gitignore` by defining the `GITIGNORE` constant.
    103135
    104136= 1.0.6 =
  • gitium/trunk/functions.php

    r2923946 r3146858  
    194194
    195195    foreach ( $commit_groups as $base_path => $change ) {
    196         $commit_message = _gitium_format_message( $change['name'], $change['version'], "${change['action']} ${change['type']}" );
     196        $commit_message = _gitium_format_message( $change['name'], $change['version'], "{$change['action']} {$change['type']}" );
    197197        $commit = _gitium_commit_changes( "$commit_message $msg_append", $base_path, false );
    198198        if ( $commit ) {
  • gitium/trunk/gitium-webhook.php

    r1909349 r3146858  
    1919define( 'SHORTINIT', true );
    2020//$wordpress_loader = $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php';
    21 $wordpress_loader = filter_input(INPUT_SERVER, 'DOCUMENT_ROOT', FILTER_SANITIZE_STRING) . '/wp-load.php';
     21$wordpress_loader = filter_input(INPUT_SERVER, 'DOCUMENT_ROOT', FILTER_SANITIZE_FULL_SPECIAL_CHARS) . '/wp-load.php';
    2222
    2323require_once $wordpress_loader;
     
    2626
    2727$webhook_key = get_option( 'gitium_webhook_key', '' );
    28 $get_key = filter_input(INPUT_GET, 'key', FILTER_SANITIZE_STRING);
     28$get_key = filter_input(INPUT_GET, 'key', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    2929if ( ! empty ( $webhook_key ) && isset( $get_key ) && $webhook_key == $get_key ) :
    3030    ( '1.7' <= substr( $git->get_version(), 0, 3 ) ) or wp_die( 'Gitium plugin require minimum `git version 1.7`!' );
  • gitium/trunk/gitium.php

    r2996937 r3146858  
    22/**
    33 * Plugin Name: Gitium
    4  * Version: 1.0.6
     4 * Version: 1.0.7
    55 * Author: Presslabs
    66 * Author URI: https://www.presslabs.com
     
    1010 * Domain Path: /languages/
    1111 */
    12 /*  Copyright 2014-2016 Presslabs SRL <[email protected]>
     12/*  Copyright 2014-2024 Presslabs <[email protected]>
    1313
    1414    This program is free software; you can redistribute it and/or modify
  • gitium/trunk/inc/class-git-wrapper.php

    r2996931 r3146858  
    1616*/
    1717
    18 define('GITIGNORE', <<<EOF
     18if (!defined('GITIGNORE'))
     19    define('GITIGNORE', <<<EOF
    1920*.log
    2021*.swp
     
    135136
    136137    private function get_env() {
    137         $env      = array();
     138        $env      = array(
     139            'HOME' => getenv( 'HOME' ),
     140        );
    138141        $key_file = null;
    139142
     
    163166
    164167        $git_bin_path = apply_filters( 'gitium_git_bin_path', '' );
    165         $cmd = "${git_bin_path}git $args 2>&1";
     168        $cmd = "{$git_bin_path}git $args 2>&1";
    166169
    167170        $proc = proc_open(
  • gitium/trunk/inc/class-gitium-menu.php

    r2923946 r3146858  
    6060
    6161    public function disconnect_repository() {
    62         $gitium_disconnect_repo = filter_input(INPUT_POST, 'GitiumSubmitDisconnectRepository', FILTER_SANITIZE_STRING);
     62        $gitium_disconnect_repo = filter_input(INPUT_POST, 'GitiumSubmitDisconnectRepository', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    6363
    6464        if ( ! isset( $gitium_disconnect_repo ) ) {
     
    7474
    7575    public function show_message() {
    76         $get_message = filter_input(INPUT_GET, 'message', FILTER_SANITIZE_STRING);
    77         $get_success = filter_input(INPUT_GET, 'success', FILTER_SANITIZE_STRING);
     76        $get_message = filter_input(INPUT_GET, 'message', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
     77        $get_success = filter_input(INPUT_GET, 'success', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    7878        if ( isset( $get_message ) && $get_message ) {
    7979            $type    = ( isset( $get_success ) && $get_success == 1 ) ? 'updated' : 'error';
  • gitium/trunk/inc/class-gitium-submenu-configure.php

    r1909349 r3146858  
    5353
    5454    public function regenerate_keypair() {
    55         $submit_keypair = filter_input(INPUT_POST, 'GitiumSubmitRegenerateKeypair', FILTER_SANITIZE_STRING);
     55        $submit_keypair = filter_input(INPUT_POST, 'GitiumSubmitRegenerateKeypair', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    5656        if ( ! isset( $submit_keypair ) ) {
    5757            return;
     
    6363
    6464    public function gitium_warning() {
    65         $submit_warning = filter_input(INPUT_POST, 'GitiumSubmitWarning', FILTER_SANITIZE_STRING);
     65        $submit_warning = filter_input(INPUT_POST, 'GitiumSubmitWarning', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    6666        if ( ! isset( $submit_warning ) ) {
    6767            return;
     
    8989
    9090    public function init_repo() {
    91         $remote_url = filter_input(INPUT_POST, 'remote_url', FILTER_SANITIZE_STRING);
    92         $gitium_submit_fetch = filter_input(INPUT_POST, 'GitiumSubmitFetch', FILTER_SANITIZE_STRING);
     91        $remote_url = filter_input(INPUT_POST, 'remote_url', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
     92        $gitium_submit_fetch = filter_input(INPUT_POST, 'GitiumSubmitFetch', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    9393        if ( ! isset( $gitium_submit_fetch ) || ! isset( $remote_url ) ) {
    9494            return;
     
    108108
    109109    public function choose_branch() {
    110         $gitium_submit_merge_push = filter_input(INPUT_POST, 'GitiumSubmitMergeAndPush', FILTER_SANITIZE_STRING);
    111         $tracking_branch = filter_input(INPUT_POST, 'tracking_branch', FILTER_SANITIZE_STRING);
     110        $gitium_submit_merge_push = filter_input(INPUT_POST, 'GitiumSubmitMergeAndPush', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
     111        $tracking_branch = filter_input(INPUT_POST, 'tracking_branch', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    112112        if ( ! isset( $gitium_submit_merge_push ) || ! isset( $tracking_branch ) ) {
    113113            return;
  • gitium/trunk/inc/class-gitium-submenu-settings.php

    r1680884 r3146858  
    3939
    4040    public function regenerate_webhook() {
    41         $gitium_regen_webhook = filter_input(INPUT_POST, 'GitiumSubmitRegenerateWebhook', FILTER_SANITIZE_STRING);
     41        $gitium_regen_webhook = filter_input(INPUT_POST, 'GitiumSubmitRegenerateWebhook', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    4242        if ( ! isset( $gitium_regen_webhook ) ) {
    4343            return;
     
    4949
    5050    public function regenerate_public_key() {
    51         $submit_regenerate_pub_key = filter_input(INPUT_POST, 'GitiumSubmitRegeneratePublicKey', FILTER_SANITIZE_STRING);
     51        $submit_regenerate_pub_key = filter_input(INPUT_POST, 'GitiumSubmitRegeneratePublicKey', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    5252        if ( ! isset( $submit_regenerate_pub_key ) ) {
    5353            return;
     
    100100
    101101    public function save() {
    102         $submit_save = filter_input(INPUT_POST, 'GitiumSubmitSave', FILTER_SANITIZE_STRING);
    103         $gitignore_content = filter_input(INPUT_POST, 'gitignore_content', FILTER_SANITIZE_STRING);
     102        $submit_save = filter_input(INPUT_POST, 'GitiumSubmitSave', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
     103        $gitignore_content = filter_input(INPUT_POST, 'gitignore_content', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    104104        if ( ! isset( $submit_save ) || ! isset( $gitignore_content ) ) {
    105105            return;
  • gitium/trunk/inc/class-gitium-submenu-status.php

    r1680884 r3146858  
    7878
    7979    public function save_ignorelist() {
    80         $gitium_ignore_path = filter_input(INPUT_POST, 'GitiumIgnorePath', FILTER_SANITIZE_STRING);
     80        $gitium_ignore_path = filter_input(INPUT_POST, 'GitiumIgnorePath', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    8181        if ( ! isset( $gitium_ignore_path ) ) {
    8282            return;
     
    9595
    9696    public function save_changes() {
    97         $gitium_save_changes = filter_input(INPUT_POST, 'GitiumSubmitSaveChanges', FILTER_SANITIZE_STRING);
    98         $gitium_commit_msg = filter_input(INPUT_POST, 'commitmsg', FILTER_SANITIZE_STRING);
     97        $gitium_save_changes = filter_input(INPUT_POST, 'GitiumSubmitSaveChanges', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
     98        $gitium_commit_msg = filter_input(INPUT_POST, 'commitmsg', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    9999        if ( ! isset( $gitium_save_changes ) ) {
    100100            return;
  • gitium/trunk/readme.txt

    r2996937 r3146858  
    55Tags: git, version, versioning, deployment, version-control, github, bitbucket, travis, code, revision, testing, development, branch, production, staging, debug, plugin, gitium, presslabs, simple
    66Requires at least: 4.7
    7 Tested up to: 6.2.2
     7Tested up to: 6.6
    88Requires PHP: 5.6
    99License: GPLv2
    10 Stable tag: 1.0.6
     10Stable tag: 1.0.7
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1212
     
    5555
    5656= Manual Installation =
    57 1. Upload `gitium.zip` to the `/wp-content/plugins/` directory;
    58 2. Extract the `gitium.zip` archive into the `/wp-content/plugins/` directory;
    59 3. Activate the plugin through the 'Plugins' menu in WordPress.
    60 
    61 Alternatively, go into your WordPress dashboard and click on Plugins -> Add Plugin and search for `Gitium`. Then, click on Install and, after that, on Activate Now.
    62 
     57
     581. Go to your WordPress admin dashboard.
     592. Navigate to 'Plugins' → 'Add New'.
     603. Search for "Gitium".
     614. Install and activate the Gitium plugin.
    6362
    6463= Usage =
    6564
    66 Activate the plugin and follow the on-screen instructions under the `Gitium` menu.
    67 
    68 _IMPORTANT_: Gitium does its best not to version your WordPress core, neither your `/wp-content/uploads` folder.
     65- Connect Your Repository
     66After activation, go to the Gitium settings in your WordPress admin area.
     67Copy the Public Key that Gitium has generated for you from the Key Pair field.
     68In your repository manager of choice (GitHub, GitLab, or Bitbucket), go to the settings page and find the “Deploy keys” (or similar) section. There you will need to add the Public Key you’ve copied from Gitium. This will grant Gitium access to your repository. Make sure to allow write access as well. Also make sure that you copy the entire key from gitium.
     69Now go back to your main repository page and copy the SSH URL to your repo. Paste this URL in Gitium and press the “Fetch” button.
     70A “Repository initialized successfully” message will show up. This means that your repository has been populated with the current code of your website and it is ready to start working with Gitium.
     71
     72- Initial Commit
     73Once connected, Gitium will automatically commit your existing WordPress theme and plugins to the connected repository.
     74This initial commit serves as the baseline for your site’s code.
     75
     76- Making Changes
     77Make changes to your WordPress site’s code (themes, plugins) as needed.
     78Gitium will automatically commit these changes to your Git repository.
     79Using the webhook provided by Gitium, it will also automatically deploy the changes from the repository to your WordPress site.
     80
     81- Webook Configuration
     82Gitium uses the webhook to automatically deploy remote changes to your server. To configure it follow these steps:
     83    1. Go to your WordPress website and go to your Gitium Settings page;
     84    2. Copy the full Webhook URL that Gitium provides;
     85    3. In your Git Manager settings, go to Webhook section, add a new webhook and paste the webhook URL you have copied from Gitium.
     86    4. Press Add, no settings changes needed. The webook simply needs a ping, nothing more. The security key is already embedded in the final URL Gitium has generated for you.
     87
     88Now when you push to your repo, this webhook will automatically pull the changes to your remote server and deploy them.
     89
     90You can see more details about the plugin also in our documentation here: https://www.presslabs.com/docs/code/gitium/install-gitium/
    6991
    7092== Frequently Asked Questions ==
     
    96118Submodules are currently not supported.
    97119
     120= Where do I report security bugs found in this plugin? =
     121
     122Please report security bugs found in the source code of the Gitium plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/gitium). The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.
     123
    98124== Upgrade Notice ==
    99 = 1.0.5 =
    100 Fixed wrong redirection for multisite installations during initial setup
     125= 1.0.7 =
     126PHP8.1 compatibility, check if gitignore is already defined and add HOME env
    101127
    102128== Changelog ==
     129
     130= 1.0.7 =
     131* Fix: HOME env definition;
     132* Fix: deprecation warnings in PHP 8.1;
     133* Compat: added composer.json package;
     134* Compat: add the possibility to use a custom `.gitignore` by defining the `GITIGNORE` constant.
    103135
    104136= 1.0.6 =
Note: See TracChangeset for help on using the changeset viewer.