repo: Admin can override default expected tag
This commit is contained in:
parent
20016a99c6
commit
1859a715df
3 changed files with 34 additions and 4 deletions
|
|
@ -54,10 +54,11 @@ export class WorkRepository {
|
|||
}
|
||||
}
|
||||
|
||||
async retrieveWork() {
|
||||
async retrieveWork(tag) {
|
||||
const res = await fetch(this.id_work?`api/works/${this.id_work}/repositories/${this.id}/trigger`:`api/repositories/${this.id}/trigger`, {
|
||||
method: 'POST',
|
||||
headers: {'Accept': 'application/json'}
|
||||
headers: {'Accept': 'application/json'},
|
||||
body: !tag || tag.length == 0?null:JSON.stringify(tag)
|
||||
});
|
||||
if (res.status == 200) {
|
||||
const data = await res.json();
|
||||
|
|
|
|||
Reference in a new issue