// Copyright 2017 The Gogs Authors. All rights reserved.// Use of this source code is governed by a MIT-style// license that can be found in the LICENSE file.packageerrorsimport"fmt"typeInvalidIssueReferencestruct{Refstring}funcIsInvalidIssueReference(errerror)bool{_,ok:=err.(InvalidIssueReference)returnok}func(errInvalidIssueReference)Error()string{returnfmt.Sprintf("invalid issue reference [ref: %s]",err.Ref)}