@pagopa/dx-cli
Version:
A CLI useful to manage DX tools.
30 lines (29 loc) • 670 B
JavaScript
export class PullRequest {
url;
constructor(url) {
this.url = url;
}
}
export class Repository {
name;
owner;
get fullName() {
return `${this.owner}/${this.name}`;
}
get ssh() {
return `git@github.com:${this.owner}/${this.name}.git`;
}
get url() {
return `https://github.com/${this.owner}/${this.name}`;
}
constructor(name, owner) {
this.name = name;
this.owner = owner;
}
}
export class RepositoryNotFoundError extends Error {
constructor(owner, name) {
super(`Repository ${owner}/${name} not found`);
this.name = "RepositoryNotFoundError";
}
}