File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,16 @@ const leafServerEnv = "LEAF_SERVER";
2020const usernameEnv = "ATPROTO_USERNAME" ;
2121const passwordEnv = "ATPROTO_APP_PASSWORD" ;
2222const leafStreamEnv = "ROOMY_SPACE" ;
23+ const gitEmailEnv = "GIT_EMAIL" ;
24+ const gitNameEnv = "GIT_NAME" ;
2325const username = process . env [ usernameEnv ] ;
2426const leafServer = process . env [ leafServerEnv ] || "https://leaf.muni.town" ;
2527const password = process . env [ passwordEnv ] ;
2628const leafStream = process . env [ leafStreamEnv ] ;
2729const gitRemote = process . env [ gitRemoteEnv ] ;
30+ const gitEmail = process . env [ gitEmailEnv ] ;
31+ const gitName = process . env [ gitNameEnv ] ;
32+
2833if ( ! username ) throw `${ usernameEnv } env var required.` ;
2934if ( ! password ) throw `${ passwordEnv } env var required.` ;
3035if ( ! leafStream ) throw `${ leafStreamEnv } env var required.` ;
@@ -56,6 +61,9 @@ if (gitRemote) {
5661 }
5762}
5863
64+ if ( gitEmail ) repo . addConfig ( "user.email" , gitEmail ) ;
65+ if ( gitName ) repo . addConfig ( "user.name" , gitName ) ;
66+
5967const agent = new AtpAgent ( { service : "https://bsky.social" } ) ;
6068await agent . login ( {
6169 identifier : username ,
You can’t perform that action at this time.
0 commit comments