func (w *Worklog) Resolve(ctx context.Context, orgID *identity.ID,
	ident *apitypes.WorklogID) (*apitypes.WorklogResult, error) {

	item, err := w.Get(ctx, orgID, ident)
	if err != nil {
		return nil, err
	}

	if item == nil {
		return nil, nil
	}

	switch item.Type() {
	case apitypes.SecretRotateWorklogType:
		return &apitypes.WorklogResult{
			ID:      item.ID,
			State:   apitypes.ManualWorklogResult,
			Message: "Please set a new value for the secret at " + item.Subject,
		}, nil

	}

	return nil, nil
}
// Resolve attempts to resolve the worklog item in the given org with the given
// ident.
Resolve attempts to resolve the worklog item in the given org with the given
ident.
// Resolve attempts to resolve the worklog item in the given org with the given // ident .
func (w *Worklog) Resolve(ctx context.Context, orgID *identity.ID,
	ident *apitypes.WorklogID) (*apitypes.WorklogResult, error) {
	item, err := w.Get(ctx, orgID, ident)
	if err != nil {
		return nil, err
	}
	if item == nil {
		return nil, nil
	}
	switch item.Type() {
	case apitypes.SecretRotateWorklogType:
		return &apitypes.WorklogResult{
			ID:      item.ID,
			State:   apitypes.ManualWorklogResult,
			Message: "Please set a new value for the secret at " + item.Subject,
		}, nil
	}
	return nil, nil
}
func ( w * Worklog ) Resolve ( ctx context . Context , orgID * identity . ID , ident * apitypes . WorklogID ) ( * apitypes . WorklogResult , error ) { item , err := w . Get ( ctx , orgID , ident ) if err != nil { return nil , err } if item == nil { return nil , nil } switch item . Type ( ) { case apitypes . SecretRotateWorklogType : return & apitypes . WorklogResult { ID : item . ID , State : apitypes . ManualWorklogResult , Message : " " + item . Subject , } , nil } return nil , nil }
Resolve attempts to resolve the worklog item in the given org with the given
ident.
Resolve attempts to resolve the worklog item in the given org with the given ident .