Skip to content

Hugo

Fast static site generator.

Mostly friendly. Welcome, with extra rules.

Homepage Repository

Hugo allows AI-assisted code contributions if substantial AI generation is disclosed, the contributor manually verifies and understands the code, and non-maintainers keep AI-generated changes to a narrow scope such as a bug fix. Broad AI-generated changes from non-maintainers are not accepted, and the policy does not address AI use in issues or other project communication.

Policy by area

Code contributionsPatches, pull requests and other changes written with AI tools.
Mostly friendly
  • AI use must be disclosed
  • Contributor takes full responsibility
  • A human must review the output
  • AI only for some kinds or sizes of work
Issues & bug reportsBug reports, security reports and issues found or written with AI tools.
No policy
AI-written textPull request descriptions, issue comments and summaries written by AI.
No policy

What is allowed and what is not

Code contributions

  • Autocomplete · Allowed with conditions

    Inline AI completion is allowed, but contributors must manually verify the PR and understand the generated code; disclose if a substantial part is AI-generated.

    • Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.
    • Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.
    • Take full responsibility: Understand the generated code and be able to answer critical questions about it.
    3 quotes

    If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity.

    Contributing to Hugo

    * We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed).

    Contributing to Hugo

    * We expect contributors to understand the code that is produced and be able to answer critical questions about it

    Contributing to Hugo
  • Small fixes · Allowed with conditions

    Small AI-generated fixes from non-maintainers are allowed only at a narrow scope, with disclosure if substantial, manual verification, and understanding of the code.

    • Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.
    • Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.
    • Take full responsibility: Understand the generated code and be able to answer critical questions about it.
    • Keep it small: Non-maintainers must keep AI contributions to a fairly narrow scope, such as a bug fix.
    3 quotes

    If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity.

    Contributing to Hugo

    * We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed).

    Contributing to Hugo

    * We expect contributors to understand the code that is produced and be able to answer critical questions about it

    Contributing to Hugo
  • Large or generated changes · Allowed with conditions

    Large AI-generated changes are subject to disclosure, manual verification and understanding; non-maintainers are limited to a narrow scope, so broad AI-generated PRs from non-maintainers are not accepted.

    • Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.
    • Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.
    • Take full responsibility: Understand the generated code and be able to answer critical questions about it.
    3 quotes

    If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity.

    Contributing to Hugo

    * We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed).

    Contributing to Hugo

    * We expect contributors to understand the code that is produced and be able to answer critical questions about it

    Contributing to Hugo
  • Mechanical changes · Allowed with conditions

    AI mechanical edits are allowed for non-maintainers only at a narrow scope, with disclosure if substantial, manual verification, and understanding of the code.

    • Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.
    • Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.
    • Take full responsibility: Understand the generated code and be able to answer critical questions about it.
    • Keep it small: Non-maintainers must keep AI contributions to a fairly narrow scope; broad AI-driven reformatting across the codebase is not allowed for them.
    3 quotes

    If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity.

    Contributing to Hugo

    * We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed).

    Contributing to Hugo

    * We expect contributors to understand the code that is produced and be able to answer critical questions about it

    Contributing to Hugo
  • Tests · Allowed with conditions

    AI-generated tests are allowed for non-maintainers only as a narrow contribution, with disclosure if substantial, manual verification, and understanding of the code.

    • Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.
    • Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.
    • Take full responsibility: Understand the generated code and be able to answer critical questions about it.
    • Keep it small: Non-maintainers must keep AI contributions to a fairly narrow scope, such as a bug fix.
    3 quotes

    If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity.

    Contributing to Hugo

    * We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed).

    Contributing to Hugo

    * We expect contributors to understand the code that is produced and be able to answer critical questions about it

    Contributing to Hugo
  • Build and CI · Allowed with conditions

    AI-generated build or CI changes are allowed for non-maintainers only as a narrow contribution, with disclosure if substantial, manual verification, and understanding of the code.

    • Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.
    • Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.
    • Take full responsibility: Understand the generated code and be able to answer critical questions about it.
    • Keep it small: Non-maintainers must keep AI contributions to a fairly narrow scope, such as a bug fix.
    3 quotes

    If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity.

    Contributing to Hugo

    * We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed).

    Contributing to Hugo

    * We expect contributors to understand the code that is produced and be able to answer critical questions about it

    Contributing to Hugo
  • Documentation · Allowed with conditions

    AI-written documentation changes in this repository are subject to disclosure when substantial, manual verification, and the non-maintainer narrow-scope limit; documentation-only PRs are directed to hugoDocs.

    • Disclose AI use: If a substantial part is AI-generated, disclose it in the pull request with the extent of AI assistance.
    • Review AI output first: Manually verify that the pull request state is OK, e.g. that the CLI is signed.
    • Keep it small: Non-maintainers must keep AI contributions to a fairly narrow scope, such as a bug fix.
    2 quotes

    If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity.

    Contributing to Hugo

    * We expect contributors to manually verify that the state of the pull request is OK (e.g. that the CLI is signed).

    Contributing to Hugo
  • Other code contributions rule · Not allowed

    AI contributions from non-maintainers must have a fairly narrow scope (e.g. a bug fix); broad AI-generated changes from non-maintainers are not accepted.

    Quote

    If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity.

    Contributing to Hugo
  • Other code contributions rule · Allowed

    The narrow-scope limit is stated only for non-maintainers, so maintainers are not covered by that limitation.

    Quote

    If a substantial part of your contribution is autogenerated with AI, **this must be disclosed in the pull request**, along with the extent to which AI assistance was used. AI contributions from non-maintainers needs to have a fairly narrow scope (e.g. a bug fix), as we have limited review capacity.

    Contributing to Hugo
Not covered by the policy (6)

Translating the software, Images and media, Research and learning, Checking own work, AI as author, Autonomous agents.

Issues & bug reports

The policy does not cover this area.

AI-written text

The policy does not cover this area.

Sources