Streamline the release process with forgejo actions #74

Merged
linos merged 29 commits from prepare_first_release into main 2024-10-29 21:13:00 +01:00
3 changed files with 6 additions and 6 deletions
Showing only changes of commit 4cd1ef4aa0 - Show all commits

View file

@ -47,7 +47,7 @@ class Health_Check {
*/
public static function test_event_transformation() {
$result = array(
'label' => \__( 'Transformation of Events to a valid ActivityStreams representation.', 'activitypub' ),
'label' => \__( 'Transformation of Events to a valid ActivityStreams representation.', 'activitypub-event-bridge' ),
'status' => 'good',
'badge' => array(
'label' => \__( 'ActivityPub Event Bridge', 'activitypub-event-bridge' ),
@ -172,7 +172,7 @@ class Health_Check {
'label' => __( 'ActivityPub Event Bridge', 'activitypub-event-bridge' ),
'fields' => array(
'plugin_version' => array(
'label' => __( 'Plugin Version', 'activitypub' ),
'label' => __( 'Plugin Version', 'activitypub-event-bridge' ),
'value' => ACTIVITYPUB_EVENT_BRIDGE_PLUGIN_VERSION,
'private' => true,
),

View file

@ -44,7 +44,7 @@ class Settings {
'activitypub_event_bridge_default_event_category',
array(
'type' => 'string',
'description' => \__( 'Define your own custom post template', 'activitypub' ),
'description' => \__( 'Define your own custom post template', 'activitypub-event-bridge' ),
'show_in_rest' => true,
'default' => self::DEFAULT_EVENT_CATEGORY,
'sanitize_callback' => array( self::class, 'sanitize_mapped_event_category' ),
@ -56,7 +56,7 @@ class Settings {
'activitypub_event_bridge_event_category_mappings',
array(
'type' => 'array',
'description' => \__( 'Define your own custom post template', 'activitypub' ),
'description' => \__( 'Define your own custom post template', 'activitypub-event-bridge' ),
'default' => array(),
'sanitize_callback' => array( self::class, 'sanitize_event_category_mappings' ),
)
@ -67,7 +67,7 @@ class Settings {
'activitypub_event_bridge_initially_activated',
array(
'type' => 'boolean',
'description' => \__( 'Whether the plugin just got activated for the first time.', 'activitypub' ),
'description' => \__( 'Whether the plugin just got activated for the first time.', 'activitypub-event-bridge' ),
'default' => 1,
)
);

View file

@ -285,7 +285,7 @@ class Setup {
foreach ( $this->active_event_plugins as $event_plugin ) {
if ( ! in_array( $event_plugin->get_post_type(), $activitypub_supported_post_types, true ) ) {
$activitypub_supported_post_types[] = $event_plugin->get_post_type();
add_post_type_support( $event_plugin->get_post_type(), 'activitypub' );
add_post_type_support( $event_plugin->get_post_type(), 'activitypub-event-bridge' );
}
}
update_option( 'activitypub_support_post_types', $activitypub_supported_post_types );