This commit is contained in:
xuwei-k
2021-08-09 16:25:55 +09:00
parent 5932fce303
commit 2776e00004
3 changed files with 6 additions and 6 deletions

View File

@@ -685,7 +685,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
getPathObjectId(git, path, revCommit).map {
objectId =>
if (raw) {
// Download (This route is left for backword compatibility)
// Download (This route is left for backward compatibility)
responseRawFile(git, objectId, path, repository)
} else {
val info = EditorConfigUtil.getEditorConfigInfo(git, id, path)

View File

@@ -86,7 +86,7 @@ trait ApiReleaseControllerBase extends ControllerBase {
/**
* vi. Edit a release
* https://developer.github.com/v3/repos/releases/#edit-a-release
* Incompatiblity info: GitHub API requires :release_id, but GitBucket API requires :tag_name
* Incompatibility info: GitHub API requires :release_id, but GitBucket API requires :tag_name
*/
patch("/api/v3/repos/:owner/:repository/releases/:tag")(writableUsersOnly { repository =>
(for {
@@ -103,7 +103,7 @@ trait ApiReleaseControllerBase extends ControllerBase {
/**
* vii. Delete a release
* https://developer.github.com/v3/repos/releases/#delete-a-release
* Incompatiblity info: GitHub API requires :release_id, but GitBucket API requires :tag_name
* Incompatibility info: GitHub API requires :release_id, but GitBucket API requires :tag_name
*/
delete("/api/v3/repos/:owner/:repository/releases/:tag")(writableUsersOnly { repository =>
val tag = params("tag")

View File

@@ -1,18 +1,18 @@
@(account: gitbucket.core.model.Account,
personalTokens: List[gitbucket.core.model.AccessToken],
gneratedToken: Option[(gitbucket.core.model.AccessToken, String)])(implicit context: gitbucket.core.controller.Context)
generatedToken: Option[(gitbucket.core.model.AccessToken, String)])(implicit context: gitbucket.core.controller.Context)
@gitbucket.core.html.main("Applications"){
@gitbucket.core.account.html.menu("application", context.loginAccount.get.userName, false){
<div class="panel panel-default">
<div class="panel-heading strong">Personal access tokens</div>
<div class="panel-body">
@if(personalTokens.isEmpty && gneratedToken.isEmpty){
@if(personalTokens.isEmpty && generatedToken.isEmpty){
No tokens.
} else {
Tokens you have generated which can be used to access the GitBucket API.
<hr style="margin-top: 10px;">
}
@gneratedToken.map { case (token, tokenString) =>
@generatedToken.map { case (token, tokenString) =>
<div class="alert alert-info">
Make sure to copy your new personal access token now. You won't be able to see it again!
</div>