File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
fplus-lib/src/core/allocator Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 1
1
use octocrab:: models:: repos:: ContentItems ;
2
2
3
+ use crate :: config:: get_env_var_or_default;
3
4
use crate :: { base64:: decode_allocator_model, error:: LDNError , external_services:: github:: GithubWrapper } ;
4
5
5
6
use self :: file:: AllocatorModel ;
@@ -8,14 +9,8 @@ pub mod file;
8
9
9
10
pub async fn process_allocator_file ( file_name : & str ) -> Result < AllocatorModel , LDNError > {
10
11
11
- let owner = std:: env:: var ( "ALLOCATOR_GOVERNANCE_OWNER" ) . unwrap_or_else ( |_| {
12
- log:: warn!( "ALLOCATOR_GOVERNANCE_OWNER not found in .env file" ) ;
13
- "Allocator-Governance-Staging" . to_string ( )
14
- } ) ;
15
- let repo = std:: env:: var ( "ALLOCATOR_GOVERNANCE_REPO" ) . unwrap_or_else ( |_| {
16
- log:: warn!( "ALLOCATOR_GOVERNANCE_REPO not found in .env file" ) ;
17
- "fidlabs" . to_string ( )
18
- } ) ;
12
+ let owner = get_env_var_or_default ( "ALLOCATOR_GOVERNANCE_OWNER" ) ;
13
+ let repo = get_env_var_or_default ( "ALLOCATOR_GOVERNANCE_REPO" ) ;
19
14
let branch = "main" ;
20
15
let path = file_name. to_string ( ) ;
21
16
You can’t perform that action at this time.
0 commit comments