Skip to content

Commit 126e232

Browse files
authored
Merge pull request #87 from thathoff/panel
Draft: Release v5.0.0
2 parents 72e0794 + efd1d98 commit 126e232

File tree

13 files changed

+490
-155
lines changed

13 files changed

+490
-155
lines changed

.github/screenshot.png

127 KB
Loading

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ node_modules/
22
.DS_Store
33
.idea/
44
vendor/
5+
composer.lock
6+
yarn.lock
7+
vendor
8+
kirby

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
<a name="5.0.0"></a>
2+
# [5.0.0](https://github.com/thathoff/kirby-git-content/compare/v4.0.1...4.1.0) (2022-08-08)
3+
4+
### Features
5+
- only add modified files with `git add` instead of iterating over entire directory tree (`git add .`) (see #90)
6+
- Add overview panel
7+
- see remote synchronization status (like `git status`)
8+
- see modified files that have not been committed (like `git status`)
9+
- push and pull using buttons (see #85)
10+
- show plugin information in Kirby plugin overview
11+
12+
### Bugfixes
13+
- catch git errors that are caused by race conditions (see #84)
14+
- inform about exclusion of Kirby .lock files in README.md (see #81)
15+
16+
### BREAKING CHANGES
17+
- Plugin only supports Kirby 3.6 and upwards and git 2.24 and upwards
18+
19+
120
<a name="4.1.0"></a>
221
# [4.1.0](https://github.com/thathoff/kirby-git-content/compare/v4.0.1...4.1.0) (2021-02-19)
322

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Kirby - Git Content
22

3-
This is a plugin for [Kirby 3](http://getkirby.com/) that commits and pushes changes made via the Panel to your git repository.
3+
This is a plugin for [Kirby 3](http://getkirby.com/) that commits and pushes content changes made via the Panel to your git repository.
44

5-
**⚠️ The current version only supports Kirby 3. For Kirby 2 support please use version 2 of this plugin.**
5+
![Screnshot of Panel Area](/.github/screenshot.png?raw=true)
6+
7+
## Requirements
8+
9+
This plugin supports **Kirby from version 3.6** and requires **git version > 2.24**
610

711
## Usage
812

@@ -34,6 +38,14 @@ git commit -m "Initial Content Commit"
3438
git push origin master
3539
```
3640

41+
Optional step: We advise you to include `.lock` files into the .gitignore of your newly created content repository.
42+
43+
```bash
44+
echo ".lock" >> .gitignore
45+
```
46+
47+
That's it! The plugin should work as of now.
48+
3749
### Download and configure the Plugin
3850

3951
`composer require thathoff/kirby-git-content`
@@ -69,17 +81,15 @@ return [
6981
#### Configuration Options
7082

7183
- `path` (String): Path to the repository, (default: `kirby()->root("content")`)
72-
- `branch` (String): branch name to be checked out (default: currently checked out branch)
7384
- `pull` (Boolean): Pull remote changes first? (default: `false`)
7485
- `commit` (Boolean): Commit your changes? (default: `true`)
7586
- `push` (Boolean): Push your changes to remote? (default: `false`)
7687
- `commitMessage` (String): Configure the template for the commit message (default: `:action:(:item:): :url:`)
7788
- `cronHooksEnabled` (Boolean): Whether `/git-content/push` and `/git-content/pull` endpoints are enabled or not. (default: `true`)
7889
- `cronHooksSecret` (String): When set, this secret must be sent with the cronHooks as a get parameter. Note: If you set
7990
a secret, only the GET method will work on the webhooks. `/git-content/(pull|push)?secret=S0up3rS3c3t`
80-
- `displayErrors` (Boolean): Display git errors when saving pages (default: `false`)
81-
- `gitBin` (String): Path to the `git` binary, [See Git.php](http://kbjr.github.io/Git.php/) `Git::set_bin(string $path)`
82-
- `windowsMode` (Boolean): [See Git.php](http://kbjr.github.io/Git.php/) `Git::windows_mode()` (default: `false`)
91+
- `displayErrors` (Boolean): Display git errors when saving pages (default: `true`)
92+
- `gitBin` (String): Path to the `git` binary
8393
- `disable` (Boolean): If set to `true`, the plugin won't initialize. (default: `false`)
8494

8595
#### Custom Commit Message
@@ -103,5 +113,6 @@ cloning and updating your content repository can take a lot of time. If you are
103113

104114
## Authors
105115

106-
- Pascal 'Pascalmh' Küsgen <http://pascalmh.de>
107-
- Markus Denhoff <https://markus.denhoff.com>
116+
Maintained and developed by [Markus Denhoff](https://markus.denhoff.com) and [Contributors](https://github.com/thathoff/kirby-git-content/graphs/contributors). Initial version by [Pascal Küsgen](https://github.com/Pascalmh).
117+
118+
Supported by [reinorange GmbH](https://reinorange.com).

composer.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,19 @@
33
"description": "Plugin to track changes to content in a git repository.",
44
"type": "kirby-plugin",
55
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Markus Denhoff",
9+
"email": "markus@denhoff.com"
10+
}
11+
],
12+
"support": {
13+
"issues": "https://github.com/thathoff/kirby-git-content/issues",
14+
"source": "https://github.com/thathoff/kirby-git-content"
15+
},
616
"require": {
7-
"coyl/git": "^0.1.7",
17+
"czproject/git-php": "^4.0.1",
18+
"getkirby/cms": "^3.6.0",
819
"getkirby/composer-installer": "^1.1"
920
},
1021
"autoload": {

index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)