mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 00:20:08 -04:00
24 lines
488 B
TypeScript
24 lines
488 B
TypeScript
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}`
|
|
}
|
|
}
|