Skip to content

Conversation

@AtzeDeVries
Copy link
Contributor

This is an implementation of adding validate command to policybot. This will implement #862.

FOr now it is a bit rough but if this is the way we want to go we can make it a big nicer. It copies we way how validate is handled as a request.

Before this PR

Validations of policy required access to a running policybot server. Running a server requires a github applicaton or a mock of a github application.

After this PR

A user can run policy-bot validate -p < path to policy file>. This is useful if you want to run it in CI.

Possible downsides?

It adds a little bit of code to maintain i guess.

This is an implementation of adding validate command to policybot. This
will implement palantir#862.

FOr now it is a bit rough but if this is the way we want to go we can
make it a big nicer. It copies we way how validate is handled as a
request.

Signed-off-by: Atze de Vries <[email protected]>
@changelog-app
Copy link

changelog-app bot commented Nov 22, 2025

Generate changelog in changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

feat: Add validate command

Check the box to generate changelog(s)

  • Generate changelog entry

Co-authored-by: Pravin Dahal <[email protected]>
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