Skip to content

feat: policy input support#16

Merged
gusfcarvalho merged 1 commit into
masterfrom
gc-feat-policy-input
May 13, 2026
Merged

feat: policy input support#16
gusfcarvalho merged 1 commit into
masterfrom
gc-feat-policy-input

Conversation

@gusfcarvalho
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copilot AI review requested due to automatic review settings May 13, 2026 16:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for passing policy-specific input through plugin configuration into the policy evaluation input payload, and adjusts repository environments collection to return an empty list instead of null in more cases.

Changes:

  • Add policy_input configuration, parse it as JSON, and attach it to SaturatedRepository for policy evaluation.
  • Ensure GatherRepositoryEnvironments returns an empty slice when permissions prevent environment listing and when no environments are found.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
main.go Adds policy_input config parsing and includes it in the per-repository policy input (SaturatedRepository).
repository_controls.go Changes environments gathering to return empty slices instead of nil in additional scenarios.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread repository_controls.go
Comment thread main.go
@gusfcarvalho gusfcarvalho merged commit 50ae2e0 into master May 13, 2026
6 checks passed
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