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
feat: Add branch option for postUpgradeCommands #8725
feat: Add branch option for postUpgradeCommands #8725
Conversation
@sarunint Would you mind helping me on this PR? |
@viceice Yeah for sure it needs to be abstracted, only reason I didn't straight away is because I wanted to make sure this change worked. I've tested it locally and it works, so I'll work on abstracting it now to get this into a mergable state later this week |
44495ca
to
935617d
Compare
@marcodejongh - very much appreciate this work. An example of usage for me is to execute a bit of logic with https://microsoft.github.io/beachball/ to generate a change file for later automated semver bumping of package versions. |
@sarunint Would you mind running this branch on your codebase which I assume depends on the behavior change you made? We'll run the newly added branch mode on our test repository |
Sure, I'll test it later today. |
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
9988fc4
to
9a6237c
Compare
Oops didn't intend to force push, but I didn't know how the eslint pre commit works in this repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just small changes
if ( | ||
/* Only run post-upgrade tasks if there are changes to package files... */ | ||
!hasChangedFiles || | ||
getAdminConfig().trustLevel !== 'high' || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getAdminConfig().trustLevel !== 'high' || |
I think if you already set allowedPostUpgradeCommands
admin config we do not also require trustLevel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm are you sure? I global searched the repo and I didn't see any checks for trustLevel
and allowedPostUpgradeCommands
.
For now I've cleaned up the statement, no need to call getAdminConfig twice
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check and remove all casts which are not required by typescript (which you've changed).
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@rarkins needs your approval |
@marcodejongh We can't update your branch, please use the update button, otherwise i'm not able to merge. |
@viceice Hmmm I can't merge it myself either? Maybe something is setup wrong on our atlassian-forks org |
Or actually I think it would be a permission on this repo that is preventing merging. In the Github UI "base branch" is the target branch |
The branch update feature does not work cross orgs, it only works for personal accounts. An alternate is to give us write permission to your fork, so we can update your branch if required. |
🎉 This PR is included in version 24.109.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes:
Returns the old postUpgradeTask behaviour under a extra flag
Fixes #8220
Context:
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: