Skip to content

Generate modelcard in ModelHubMixin #12

Generate modelcard in ModelHubMixin

Generate modelcard in ModelHubMixin #12

name: Model and Dataset Card consistency reminder
on:
pull_request:
paths:
- src/huggingface_hub/repocard.py
- src/huggingface_hub/templates/modelcard_template.md
- src/huggingface_hub/templates/datasetcard_template.md
jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: maintain-comment
uses: actions-cool/maintain-one-comment@v3
with:
body: |
It looks like you've updated code related to model or dataset cards in this PR.
Some content is duplicated among the following files. Please make sure that everything stays consistent.
- [src/.../repocard.py](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py)
- [src/.../datasetcard_template.md](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md)
- [src/.../modelcard_template.md](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md)
- [modelcard.md](https://github.com/huggingface/hub-docs/blob/main/modelcard.md) (`hub-docs` repo)
- [docs/hub/model-cards.md](https://github.com/huggingface/hub-docs/blob/main/docs/hub/model-cards.md) (`hub-docs` repo)
- [docs/hub/model-card-annotated.md](https://github.com/huggingface/hub-docs/blob/main/docs/hub/model-card-annotated.md) (`hub-docs` repo)
- [datasetcard.md](https://github.com/huggingface/hub-docs/blob/main/datasetcard.md) (`hub-docs` repo)
- [docs/hub/datasets-cards.md](https://github.com/huggingface/hub-docs/blob/main/docs/hub/datasets-cards.md) (`hub-docs` repo)
token: ${{ secrets.comment_bot_token }}
body-include: '<!-- Created by actions-cool/maintain-one-comment -->'