Skip to content

Add pr options to msync execute - #384

Open
Joris29 wants to merge 2 commits into
voxpupuli:masterfrom
Joris29:msync_exec_git
Open

Joris29 wants to merge 2 commits into
voxpupuli:masterfrom
Joris29:msync_exec_git

Conversation

@Joris29

@Joris29 Joris29 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

@Joris29

Joris29 commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

Working example can be found at: Joris29/puppet-rundeck#1

@marcusdots marcusdots left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the idea is awesome. I recommend to fix rubocop and continue with this idea.

Comment thread lib/modulesync.rb Outdated
@Joris29
Joris29 marked this pull request as ready for review October 27, 2026 13:33

@marcusdots marcusdots left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please fix the scope with a solution of your liking and I will approve this PR?

Comment thread lib/modulesync.rb
changed_files = [status.changed, status.added, status.deleted, repo.untracked_unignored_files].flat_map(&:keys).uniq
pushed = puppet_module.repository.submit_changes(changed_files, @options)
end
@options[:pr] && (pushed || puppet_module.pull_request_branch_ready?) && puppet_module.open_pull_request

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed is a violation of scope. pushed gets created in another nested if that may never be reached.

Comment thread lib/modulesync.rb
warn message
end

if result

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if result
if result
pushed = nil

@marcusdots

Copy link
Copy Markdown

I would like to add one request:
Can you please git rebase --signoff, so Vox Pupulis Github demand

Commits must have verified signatures.

gets satisfied?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants