-
Notifications
You must be signed in to change notification settings - Fork 144
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 option to release
and releases
#2685
Conversation
@klutchell remind me please, for external contributions on repos utilising self-hosted runners, someone from the balena org would need to create a separate PR from @bbugh bbugh:add-releases-json branch and push/test/merge/deploy? |
@ab77 I added the required label but I think this is the first time we've tested this limitation. Now that I'm seeing it in action, a separate label for each approved sha is secure, but will clutter the repo labels. Another approach would be a Or we wait and remove the label precautions when we launch VM isolated runners. |
Thanks for the PR @bbugh ! It looks like you are missing |
@bbugh Thank you for contributing. In order for automatic versioning to kick in, could you please rebase to a single commit and add the
|
Thanks, y'all are so fast!
I can fix this for sure. I did actually read through CONTRIBUTING.md multiple times, but it's really dense! To make it easier for contributors, I think it might be helpful to be broken up a bit into sections like "preparation", "working", and "submitting a PR" or something like that, with a clearly defined acceptance checklist for submitting.
I can definitely do this, though I structured it this way intentionally because of my reading of the contributing guide, and just want to double check with you first. The guide appears to suggest to have multiple commits for the purpose of generating the correct CHANGELOG output:
Each of these commits is adding I also see that in the changelog there's many variations of Thanks! |
Hello @bbugh, you can leave both commits, as long of one of them is in the format as pointed by @ab77 the CI should pickup (you can just
Please be mindfull of the line break between the commit message and the change-type footer |
@bbugh Overall your changes look very good, thank you so much for the PR! I left two comments that I think would need addressing before merging + release, but except for that, thanks for the good work :) |
9220eb0
to
d2f96b4
Compare
@klutchell @ab77 I think versionist should work now, is there anything else I need to setup here to have the CI running? |
@otaviojacobi I added the missing label |
@otaviojacobi we will need this PR merged first: #2686 Then we need to add the Thanks for your patience on this @bbugh, we have to jump through a few (untested) hoops to allow external contributions for security reasons. |
2e486b0
to
6de8d2d
Compare
Hello @bbugh just an update in here, from my side the code looks good and I will approve & merge once the CI is passing. I am investigating still on why is it breaking (I suppose it is because rebasing via github UI, but still looking into it) |
6de8d2d
to
308bf52
Compare
308bf52
to
733dab5
Compare
change-type: minor
733dab5
to
b7e5915
Compare
Thank you for the contribution @bbugh ! |
Awesome! Thanks everybody for the help! FYI: the two commits were not output to the changelog, the changelog doesn't list the c785d01#diff-b9d4d95c7b8db1b90c77eb25684bdda80ca5fc14a2bf85f4a1709b5cb9c57087 Lines 7 to 11 in c785d01
|
Resolves: #2351
Change-type: minor
This adds
-j
/--json
to therelease
andreleases
subcommands. #2351 mentions that support would be added in v14 but there's nothing yet in v17!We needed this for automating pinning multiple testing devices based on release tags, beyond what balenaCloud allows with "pin to latest".
I followed existing commands so it should match the existing codebase, and I added spec tests for the functionality.