Android
How to fix your Android 12 power button so it turns off your phone
Photo by Becca Farsace / The Verge If you’re a long-time Android user, you’re used to long-pressing the power button to (logically) power your phone on or off. For a while, long-pressing the button while Read more…
Android
The best early Black Friday deals at Staples
The latest Amazon Fire HD tablet is 50 percent off today at Staples. | Photo by Dan Seifert / The Verge Staples has launched its early Black Friday sales and is discounting a diverse range Read more…
PHP
★ A conversation on the future of PHP
Earlier this week the PHP Foundation was announced. In this stream on GitHub, my buddies Christoph Rumpel, James Brooks and I discuss what we think this means for the future of PHP.
Android
How to use Android 12’s call screening features
Photo by The Verge Back in February 2020, we ran an article explaining how to use the handy call screening functionality that Google had introduced for its Pixel phones. Screen Call, Google’s screening app, allows Read more…
PHP
You can now monitor your DNS records via Oh Dear
The past few weeks, I had a lot of fun coding up the new DNS check of Oh Dear. In this blogpost, you’ll learn why you should monitor your DNS records and how Oh Dear Read more…
Android
Protect your Pixel 6 and Pixel 6 Pro with these unique cases
Google’s Pixel 6 and Pixel 6 Pro are big, slippery phones that can benefit from a good case | Photo by Becca Farsace / The Verge As wonderful as the new Pixel 6 and Pixel Read more…
Python
Python Black Friday / Cyber Monday Sales 2021
Lots of companies do sales on Black Friday, sometimes for the entire week. I am going to link to Black Friday sales for Python-related materials, including my own, in this article. I am having a Read more…
PHP
★ Our improved changelog workflow for packages
[AdSense-A]
For years, my team and I manually updated the changelog for our 250+ packages. Recently, we've improved how we go about this.
In this blog post, I'd like to tell you all about it.
What is a changelog?
In our packages, a changelog is a simple markdown file where we note all changes to our packages in chronologic order. We do this to make it easy for the users, contributors and ourselves to see when a particular change has been made.
Here's an example changelog from the spatie/ray package. To know more about changelogs in general, head over to the keep a changelog website.
Auto generating release notes
Previously, we manually edited the changelog file whenever we did a new release of a package. As the description, we used the PR titles that were merged in a particular release of It's not a lengthy task, but because of the sheer amount of packages and release our team does, it amounts to quite some time in total.
Recently, GitHub made some changes to the UI when creating a new release. A new button, "Auto-generate release notes", was added. When pressing this button, a text snippet containing all changes is generated. This snippet also mentions all (new) contributors, which is very nice. Finally, a link to a full diff between the new a previous release is added.
Here's how those release notes look like when the release is actually created.
Looks good, right?
Automatically updating the changelog
Now that we know how to generate release notes automatically, let's look at how we can automatically add these notes to the changelog.md in the repo.
A while ago, Stefan Zweifel released a very cool changelog-updater-action to automatically copy the release notes to changelog.md whenever a new release is tagged. A very cool thing to note is that this action is powered under the hood by a Laravel application.
We're now using this action in most of our repos. Here's the workflow that was added to the spatie/ray repo. It'll run whenever a new release is created.
It will add a commit like this one to update the changelog.
.
Very nice!
In closing
Stefan's changelog-updater-action will save my team and me quite some time.
Right now, GitHub's release notes can only be generated from their website. I hope that their CLI will also be updated in the future to also generate these excellent release notes right from the terminal.
.
Also check out Stefan's blog post on his updater action, which mention a few other configuration options.
If you want to know more about creating quality packages and how we at Spatie handle this, check out Laravel Package Training premium video course, which was recently updated for Laravel 8 and PHP 8.
Android
Android 10 is coming to the six-year-old Fairphone 2
2015’s Fairphone 2. | Photo by James Vincent / The Verge Sustainable smartphone manufacturer Fairphone has released an Android 10 update for the six-year-old Fairphone 2, a device that originally launched with Android 5 in Read more…