mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-19 17:58:51 +00:00
Merge branch 'origin/main' into 'next-release/main'
This commit is contained in:
@@ -31,6 +31,10 @@ var secretCreateCmd = &cli.Command{
|
|||||||
ArgsUsage: "[repo-id|repo-full-name]",
|
ArgsUsage: "[repo-id|repo-full-name]",
|
||||||
Action: secretCreate,
|
Action: secretCreate,
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
|
&cli.StringFlag{
|
||||||
|
Name: "name",
|
||||||
|
Usage: "secret name",
|
||||||
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "value",
|
Name: "value",
|
||||||
Usage: "secret value",
|
Usage: "secret value",
|
||||||
|
@@ -56,6 +56,7 @@ async function loadContent(): Promise<Content> {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
name: docsHeader.name,
|
name: docsHeader.name,
|
||||||
|
slug: slugify(docsHeader.name, { lower: true, strict: true }),
|
||||||
url: docsHeader.url,
|
url: docsHeader.url,
|
||||||
icon: docsHeader.icon,
|
icon: docsHeader.icon,
|
||||||
description: docsHeader.description,
|
description: docsHeader.description,
|
||||||
@@ -92,7 +93,7 @@ async function contentLoaded({
|
|||||||
const pluginJsonPath = await createData(`plugin-${i}.json`, JSON.stringify(plugin));
|
const pluginJsonPath = await createData(`plugin-${i}.json`, JSON.stringify(plugin));
|
||||||
|
|
||||||
addRoute({
|
addRoute({
|
||||||
path: `/plugins/${slugify(plugin.name, { lower: true, strict: true })}`,
|
path: `/plugins/${plugin.slug}`,
|
||||||
component: '@theme/WoodpeckerPlugin',
|
component: '@theme/WoodpeckerPlugin',
|
||||||
modules: {
|
modules: {
|
||||||
plugin: pluginJsonPath,
|
plugin: pluginJsonPath,
|
||||||
|
@@ -8,7 +8,7 @@ import { WoodpeckerPlugin } from '../types';
|
|||||||
import { IconPlugin, IconVerified } from './Icons';
|
import { IconPlugin, IconVerified } from './Icons';
|
||||||
|
|
||||||
function PluginPanel({ plugin }: { plugin: WoodpeckerPlugin }) {
|
function PluginPanel({ plugin }: { plugin: WoodpeckerPlugin }) {
|
||||||
const pluginUrl = `/plugins/${plugin.name}`;
|
const pluginUrl = `/plugins/${plugin.slug}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<a href={pluginUrl} className="card shadow--md wp-plugin-card">
|
<a href={pluginUrl} className="card shadow--md wp-plugin-card">
|
||||||
|
@@ -17,6 +17,7 @@ export type WoodpeckerPluginIndexEntry = {
|
|||||||
|
|
||||||
export type WoodpeckerPlugin = WoodpeckerPluginHeader & {
|
export type WoodpeckerPlugin = WoodpeckerPluginHeader & {
|
||||||
name: string;
|
name: string;
|
||||||
|
slug: string;
|
||||||
docs: string; // body of the docs .md file
|
docs: string; // body of the docs .md file
|
||||||
verified: boolean; // we set verified to false when not explicitly set
|
verified: boolean; // we set verified to false when not explicitly set
|
||||||
iconDataUrl?: string;
|
iconDataUrl?: string;
|
||||||
|
Reference in New Issue
Block a user