Learn R Programming

multideploy (version 0.1.0)

print.pr_create_result: Print method for pr_create_result objects

Description

This method provides a formatted summary of pull request creation results, showing counts by status and details for created PRs and any errors encountered.

Usage

# S3 method for pr_create_result
print(x, ...)

Value

Invisibly returns the original input data frame (x) unchanged, allowing for chained operations. The function's primary purpose is displaying a formatted summary to the console, including:

  • Counts of PRs by status (created, would_create, skipped, error)

  • List of successfully created PRs with clickable URLs

  • Details about any errors encountered during the process

Arguments

x

An object of class "pr_create_result" as returned by pr_create()

...

Additional arguments passed to other print methods (not used)

Examples

Run this code
if (FALSE) { # interactive()
# Create PRs
results <- pr_create(
  repos = repos("my-organization"),
  branch_name = "feature-branch",
  title = "Update configuration",
  body = "Standardize configuration across repos",
  file_mapping = file_mapping("config.yml" = ".github/config.yml")
)

print(results)  # Explicitly print the summary
}

Run the code above in your browser using DataLab