forked from forgejo/forgejo
finish create issue with milestone
This commit is contained in:
parent
922f3f3062
commit
09a1b2a1f5
10 changed files with 257 additions and 155 deletions
|
@ -267,7 +267,8 @@ func (err ErrLabelNotExist) Error() string {
|
|||
// \/ \/ \/ \/ \/
|
||||
|
||||
type ErrMilestoneNotExist struct {
|
||||
ID int64
|
||||
ID int64
|
||||
RepoID int64
|
||||
}
|
||||
|
||||
func IsErrMilestoneNotExist(err error) bool {
|
||||
|
@ -276,5 +277,5 @@ func IsErrMilestoneNotExist(err error) bool {
|
|||
}
|
||||
|
||||
func (err ErrMilestoneNotExist) Error() string {
|
||||
return fmt.Sprintf("milestone does not exist [id: %d]", err.ID)
|
||||
return fmt.Sprintf("milestone does not exist [id: %d, repo_id: %d]", err.ID, err.RepoID)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue