Overview of the pre-commit coding phase of DevOps
In the Understanding the stages in a DevOps workflow section from Chapter 1, Agile, DevOps, and Azure Overview, we outlined the eight stages of a standard DevOps workflow. While the implementation of these stages can differ among organizations, and some stages might even be combined for efficiency, the general sequence remains consistent. After the planning phase, the process moves to the code development stage, which begins with the developer environment. To make our discussion in this book clearer and more structured, we have split the code development stage into two parts:
- The pre-commit phase: This phase refers to all activities that take place from the moment a developer starts writing or modifying code to a new or cloned repository until just before they save (or commit) these changes to a VCS. As shown in step 1 of Figure 4.1, the developer sets up a workspace, usually in an IDE such as Visual Studio Code. This space...