Skip to content

Commit 189cc3a

Browse files
committed
Omit values when they have the same name as the key
1 parent fcbf4e5 commit 189cc3a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

exe/importmap-update

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ end
6767

6868
rails_root = ENV.fetch("RAILS_ROOT", ".")
6969
runner = Importmap::Update::Commands::ShellRunner.new(cwd: rails_root)
70-
gh = Importmap::Update::GitHubClient.new(repo: repo, token: token)
70+
gh = Importmap::Update::GitHubClient.new(repo:, token:)
7171
git = Importmap::Update::GitClient.new(
7272
repo: Git.open(rails_root),
7373
author_name: ENV.fetch("IMPORTMAP_AUTHOR_NAME", "github-actions[bot]"),
@@ -81,10 +81,10 @@ plan = Importmap::Update::Planner.new(
8181
).call
8282

8383
existing_prs = gh.list_open_prs(branch_prefix: config.branch_prefix)
84-
reconciled = Importmap::Update::Reconciler.new(plan: plan, existing_prs: existing_prs).call
84+
reconciled = Importmap::Update::Reconciler.new(plan:, existing_prs:).call
8585

8686
executor = Importmap::Update::Executor.new(
87-
gh: gh, git: git, runner: runner,
87+
gh:, git:, runner:,
8888
base_branch: ENV.fetch("IMPORTMAP_BASE_BRANCH", "main"),
8989
commit_message_prefix: config.commit_message.prefix,
9090
labels: config.labels,

0 commit comments

Comments
 (0)