-
Notifications
You must be signed in to change notification settings - Fork 0
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 command to do package release branches #6
base: main
Are you sure you want to change the base?
Conversation
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.
Nice work! Much cleaner than mine, and I like the trick with composer.
*/ | ||
public function swsReleases($options = ['packages' => '']) { | ||
$docroot = $this->getConfigValue('docroot'); | ||
foreach (glob("$docroot/*/custom/*/*info.yml") as $package) { |
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.
This is neat. I was using arrays of our packages.
->run() | ||
->getMessage(); | ||
|
||
$matches = preg_grep('/^-.*su-.*?$/', explode("\n", $composer_diff)); |
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.
I like this; nice and efficient and it lets composer do the work.
->push('origin', "release-$release_version") | ||
->run(); | ||
sleep(1); | ||
$this->taskExec("gh pr create -B $base_branch --title $release_version --body $version") |
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.
Worth noting that it requires gh
be installed, which is likely not the case for everyone. 🤷
->setHeader(implode(PHP_EOL, $header)) | ||
->setBody(implode("\n", $log) . PHP_EOL) | ||
->anchor($anchor) | ||
->run(); |
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.
This would be the right place to extract the changes for staci, et. al. if you just append them to a file somewhere convenient, yeah?
->run(); | ||
} | ||
|
||
$finder = new Finder(); |
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.
A lot more efficient than my method.
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.
Looks like this is just for the sake of clarity?
789c0de
to
8e0f5ae
Compare
8e0f5ae
to
03fa698
Compare
03fa698
to
98d2210
Compare
READY FOR REVIEW/NOT READY
Summary
Needed By (Date)
Urgency
Steps to Test
Affected Projects or Products
Associated Issues and/or People
@mention
them here)See Also