This commit is contained in:
2020-08-19 16:48:24 +02:00
commit 243e41bb92
23 changed files with 12392 additions and 0 deletions

15
src/config.ts Normal file
View File

@@ -0,0 +1,15 @@
class Config {
get repo() {
if (!process.env.GITHUB_REPOSITORY) {
return 'morten-olsen/foobar';
}
return process.env.GITHUB_REPOSITORY;
}
get user() {
const [user] = this.repo.split('/');
return user;
}
}
export default new Config();