Skip to content

Commit

Permalink
chore: rename master to main (update workflows and doc)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Aug 16, 2023
1 parent 07a5ff7 commit b9e1107
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Container Image Build CI
on:
push:
branches:
- master
- main
- deploy-*
tags:
- v*.*.*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Container Image Deployment CI
on:
push:
branches:
- master
- main
- deploy-*
tags:
- v*.*.*
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#----------------------------------------------
# Generate and upload documentation (only on push to master)
# Generate and upload documentation (only on push to main)
#----------------------------------------------

name: Generate documentation
Expand All @@ -13,7 +13,7 @@ on:
- "mkdocs.yml"
push:
branches:
- master
- main

jobs:
publish-docs:
Expand Down Expand Up @@ -60,12 +60,12 @@ jobs:
build -o /output/references/api/index.html api.yml && \
sudo chown $UID -R gh_pages
# Deploy docs to gh_pages if we are pushing to master
# Deploy docs to gh_pages if we are pushing to main
# Example from https://github.com/marketplace/actions/deploy-to-github-pages
- name: Deploy 🚀
# we only deploy on push to master
# we only deploy on push to main
if: |
github.event_name == 'push' && github.event.ref == 'refs/heads/master'
github.event_name == 'push' && github.event.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- master
- main
name: release-please
jobs:
release-please:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Robotoff

![Build Status](https://github.com/openfoodfacts/robotoff/workflows/Robotoff%20unit%20tests%20and%20deployments/badge.svg)
[![codecov](https://codecov.io/gh/openfoodfacts/robotoff/branch/master/graph/badge.svg?token=BY2T0KXNO1)](https://codecov.io/gh/openfoodfacts/robotoff)
[![codecov](https://codecov.io/gh/openfoodfacts/robotoff/branch/main/graph/badge.svg?token=BY2T0KXNO1)](https://codecov.io/gh/openfoodfacts/robotoff)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
![GitHub language count](https://img.shields.io/github/languages/count/openfoodfacts/robotoff)
![GitHub top language](https://img.shields.io/github/languages/top/openfoodfacts/robotoff)
Expand Down
2 changes: 1 addition & 1 deletion doc/explanations/predictions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Robotoff purpose is to generate predictions about Open Food Facts products from various sources: images, image OCRs, product meta data,...

A complete list of _predictions_ types can be found in [robotoff.prediction.types](https://github.com/openfoodfacts/robotoff/blob/master/robotoff/prediction/types.py). The most common ones are `brand`, `label`, `category`,...
A complete list of _predictions_ types can be found in [robotoff.prediction.types](https://github.com/openfoodfacts/robotoff/blob/main/robotoff/prediction/types.py). The most common ones are `brand`, `label`, `category`,...

All _predictions_ are stored in the PostgreSQL database in the`prediction` table.

Expand Down
2 changes: 1 addition & 1 deletion doc/introduction/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Look through the Github issues for features. Anything tagged with "enhancement"

### Write Documentation

Robotoff could always use more documentation, whether as part of the official [Robotoff docs](https://github.com/openfoodfacts/robotoff/tree/master/doc) or in docstrings.
Robotoff could always use more documentation, whether as part of the official [Robotoff docs](https://github.com/openfoodfacts/robotoff/tree/main/doc) or in docstrings.

### Submit Feedback

Expand Down
2 changes: 1 addition & 1 deletion doc/references/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1402,4 +1402,4 @@ tags:
An insight is a fact about a product that has been either extracted or inferred from the product pictures, characteristics,...
If the insight is correct, the Openfoodfacts DB can be updated accordingly.
Current insight types and their description can be found in [robotoff/insights/dataclass.py](https://github.com/openfoodfacts/robotoff/blob/master/robotoff/insights/dataclass.py).
Current insight types and their description can be found in [robotoff/insights/dataclass.py](https://github.com/openfoodfacts/robotoff/blob/main/robotoff/insights/dataclass.py).

0 comments on commit b9e1107

Please sign in to comment.