Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Add documentation for add-stack-label and lint steps of CI prep (#2206)
Madison Swain-Bowden76637d93e860
diff --git a/documentation/meta/ci_cd/flow.md b/documentation/meta/ci_cd/flow.mdindex caacdc883..8b2ddbd98 100644--- a/documentation/meta/ci_cd/flow.md+++ b/documentation/meta/ci_cd/flow.md@@ -50,15 +50,14 @@ stage depends.## Preparation-This is the stage of jobs which have no dependencies, so they get executed at-the very start of the workflow. Since they are depended upon by other jobs, once-this stage is complete, we can use their resulting state and outputs wherever-needed.+This is the stage of jobs get executed at the very start of the workflow. Since+they are depended upon by other jobs, once this stage is complete, we can use+their resulting state and outputs wherever needed.```{mermaid}flowchart TDsubgraph preparation[Preparation]- get-changes+ get-changes --> add-stack-labelget-image-taglintend@@ -68,7 +67,8 @@ flowchart TD- [`get-changes`](./jobs/preparation.md#get-changes)- [`get-image-tag`](./jobs/preparation.md#get-image-tag)-- `lint`+- [`lint`](./jobs/preparation.md#lint)+- [`add-stack-label`](./jobs/preparation.md#add-stack-label)## Documentation testsdiff --git a/documentation/meta/ci_cd/jobs/preparation.md b/documentation/meta/ci_cd/jobs/preparation.mdindex cb7504461..7d26575d4 100644--- a/documentation/meta/ci_cd/jobs/preparation.md+++ b/documentation/meta/ci_cd/jobs/preparation.md@@ -38,3 +38,20 @@ of the last commit.image_tag: string // the tag to use for the Docker images}```++## `lint`++Runs the linting steps defined in the repository's+[pre-commit configuration](https://github.com/WordPress/openverse/blob/main/.pre-commit-config.yaml).+This is executed via `just lint`.++## `add-stack-label`++```{note}+This job only runs on PRs.+```++Use the outputs from the [`get-changes`](#get-changes) job to add an appropriate+`stack` label to the PR. If a label cannot be determined from the changes, the+`🚦 status: awaiting triage` and `🏷 status: label work required` labels are+added instead.