35 lines
1.1 KiB
TeX
35 lines
1.1 KiB
TeX
\begin{frame}
|
|
\frametitle{And how do we prevent bad practices?}
|
|
\framesubtitle{Branch protection}
|
|
\section{Protection}
|
|
|
|
Branch protection is a Git feature
|
|
that allows protecting certain branches against unauthorized modifications.
|
|
For example, you can protect the master branch to prevent direct commits, require code reviews, or require tests to pass before merging.
|
|
\end{frame}
|
|
|
|
\begin{frame}
|
|
\frametitle{How do we do that?}
|
|
\framesubtitle{Branch protection}
|
|
\begin{center}
|
|
\includegraphics[width=1\textwidth]{assets/branch_protection_rules_name.png}
|
|
\end{center}
|
|
\end{frame}
|
|
|
|
\begin{frame}
|
|
\frametitle{How do we do that?}
|
|
\framesubtitle{Branch protection}
|
|
\begin{center}
|
|
\includegraphics[width=0.6\textwidth]{assets/branch_protection_rules_push.png}
|
|
\end{center}
|
|
\end{frame}
|
|
|
|
\begin{frame}
|
|
\frametitle{And the magic happens}
|
|
\framesubtitle{Branch protection}
|
|
\begin{center}
|
|
\includegraphics[width=1\textwidth]{assets/branch_protection_rules_error.png}
|
|
\end{center}
|
|
\end{frame}
|
|
|