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

Add JSON metadata in PRs #3466

Merged
merged 1 commit into from
Nov 8, 2024
Merged

Conversation

michaelmior
Copy link
Contributor

This solves #3465. This ended up being quite straightforward as I didn't realize there was already a well-defined JSON serialization for updates. I think the only downside of this is a slightly larger payload that gets sent to GitHub each time a PR is created, but it does enable some interesting use cases of taking automated actions on the resulting PRs.

@michaelmior
Copy link
Contributor Author

I'm not sure what's going on with the CI failure since at first glance, it appears unrelated to this change.

@michaelmior michaelmior marked this pull request as draft November 5, 2024 21:11
@exoego
Copy link
Contributor

exoego commented Nov 6, 2024

It appears that other test assertions needs changes (JSON metadata in PR description) too, just my 2 cents from quick look.

@michaelmior
Copy link
Contributor Author

@exoego The remaining failing tests seem to be unrelated to my changes.

@mzuehlke
Copy link
Member

mzuehlke commented Nov 6, 2024

The failing test are caused by your changes.
the first is about white space
the other tests are trying to read the last line of the PR which in the past had the labels

@michaelmior
Copy link
Contributor Author

@mzuehlke Thanks. I seemed to have missed that. I fixed those failing tests.

@mzuehlke mzuehlke added this to the 0.31.1 milestone Nov 8, 2024
@mzuehlke mzuehlke added the enhancement New feature or request label Nov 8, 2024
@mzuehlke mzuehlke merged commit 5301c19 into scala-steward-org:main Nov 8, 2024
5 checks passed
@michaelmior
Copy link
Contributor Author

@mzuehlke Thanks for the merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include structured metadata in created PRs
3 participants