Update scripts/

This commit is contained in:
freearhey 2024-12-30 09:33:16 +03:00
parent d9a70f2a1f
commit 2c35704fb0
10 changed files with 282 additions and 0 deletions

24
scripts/models/issue.ts Normal file
View file

@ -0,0 +1,24 @@
import { Dictionary } from '@freearhey/core'
import { OWNER, REPO } from '../constants'
type IssueProps = {
number: number
labels: string[]
data: Dictionary
}
export class Issue {
number: number
labels: string[]
data: Dictionary
constructor({ number, labels, data }: IssueProps) {
this.number = number
this.labels = labels
this.data = data
}
getURL() {
return `https://github.com/${OWNER}/${REPO}/issues/${this.number}`
}
}