Skip to content

Keep redirect fixer logs out of bot PRs - #1174

Open
akcano wants to merge 1 commit into
mainfrom
docs/fix-redirected-links-workflow
Open

akcano wants to merge 1 commit into
mainfrom
docs/fix-redirected-links-workflow

Conversation

@akcano

@akcano akcano commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Description

Write workflow-log.txt to the runner temp directory and keep it in the uploaded artifact. Limit change detection and staging to docs/ so stray files cannot trigger or enter a bot PR.

actionlint .github/workflows/fix-redirected-links.yml passed. A disposable Git check confirmed that a stray root log is neither detected nor staged by the docs-scoped commands. Artifact verification is pending merge.

Self-review quick check

  • Make decisions that cost a lot to reverse explicit in the PR description.
  • Avoid nested conditions.
  • Delete dead code and redundant comments.
  • Normalise symmetries by sticking to doing identical things identically.
// one way to handle errors
if err := f(); err != nil {
   ...
}

// one way to handle multiple returns
val, err := f()
if err != nil {
   ...
}
...
  • Check that coupled code elements, files, and directories are adjacent. For example, test data is stored as close as possible to a test.
  • Put variable declaration and initialisation together.
  • Divide large expressions into digestable and self-explanatory ones. Use multiple variables if required.
  • Put a blank line between two logically different chunks of code.
  • Follow the style guide for new error messages.

Docs

Procedure:

  • I have checked and added or updated relevant documentation.
  • I have checked and added or updated relevant release notes.
  • I have included the technical author in the review.

Content:

  • Headings and titles accurately describe the content.
  • New and updated pages include correct metadata.
  • Documentation tests are added or updated where applicable (for tutorial/ and how-to/ sections).
  • Documentation follows the style guide.

Or:

  • I confirm the PR has no implications for documentation.

@akcano akcano self-assigned this Nov 30, 2026
@akcano
akcano requested a lite review from Copilot November 30, 2026 12:26
@akcano
akcano marked this pull request as ready for review November 30, 2026 12:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

A post-merge GitHub Actions run is still needed to verify that upload-artifact uses the GITHUB_ENV-derived TEMP_DIR and produces workflow-log.txt only at the intended absolute path.

No open issues 🎉

What changed in this PR

This PR hardens the redirected-link fixer workflow by keeping diagnostic logs outside the repository while preserving them in uploaded artifacts, and by limiting automated changes to documentation files.

Changes:

  • Writes and uploads workflow-log.txt from the runner’s temporary directory.
  • Restricts change detection and Git staging to docs/.
  • Prevents unrelated files from triggering or entering bot PRs.
File Description
.github/​workflows/​fix-redirected-links.yml Moves workflow logs to temporary storage and scopes automated change detection and staging to the docs/ directory.

Review effort: Lite

@akcano
akcano requested a review from dmitry-lyfar November 30, 2026 12:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants