Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

companion to --changed-since to list "what changed" #21393

Open
cburroughs opened this issue Sep 11, 2024 · 0 comments
Open

companion to --changed-since to list "what changed" #21393

cburroughs opened this issue Sep 11, 2024 · 0 comments

Comments

@cburroughs
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Today one can use the changed subsystem to have Pants inspect git and list targets that have changed. One might use this in CI today to only run tests of targets that have changed since a main branch, or only build docker images that

I'd like a companion that instead of giving the boolean 'did it change?' lists the commits. I imagine using this as input to release related systems such as:

  • "Hey you are about to deploy X, this is what changed since the last deploy"
  • Some dashboard along the lines of deployment frequency that would have pending changes. (ex: Does service X from team Y have $LARGE_NUMBER of changes waiting to be released.)

Describe the solution you'd like

Some sort of "what changed" goal(?) that would take:

  • Since commit
  • Transitive Y/N
  • Targets(s)
  • Pass along some git formatting options

And return a list of commits

Describe alternatives you've considered

I could probably glue together some sort of bash-y script to do this.

Additional context

Related Slack thread regrading release notes: https://pantsbuild.slack.com/archives/C046T6T9U/p1725634209269079

Where there is a current mechanism along the lines of git log <previous_release>..HEAD --oneline --pretty=format:"* %s" -- <path to individual service> that one could imagine looking something like pants --changed-since=HEAD release_notes app/<service>::.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant