Skip to content

Conversation

@Arqu
Copy link
Collaborator

@Arqu Arqu commented Feb 9, 2026

Description

The clean_docs_branch job fails with "fatal: empty ident name" because no git user.name/email is configured. Also handles the case where there are no old docs to clean up.

✅ workflow https://github.com/n0-computer/iroh/actions/runs/21824443730/job/62965614616

Breaking Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.
    • List all breaking changes in the above "Breaking Changes" section.
    • Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are:

The clean_docs_branch job fails with "fatal: empty ident name" because
no git user.name/email is configured. Also handles the case where there
are no old docs to clean up.
@Arqu Arqu self-assigned this Feb 9, 2026
@Arqu Arqu added this to iroh Feb 9, 2026
@github-project-automation github-project-automation bot moved this to 🚑 Needs Triage in iroh Feb 9, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the scheduled “Cleanup” GitHub Actions workflow so it can successfully commit/push changes on the generated-docs-preview branch, and cleanly no-op when there’s nothing to remove.

Changes:

  • Configure git user.name / git user.email in the cleanup job before committing.
  • Exit early with a clear message when the cleanup produces no staged changes (avoids failing git commit).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Arqu Arqu moved this from 🚑 Needs Triage to 👀 In review in iroh Feb 9, 2026
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3920/docs/iroh/

Last updated: 2026-02-10T10:38:59Z

- name: Clean docs branch
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a valid email? does this work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes https://github.com/orgs/community/discussions/26560 this thing lacks docs but is the standard convention to attribute these types of actions to the github bot. Also I think we already use it somewhere else.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Arqu Arqu enabled auto-merge February 10, 2026 10:36
Arqu added a commit to n0-computer/n0-error that referenced this pull request Feb 10, 2026
## Summary
- The `clean_docs_branch` job fails with `fatal: empty ident name`
because no git `user.name`/`user.email` is configured on the runner
- Also adds a guard for the "nothing to commit" case (when ≤25 PR dirs
exist)

Same fix as n0-computer/iroh#3920
Arqu added a commit to n0-computer/net-tools that referenced this pull request Feb 10, 2026
## Summary
- The `clean_docs_branch` job fails with `fatal: empty ident name`
because no git `user.name`/`user.email` is configured on the runner
- Also adds a guard for the "nothing to commit" case (when ≤25 PR dirs
exist)

Same fix as n0-computer/iroh#3920
Arqu added a commit to n0-computer/n0-future that referenced this pull request Feb 10, 2026
## Summary
- The `clean_docs_branch` job fails with `fatal: empty ident name`
because no git `user.name`/`user.email` is configured on the runner
- Also adds a guard for the "nothing to commit" case (when ≤25 PR dirs
exist)

Same fix as n0-computer/iroh#3920
Arqu added a commit to n0-computer/iroh-willow that referenced this pull request Feb 10, 2026
## Summary
- The `clean_docs_branch` job fails with `fatal: empty ident name`
because no git `user.name`/`user.email` is configured on the runner
- Also adds a guard for the "nothing to commit" case (when ≤25 PR dirs
exist)

Same fix as n0-computer/iroh#3920
Arqu added a commit to n0-computer/iroh-metrics that referenced this pull request Feb 10, 2026
## Summary
- The `clean_docs_branch` job fails with `fatal: empty ident name`
because no git `user.name`/`user.email` is configured on the runner
- Also adds a guard for the "nothing to commit" case (when ≤25 PR dirs
exist)

Same fix as n0-computer/iroh#3920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

3 participants