Skip to content

Commit

Permalink
renames the tuple item of pr_markdown to prs and updates the func…
Browse files Browse the repository at this point in the history
…tion call accordingly.

```diff
diff --git a/src/main.rs b/src/main.rs
index 0c68540f374a..a1f3698bb1e3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -21,7 +21,7 @@ fn main() {
   logger::init();
   let args: args = args::parse();
   let pull_requests = github_graphql::fetch_pull_requests(&args);
-  let (pr_markdown, contributors, labels) = github_graphql::get_changelog_info(&pull_requests);
-  let changelog = templates::create_changelog(&args, &pr_markdown, &contributors, &labels);
+  let (prs, contributors, labels) = github_graphql::get_changelog_info(&pull_requests);
+  let changelog = templates::create_changelog(&args, &prs, &contributors, &labels);
   logger::log_changelog(&changelog);
 }
```
  • Loading branch information
falcucci committed Aug 9, 2023
1 parent 019d75a commit c3cf3c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() {
logger::init();
let args: Args = Args::parse();
let pull_requests = github_graphql::fetch_pull_requests(&args);
let (pr_markdown, contributors, labels) = github_graphql::get_changelog_info(&pull_requests);
let changelog = templates::create_changelog(&args, &pr_markdown, &contributors, &labels);
let (prs, contributors, labels) = github_graphql::get_changelog_info(&pull_requests);
let changelog = templates::create_changelog(&args, &prs, &contributors, &labels);
logger::log_changelog(&changelog);
}

0 comments on commit c3cf3c1

Please sign in to comment.