mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
init
This commit is contained in:
15
src/config.ts
Normal file
15
src/config.ts
Normal 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();
|
||||
Reference in New Issue
Block a user