Skip to content

Remove explanatory comment from renovate enum.go#328

Merged
frjcomp merged 2 commits into
gitlab-refactorfrom
copilot/sub-pr-327
Nov 6, 2025
Merged

Remove explanatory comment from renovate enum.go#328
frjcomp merged 2 commits into
gitlab-refactorfrom
copilot/sub-pr-327

Conversation

Copilot AI commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

Removed implementation comment from src/pipeleak/cmd/gitlab/renovate/enum.go:161 per review feedback. The comment explained sequential vs parallel processing but was deemed unnecessary.

Changes:

  • Removed comment: // Process projects sequentially (original used parallel per page, but sequential is simpler)
  • No functional changes to code

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: frjcomp <107982661+frjcomp@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor GitLab command handling Remove explanatory comment from renovate enum.go Nov 6, 2025
Copilot AI requested a review from frjcomp November 6, 2025 09:34
@frjcomp frjcomp marked this pull request as ready for review November 6, 2025 09:34
@frjcomp frjcomp merged commit 67eb88b into gitlab-refactor Nov 6, 2025
6 checks passed
@frjcomp frjcomp deleted the copilot/sub-pr-327 branch November 6, 2025 09:34
frjcomp added a commit that referenced this pull request Nov 6, 2025
* Refactor GitLab commands to eliminate duplicate project iteration logic

- Add shared IterateProjects() and IterateGroupProjects() helpers in util package
- Refactor 6 files to use callback-based iteration pattern:
  * cmd/gitlab/variables.go
  * cmd/gitlab/schedule/schedule.go
  * cmd/gitlab/secureFiles/secure_files.go
  * cmd/gitlab/scan/pipeline.go
  * cmd/gitlab/runners/list.go
  * cmd/gitlab/renovate/enum.go
- Eliminate ~200+ lines of duplicated pagination code
- Maintain 100% backward compatibility
- All tests passing (unit + e2e)
- Linter clean (0 issues)

* refactor(gitlab): reorganize package structure into subdirectories

Move single-file commands into their own subdirectories for better organization:
- enum.go -> enum/enum.go
- register.go -> register/register.go
- shodan.go -> shodan/shodan.go
- variables.go -> variables/variables.go
- vuln.go -> vuln/vuln.go

This aligns with the existing structure used by scan/, runners/, renovate/, etc.
All commands now follow a consistent subdirectory pattern.

Updated imports and package references in:
- gitlab.go (command registration)
- gitlab_unauth.go (unauthenticated commands)
- gitlab_test.go (test function calls)

All unit tests, e2e tests, and golangci-lint checks pass.

* Remove explanatory comment from renovate enum.go (#328)

* Initial plan

* fix: remove comment in enum.go as per review feedback

Co-authored-by: frjcomp <107982661+frjcomp@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: frjcomp <107982661+frjcomp@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
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