Template issue class
This commit is contained in:
parent
e76bd94617
commit
baa2983231
@ -22,6 +22,7 @@ fetch(url).then((res) => {
|
||||
res.json().then((data) => {
|
||||
console.log('Got data ');
|
||||
console.log(data);
|
||||
console.log(data.labels);
|
||||
})
|
||||
})
|
||||
|
||||
|
21
src/issue.ts
Normal file
21
src/issue.ts
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
class Issue {
|
||||
constructor(
|
||||
public title: String,
|
||||
public desc: String,
|
||||
public labels: String[],
|
||||
public assignees: String[],
|
||||
public dueDate: Date,
|
||||
public open: boolean,
|
||||
) {}
|
||||
|
||||
/**
|
||||
* @param obj JSON Object
|
||||
*/
|
||||
public static fromGitea(obj: any) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export { Issue as default };
|
||||
|
Loading…
Reference in New Issue
Block a user