iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🥞

Productivity Weekly (Issue 2022-08-24)

に公開

Hello. I'm Hirakiba from the Productivity Improvement Team at Cybozu Inc.

Our Productivity Improvement Team holds an internal meeting every Wednesday called "Productivity Weekly," where we share topics related to improving developer productivity discovered over the past week.
This article is a summary of the topics from that meeting.

This is the 88th issue. You can find past articles here.

news 📺

GitHub Actions: Improvements to reusable workflows | GitHub Changelog

https://github.blog/changelog/2022-08-22-github-actions-improvements-to-reusable-workflows-2/

In GitHub Actions, you can now call reusable workflows from matrix builds. Additionally, you can now call reusable workflows from other reusable workflows (up to 4 levels deep). Previously, neither of these was possible.

Although limited to 4 levels, being able to nest reusable workflows is a great addition. This should make workflow reuse much more efficient.

New options for controlling the default commit message when merging a pull request | GitHub Changelog

https://github.blog/changelog/2022-08-23-new-options-for-controlling-the-default-commit-message-when-merging-a-pull-request/

In GitHub, you can now choose the default commit message during a merge from several patterns.

You can configure this in the repository settings for both merge commits and squash commits. For example, for merge commits, you can now additionally choose "Pull request title" to include the PR number and title, or "Pull request title and description" to include the PR number, title, and description.

Previously, if you wanted to include the pull request description in the merge commit, you had to copy it manually. It's great to be able to include it by default now. I'd definitely like to use this.

SSH commit verification now supported | GitHub Changelog

https://github.blog/changelog/2022-08-23-ssh-commit-verification-now-supported/

GitHub now supports verifying commit signatures using SSH keys. If a signature is trusted, the commit will be marked as Verified.

While GPG is the most well-known method for signing commits (probably), Git actually supports signing with SSH keys as well.

I actually tried it out myself.

https://zenn.dev/korosuke613/scraps/062ed98c904eca

Since I use the 1Password SSH Agent, I had to make a few adjustments, but it was great that I could set up signing and verification simply by following the GitHub documentation.

Since it is easy to spoof the committer and author in Git commits, signing your commits regularly makes it easier to detect impersonation.
It also just looks cool to have the Verified badge, so this might be a good opportunity to start signing your commits.

https://twitter.com/Shitimi_613/status/1565998159771316224?conversation=none

know-how 🎓

How ESLint config might change (What is flat config?)

https://zenn.dev/makotot/articles/0d9184f3dde858

This is an article explaining ESLint's new configuration system, "flat config." Existing ESLint configurations were complex because they could be written in various ways and were overrideable; flat config aims to simplify this. It is still in the experimental stage.

This article covers a comparison between the current config and flat config, the features of flat config, and the story behind its creation. In particular, the table comparing the current and flat config is very easy to understand.

I'm not entirely sure if it will actually become simpler just because the top-level is now an array based on my brief research, but it's good to know what it's like in preparation for when flat config is officially released.

tool 🔨

Engineer Organization Support SaaS "Findy Teams" Launches "DevOps Analysis" Feature to Visualize and Analyze "Four Keys" | Findy Press Release

https://prtimes.jp/main/html/rd/p/000000042.000045379.html

Findy Teams, a service provided by Findy that visualizes development lead times for organizations, has added a feature to visualize and analyze the Four Keys. Other tools for visualizing and analyzing the Four Keys include GoogleCloudPlatform/fourkeys.

While deployment frequency, one of the Four Keys metrics, can likely be measured from repository information, the other three metrics seem difficult to measure with repository information alone. I wonder if it works by calling an API for each deployment or whenever a failure occurs. Since details of Findy Teams are not public and require a request for information, I'm curious about how this is handled.

In any case, to my knowledge, there are no other managed services for visualizing and analyzing the Four Keys. Since building such a system yourself seems difficult, having a managed service like this is great. I look forward to seeing "I tried using it" articles.

google/yamlfmt: An extensible command line tool or library to format yaml files.

https://github.com/google/yamlfmt

Google has released yamlfmt, a YAML formatting tool (or library). It has not yet reached v1.

When formatting YAML, one might use tools like yq[1], for example. However, since yq is not a dedicated formatter, checking whether formatting has been applied required extra effort. yamlfmt is specialized as a formatter, featuring a -lint option to check if files are already formatted and a -dry option to display differences after formatting.

An article about trying it out has already been published:

By the way, I noticed that running it without any arguments formats **/*.{yaml,yml}, so be careful. When I ran it without thinking, a massive amount of YAML was reformatted.
It still feels like very new software, but I have high expectations for the future.

koneta 🍘

This is a section where I briefly share topics from Productivity Weekly that I wanted to introduce but didn't have the energy to cover in detail.

  • news 📺
    • Introducing the CircleCI visual config editor | CircleCI
      • CircleCI has released an open-source visual configuration editor for CircleCI's config.yml.
      • While this type of tool might not be used as a primary choice for those comfortable with code, it seems useful for tasks like drafting.
      • It might also be helpful for those who are not yet used to writing config.yml.
    • We are releasing the Publication feature in closed beta | What's New in Zenn
      • Zenn, which I use for this article, is apparently planning to release a "Publication" feature.
      • It's similar to "Organizations" on Qiita, but it seems to have features that make it easier for articles to belong to the authors themselves compared to those.
      • Applications for the closed beta have already closed, and participating teams are scheduled to start using it in September.
      • I applied as the Cybozu Productivity Improvement Team. I wonder if we'll get in...
  • tool 🔨

Afterword

This is this week's issue, although it is quite late. I'll be very busy starting next week as the internship begins again 🥲.

The Productivity Improvement Team at Cybozu conducts activities to improve the development productivity of our internal engineers. If you're interested in our team, click the link below!
https://note.com/cybozu_dev/n/n1c1b44bf72f6

脚注
  1. Actually, Prettier, a formatter for JS and other languages, also supports YAML (Prettier 1.14: YAML Support · Prettier). However, installing Prettier just to format YAML feels a bit heavy. ↩︎

GitHubで編集を提案

Discussion