Skip to content

Commit

Permalink
fix: base64-decode cog.toml contents
Browse files Browse the repository at this point in the history
  • Loading branch information
the-wondersmith authored and oknozor committed Aug 17, 2023
1 parent 48888ef commit a71dada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async fn pull_request(_event: PullRequestEventType, body: Json<PullRequestEvent>
.await
.ok()
.and_then(|mut content| content.take_items().into_iter().next())
.and_then(|cog| cog.content)
.and_then(|cog| cog.decoded_content())
.unwrap_or("".to_string());

// Parse the config file into Cocogitto `Settings` (falling
Expand Down

0 comments on commit a71dada

Please sign in to comment.