Skip to content

Commit 9d2e7c0

Browse files
authored
Merge pull request #6 from wpfresher/release/1.1.0
Prepare Release v1.1.0
2 parents 03ebdb2 + 5a4c212 commit 9d2e7c0

19 files changed

Lines changed: 1349 additions & 781 deletions

.assets/images/overlay-shape.png

-1.42 MB
Binary file not shown.

.assets/images/overlay-shape2.png

-230 KB
Binary file not shown.

.distignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ Thumbs.db
7575
*.*.map
7676

7777
# Build related files
78-
/src
78+
/resources
7979
/blueprint.json
8080

81-
# Ignore all extra files in the root directory
81+
# Plugin specific files
8282
/roadmap.md

.github/workflows/release.yml

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -171,44 +171,35 @@ jobs:
171171
172172
- name: Send Slack notification
173173
if: always()
174-
uses: slackapi/slack-github-action@v1.18.0
174+
uses: slackapi/slack-github-action@v2.1.1
175175
with:
176+
webhook-type: webhook-trigger
176177
payload: |
177178
{
178179
"channel": "#announcement",
179-
"text": "WordPress.org release of *Image Generator* version *${{ env.TAG_NAME }}* has *${{ job.status == 'success' && 'succeeded ✅' || job.status == 'failure' && 'failed ❌' || 'been cancelled' }}*",
180-
"attachments": [
180+
"username": "Beautiful Plugins Bot",
181+
"icon_emoji": ":rocket:",
182+
"blocks": [
181183
{
182-
"color": "${{ job.status == 'success' && 'good' || job.status == 'failure' && 'danger' || 'warning' }}",
183-
"fields": [
184-
{
185-
"title": "Version",
186-
"value": "${{ env.TAG_NAME }}",
187-
"short": true
188-
},
189-
{
190-
"title": "Status",
191-
"value": "${{ job.status }}",
192-
"short": true
193-
},
194-
{
195-
"title": "Repository",
196-
"value": "${{ github.repository }}",
197-
"short": true
198-
},
199-
{
200-
"title": "Triggered by",
201-
"value": "${{ github.actor }}",
202-
"short": true
203-
}
204-
],
205-
"actions": [
206-
{
207-
"type": "button",
208-
"text": "View Workflow Run",
209-
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
210-
}
211-
]
184+
"type": "section",
185+
"text": {
186+
"type": "mrkdwn",
187+
"text": "*${{ github.actor }}*\n:package: *Artificial Image Generator v${{ env.TAG_NAME }} has been released!*"
188+
}
189+
},
190+
{
191+
"type": "section",
192+
"text": {
193+
"type": "mrkdwn",
194+
"text": "Hello team! Version *v${{ env.TAG_NAME }}* of Artificial Image Generator has been successfully released! Check it out at <https://wordpress.org/plugins/artificial-image-generator|wordpress.org/plugins/artificial-image-generator>. Please take a moment to test the new version and share your feedback or report any issues!"
195+
}
196+
},
197+
{
198+
"type": "section",
199+
"text": {
200+
"type": "mrkdwn",
201+
"text": ":tada: Well done, team! Let's keep the momentum going!"
202+
}
212203
}
213204
]
214205
}

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,5 @@ codeception.yml
4747
/tests/_data/dump.sql
4848
.env.testing
4949

50-
# Framework specific
51-
lib
52-
53-
# Build files
50+
# Build related files
5451
/assets
55-

Gruntfile.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ module.exports = function( grunt ) {
2323
'*.php',
2424
'**/*.php',
2525
'!node_modules/**',
26-
'!tests/**',
2726
'!vendor/**',
2827
],
2928
},
@@ -54,7 +53,6 @@ module.exports = function( grunt ) {
5453
'**/*.php',
5554
'!packages/**',
5655
'!node_modules/**',
57-
'!tests/**',
5856
'!vendor/**',
5957
],
6058
expand: true,
@@ -64,7 +62,7 @@ module.exports = function( grunt ) {
6462
target: {
6563
options: {
6664
domainPath: 'languages',
67-
exclude: [ 'packages/*', '.git/*', 'node_modules/*', 'tests/*' ],
65+
exclude: [ 'packages/*', '.git/*', 'node_modules/*' ],
6866
mainFile: 'artificial-image-generator.php',
6967
potFilename: 'artificial-image-generator.pot',
7068
potHeaders: {

artificial-image-generator.php

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
* Plugin Name: Image Generator
44
* Plugin URI: https://beautifulplugins.com/image-generator/
55
* Description: Generate AI-powered images automatically across your WordPress site. Create stunning visuals for posts, pages, and more with ease.
6-
* Version: 1.0.0
6+
* Version: 1.1.0
77
* Requires at least: 5.0
88
* Requires PHP: 7.4
9+
* Tested up to: 6.9
910
* Author: BeautifulPlugins
1011
* Author URI: https://beautifulplugins.com
11-
* License: GPLv2 or later
12+
* License: GPL v2 or later
1213
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
1314
* Text Domain: artificial-image-generator
1415
* Domain Path: /languages
15-
* Tested up to: 6.9
1616
*
1717
* @package ArtificialImageGenerator
1818
*
@@ -29,23 +29,19 @@
2929

3030
use ArtificialImageGenerator\Plugin;
3131

32-
defined( 'ABSPATH' ) || exit; // Prevent direct access.
32+
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
3333

34-
/**
35-
* Optimized autoload classes.
36-
*
37-
* @since 1.0.0
38-
*/
34+
// Autoload optimized classes.
3935
require_once __DIR__ . '/vendor/autoload.php';
4036

4137
/**
4238
* Get the plugin instance.
4339
*
4440
* @since 1.0.0
45-
* @return Plugin
41+
* @return Plugin The plugin instance.
4642
*/
4743
function artificial_image_generator() {
48-
return Plugin::create( __FILE__, '1.0.0' );
44+
return Plugin::create( __FILE__, '1.1.0' );
4945
}
5046

5147
// Initialize the plugin.

blueprint.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"landingPage": "/wp-admin/admin.php?page=artificial-image-generator",
33
"preferredVersions": {
4-
"php": "7.4",
5-
"wp": "5.2"
4+
"php": "8.2",
5+
"wp": "5.9"
66
},
77
"phpExtensionBundles": [
88
"kitchen-sink"

composer.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
"license": "GPL-2.0-or-later",
77
"prefer-stable": true,
88
"minimum-stability": "dev",
9-
"repositories": [],
10-
"require-dev": {},
119
"require": {
1210
"php": ">=7.4"
1311
},
@@ -24,14 +22,12 @@
2422
"dealerdirect/phpcodesniffer-composer-installer": false
2523
}
2624
},
27-
"autoload-dev": {},
2825
"scripts": {
2926
"post-install-cmd": [
3027
"composer dump-autoload"
3128
],
3229
"post-update-cmd": [
3330
"composer dump-autoload"
3431
]
35-
},
36-
"extra": {}
32+
}
3733
}

includes/PostTypes.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ public function __construct() {
3131
public static function register_cpt() {
3232
$labels = array(
3333
'name' => _x( 'Image Templates', 'post type general name', 'artificial-image-generator' ),
34-
'singular_name' => _x( 'Images Template', 'post type singular name', 'artificial-image-generator' ),
34+
'singular_name' => _x( 'Image Template', 'post type singular name', 'artificial-image-generator' ),
3535
'menu_name' => _x( 'Image Templates', 'admin menu', 'artificial-image-generator' ),
36-
'name_admin_bar' => _x( 'Images Template', 'add new on admin bar', 'artificial-image-generator' ),
36+
'name_admin_bar' => _x( 'Image Templates', 'add new on admin bar', 'artificial-image-generator' ),
3737
'add_new' => _x( 'Add New', 'ticket', 'artificial-image-generator' ),
3838
'add_new_item' => __( 'Add New Images Template', 'artificial-image-generator' ),
3939
'new_item' => __( 'New Images Template', 'artificial-image-generator' ),
40-
'edit_item' => __( 'Edit Images Template', 'artificial-image-generator' ),
41-
'view_item' => __( 'View Images Template', 'artificial-image-generator' ),
40+
'edit_item' => __( 'Edit Image Template', 'artificial-image-generator' ),
41+
'view_item' => __( 'View Image Template', 'artificial-image-generator' ),
4242
'all_items' => __( 'All Image Templates', 'artificial-image-generator' ),
4343
'search_items' => __( 'Search Image Templates', 'artificial-image-generator' ),
4444
'parent_item_colon' => __( 'Parent Image Templates:', 'artificial-image-generator' ),

0 commit comments

Comments
 (0)