forked from kevadesu/forgejo
feat: upgrade F3 to v3.7.0
* support changing label colors * support changing issue state * use helpers to keep type conversions DRY * drop the x/exp license because it is no longer used The tests are performed by the gof3 compliance suite
This commit is contained in:
parent
4760c5029d
commit
b26a0aea19
23 changed files with 50 additions and 56 deletions
|
@ -96,7 +96,7 @@ func (o *project) FromFormat(content f3.Interface) {
|
|||
func (o *project) Get(ctx context.Context) bool {
|
||||
node := o.GetNode()
|
||||
o.Trace("%s", node.GetID())
|
||||
id := f3_util.ParseInt(string(node.GetID()))
|
||||
id := node.GetID().Int64()
|
||||
u, err := repo_model.GetRepositoryByID(ctx, id)
|
||||
if repo_model.IsErrRepoNotExist(err) {
|
||||
return false
|
||||
|
@ -166,7 +166,7 @@ func (o *project) Put(ctx context.Context) generic.NodeID {
|
|||
o.forgejoProject = repo
|
||||
o.Trace("project created %d", o.forgejoProject.ID)
|
||||
}
|
||||
return generic.NodeID(fmt.Sprintf("%d", o.forgejoProject.ID))
|
||||
return generic.NewNodeID(o.forgejoProject.ID)
|
||||
}
|
||||
|
||||
func (o *project) Delete(ctx context.Context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue