gitea/cmd
Rowan Bohde 8de8972baf
fix: allow actions artifacts storage migration to complete succesfully ()
Change the copy to use `ActionsArtifact.StoragePath` instead of the
`ArtifactPath`. Skip artifacts that are expired, and don't error if the
file to copy does not exist.

---

When trying to migrate actions artifact storage from local to MinIO, we
encountered errors that prevented the process from completing
successfully:

* The migration tries to copy the files using the per-run
`ArtifactPath`, instead of the unique `StoragePath`.
* Artifacts that have been marked expired and had their files deleted
would throw an error
* Artifacts that are pending, but don't have a file uploaded yet will
throw an error.

This PR addresses these cases, and allow the process to complete
successfully.
..
actions.go Return `responseText` instead of string in some functions ()
admin.go Simplify how git repositories are opened ()
admin_auth.go chore: use errors.New to replace fmt.Errorf with no parameters will much better ()
admin_auth_ldap.go Penultimate round of `db.DefaultContext` refactor ()
admin_auth_ldap_test.go Penultimate round of `db.DefaultContext` refactor ()
admin_auth_oauth.go chore: use errors.New to replace fmt.Errorf with no parameters will much better ()
admin_auth_stmp.go chore: use errors.New to replace fmt.Errorf with no parameters will much better ()
admin_regenerate.go Move some asymkey functions to service layer ()
admin_user.go Refactor to use urfave/cli/v2 ()
admin_user_change_password.go Add some tests to clarify the "must-change-password" behavior ()
admin_user_create.go Add some tests to clarify the "must-change-password" behavior ()
admin_user_create_test.go Add some tests to clarify the "must-change-password" behavior ()
admin_user_delete.go chore: use errors.New to replace fmt.Errorf with no parameters will much better ()
admin_user_generate_access_token.go chore: use errors.New to replace fmt.Errorf with no parameters will much better ()
admin_user_list.go Reduce usage of `db.DefaultContext` ()
admin_user_must_change_password.go Refactor to use urfave/cli/v2 ()
cert.go Expanded minimum RSA Keylength to 3072 ()
cmd.go Refactor to use urfave/cli/v2 ()
docs.go Refactor to use urfave/cli/v2 ()
doctor.go Move doctor package from modules to services ()
doctor_convert.go Recommend/convert to use case-sensitive collation for MySQL/MSSQL ()
doctor_test.go Move doctor package from modules to services ()
dump.go Add --skip-db option to dump command ()
dump_repo.go Refactor to use urfave/cli/v2 ()
embedded.go chore: use errors.New to replace fmt.Errorf with no parameters will much better ()
generate.go Refactor JWT secret generating & decoding code ()
hook.go Move database operations of merging a pull request to post receive hook and add a transaction ()
hook_test.go Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" ()
keys.go Refactor cmd setup and remove deadcode ()
mailer.go Return `responseText` instead of string in some functions ()
main.go Add some tests to clarify the "must-change-password" behavior ()
main_test.go Add some tests to clarify the "must-change-password" behavior ()
manager.go Refactor to use urfave/cli/v2 ()
manager_logging.go chore: use errors.New to replace fmt.Errorf with no parameters will much better ()
migrate.go Refactor to use urfave/cli/v2 ()
migrate_storage.go fix: allow actions artifacts storage migration to complete succesfully ()
migrate_storage_test.go Another round of `db.DefaultContext` refactor ()
restore_repo.go Refactor to use urfave/cli/v2 ()
serv.go Make sure git version&feature are always prepared ()
web.go Clean up log messages ()
web_acme.go Implement FSFE REUSE for golang files ()
web_graceful.go Implement FSFE REUSE for golang files ()
web_https.go Implement FSFE REUSE for golang files ()