Skip to content

feat(contract): detect unchanged status in apply#2821

Merged
migmartri merged 1 commit into
chainloop-dev:mainfrom
Piskoo:pfm-4836
Mar 6, 2026
Merged

feat(contract): detect unchanged status in apply#2821
migmartri merged 1 commit into
chainloop-dev:mainfrom
Piskoo:pfm-4836

Conversation

@Piskoo

@Piskoo Piskoo commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Contracts now report whether an apply actually changed anything
  • When a contract is applied and its content hasn't changed, the response includes unchanged: true
  • Both wf contract apply and the top-level apply command now show Contract/ applied or Contract/ unchanged

Example

$ chainloop  apply -f ./contracts/
WRN API contacted in insecure mode
INF Contract/test-attestation-phases-2 applied
INF Contract/different-name2 unchanged
INF Contract/new-test applied

Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
@Piskoo Piskoo marked this pull request as ready for review March 6, 2026 13:53
@Piskoo Piskoo requested review from jiparis and migmartri March 6, 2026 13:53

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 11 files

@migmartri migmartri merged commit e6f9f07 into chainloop-dev:main Mar 6, 2026
15 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.

3 participants