Skip to content

Conversation

@rohanpm
Copy link
Contributor

@rohanpm rohanpm commented Jun 25, 2021

list-push-items can be used to dump whatever push items are available
in a given source.

Previously, the output format was something ad-hoc put together.
Let's adjust the format and add some more useful options:

  • python: repr() of items (can be pasted straight back into python code and it'll work to create the items)

  • python-black: like python but also formatted nicely

  • yaml: dump all items as a YAML list

With these new formats you can copy-paste the output of this
script into some docs or a test and have it make sense.

list-push-items can be used to dump whatever push items are available
in a given source.

Previously, the output format was something ad-hoc put together.
Let's adjust the format and add some more useful options:

  python: repr() of items (can be pasted straight back into python code
          and it'll work to create the items)

  python-black: like python but also formatted nicely

  yaml: dump all items as a YAML list

With these new formats you can copy-paste the output of this
script into some docs or a test and have it make sense.
@rohanpm rohanpm marked this pull request as ready for review June 25, 2021 05:05
@rohanpm rohanpm merged commit b07b796 into release-engineering:master Jun 28, 2021
@rohanpm rohanpm deleted the list-push-items-formatter branch June 28, 2021 21:41
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.

1 participant