Skip to content

GitHub workflow

How the team works on GitHub: the two repositories, the rules on main, the automatic checks, and the steps to get your work merged. Read it once before your first pull request.

The two repositories

Repository Role Who pushes
H0ozsed/area working repository: branches, pull requests, reviews everyone
EpitechPGE3-2026/G-YEP-500-RUN-5-1-area-4 graded Epitech repository nobody

The workflow .github/workflows/mirror.yml copies every push to H0ozsed/area, on every branch, to the Epitech repository within a few minutes. Never push to the Epitech repository directly: the next mirror run would overwrite your work. Clone and push only H0ozsed/area.

Rules on main

main only holds finished work. It is protected on GitHub:

Rule What it means for you
Pull request required you never push to main; you push a branch and open a pull request
1 approval someone other than the author approves the pull request (any teammate)
Checks must pass the two checks below must be green
No force push, no deletion the history of main cannot be rewritten

Pushing to your own branch is always free: push as often as you want.

Ethaniel is asked to review every pull request automatically (.github/CODEOWNERS), but any teammate's approval is enough, so nobody is blocked when he is away. You cannot approve your own pull request: this is a GitHub rule. As the repository admin, Ethaniel is not bound by the protection.

The automatic checks

The workflow .github/workflows/checks.yml runs on every pull request to main. Its result shows at the bottom of the pull request.

Check What it verifies How to fix it
Commit messages the pull request title and every commit follow Conventional Commits; no commit has a Co-Authored-By: Claude line rename the pull request title (button "Edit" next to the title); for a commit, see "A commit message is wrong" below
Documents and diagrams every Markdown table has the same number of cells as its header, every code block is closed, every Mermaid diagram renders, no .env or CLAUDE.md file is committed the log of the check gives the file and the line

Run the document check on your machine before pushing:

python3 .github/scripts/check_docs.py /tmp/mermaid

Conventional Commits in one minute

Every commit message and every pull request title look like this:

<type>(<scope>): <description>
  • type: feat, fix, docs, refactor, test, chore or ci;
  • scope (optional): server, web, mobile, spike, decision, adr, radar, planning;
  • description: imperative mood, lowercase, no final period.

Examples: feat(spike): add Express backend spike and report, docs(planning): update the WBS. The full rules are in the "Commit messages" section of README.md.

A title like Spike: Node.js with Express fails the check: write feat(spike): add Express backend spike.

From your idea to main, step by step

  1. Get an up-to-date main.
git switch main
git pull
  1. Create your branch, named after its type (see "Branch names" below).
git switch -c spike/express
  1. Work, then commit in small steps, one subject per commit.
git add spikes/express
git commit -m "feat(spike): add Express backend spike"
  1. Push your branch.
git push -u origin spike/express
  1. Open a pull request to main, with a Conventional Commits title. GitHub shows a "Compare & pull request" button after the push, or use gh pr create.
  2. Wait for the checks. If one is red, open it, read the error, fix, commit and push again: the checks run again by themselves.
  3. Ask a teammate to review on Discord.
  4. Merge once the checks are green and the pull request is approved (button "Merge pull request").
  5. Mark your task as done on Discord.

Where your work goes

You are trying... Folder Branch Report
a back-end framework (spike) spikes/<tech>/ spike/<tech> SPIKE.md from spikes/_template/
anything else: front-end, database, hooks... (PoC) pocs/<topic>-<tech>/ poc/<topic>-<tech> POC.md from pocs/_template/

Details and examples: "Where does my work go?" in README.md, spikes/README.md and pocs/README.md.

Branch names

Type Branch Example
Back-end spike spike/<tech> spike/express
PoC poc/<topic>-<tech> poc/web-react
Document docs/<topic> docs/github-workflow
Planning planning/<topic> planning/wbs
CI ci/<topic> ci/pr-checks

A branch created from a GitHub issue gets a name like 7-spike-nodejs-with-express: rename it before pushing (git branch -m spike/express).

How to review a pull request

  1. Open the pull request, tab Files changed.
  2. Read the changes. Leave a comment on a line with the + button next to it.
  3. Click Review changes, then choose:
  4. Approve if it can be merged;
  5. Request changes if something must be fixed first, with a comment that says what.
  6. The author fixes, pushes, and asks for a new review: an approval given before a new push is dismissed.

Common problems

Problem What to do
"Merging is blocked" a check is red or the approval is missing: look at the bottom of the pull request
A commit message is wrong on your branch, git commit --amend fixes the last commit; for older ones ask Ethaniel. Then git push --force-with-lease on your branch only
git push to main is refused normal: push a branch and open a pull request
You cannot see the repository accept the invitation on https://github.com/H0ozsed/area/invitations
A check failed on a file you did not touch pull main into your branch (git merge main) and push again

What was set up, and when

Date Change Pull request
2026-11-24 one-way mirror to the Epitech repository —
2026-11-25 Conventional Commits adopted #2
2026-11-26 "Where does my work go?" guide, PoC template #8
2026-11-26 checks on every pull request, protection of main, automatic review request, this document #10