0
0
mirror of https://github.com/thegeeklab/wp-github-comment.git synced 2024-11-21 13:50:40 +00:00

bump wp-plugin-go to v0.5.0 (#9)

This commit is contained in:
Robert Kaussow 2023-08-21 11:35:57 +02:00 committed by GitHub
parent a21e945a6f
commit aabb5b6075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 6 deletions

2
go.mod
View File

@ -5,7 +5,7 @@ go 1.21
require (
github.com/google/go-github/v54 v54.0.0
github.com/rs/zerolog v1.30.0
github.com/thegeeklab/wp-plugin-go v0.4.0
github.com/thegeeklab/wp-plugin-go v0.5.0
github.com/urfave/cli/v2 v2.25.7
golang.org/x/oauth2 v0.11.0
)

2
go.sum
View File

@ -34,6 +34,8 @@ github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/thegeeklab/wp-plugin-go v0.4.0 h1:eTkRH04gAAsYgCUekk8RBmPrIXk+UG+EJtRkoUFllLs=
github.com/thegeeklab/wp-plugin-go v0.4.0/go.mod h1:y0k5zaKWjdGbgkaOHhEPFEL6p+yOLOjqHy0LWOrv0MM=
github.com/thegeeklab/wp-plugin-go v0.5.0 h1:PEORQl365YxqqYSu8rFoQ3hltTcFYSJCs8s9MDCej8A=
github.com/thegeeklab/wp-plugin-go v0.5.0/go.mod h1:y0k5zaKWjdGbgkaOHhEPFEL6p+yOLOjqHy0LWOrv0MM=
github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs=
github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ=
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU=

View File

@ -10,16 +10,13 @@ import (
"github.com/google/go-github/v54/github"
"github.com/rs/zerolog/log"
"github.com/urfave/cli/v2"
"golang.org/x/oauth2"
)
var ErrPluginEventNotSupported = errors.New("event not supported")
// Execute provides the implementation of the plugin.
//
//nolint:revive
func (p *Plugin) run(ctx context.Context, cCtx *cli.Context) error {
func (p *Plugin) run(ctx context.Context) error {
if err := p.Validate(); err != nil {
return fmt.Errorf("validation failed: %w", err)
}

View File

@ -6,7 +6,7 @@ import (
wp "github.com/thegeeklab/wp-plugin-go/plugin"
)
// Plugin implements provide the plugin implementation.
// Plugin implements provide the plugin.
type Plugin struct {
*wp.Plugin
Settings *Settings