mirror of
https://github.com/go-gitea/gitea
synced 2024-12-23 21:05:54 +01:00
backport #29734
This commit is contained in:
parent
4bfc43ef8d
commit
8c31456a87
@ -1360,7 +1360,7 @@ func registerRoutes(m *web.Route) {
|
|||||||
})
|
})
|
||||||
m.Post("/cancel", reqRepoActionsWriter, actions.Cancel)
|
m.Post("/cancel", reqRepoActionsWriter, actions.Cancel)
|
||||||
m.Post("/approve", reqRepoActionsWriter, actions.Approve)
|
m.Post("/approve", reqRepoActionsWriter, actions.Approve)
|
||||||
m.Post("/artifacts", actions.ArtifactsView)
|
m.Get("/artifacts", actions.ArtifactsView)
|
||||||
m.Get("/artifacts/{artifact_name}", actions.ArtifactsDownloadView)
|
m.Get("/artifacts/{artifact_name}", actions.ArtifactsDownloadView)
|
||||||
m.Post("/rerun", reqRepoActionsWriter, actions.Rerun)
|
m.Post("/rerun", reqRepoActionsWriter, actions.Rerun)
|
||||||
})
|
})
|
||||||
|
@ -5,7 +5,7 @@ import {createApp} from 'vue';
|
|||||||
import {toggleElem} from '../utils/dom.js';
|
import {toggleElem} from '../utils/dom.js';
|
||||||
import {getCurrentLocale} from '../utils.js';
|
import {getCurrentLocale} from '../utils.js';
|
||||||
import {renderAnsi} from '../render/ansi.js';
|
import {renderAnsi} from '../render/ansi.js';
|
||||||
import {POST} from '../modules/fetch.js';
|
import {GET, POST} from '../modules/fetch.js';
|
||||||
|
|
||||||
const sfc = {
|
const sfc = {
|
||||||
name: 'RepoActionView',
|
name: 'RepoActionView',
|
||||||
@ -196,7 +196,7 @@ const sfc = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async fetchArtifacts() {
|
async fetchArtifacts() {
|
||||||
const resp = await POST(`${this.actionsURL}/runs/${this.runIndex}/artifacts`);
|
const resp = await GET(`${this.actionsURL}/runs/${this.runIndex}/artifacts`);
|
||||||
return await resp.json();
|
return await resp.json();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user