Skip to content

Stop unrelated post-merge workflow failures in Rules V3#12767

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-workflows
Draft

Stop unrelated post-merge workflow failures in Rules V3#12767
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-workflows

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 22, 2026

  1. What triggered this change? (PBI link, Email Subject, conversation + reason, etc)

YakShaver-raised issue: two workflows were failing after normal merges in Rules V3, creating noisy false-failure notifications (Content Snapshot Cleanup (Agent 3b) and Validate-Frontmatter-in-All-Rules).

  1. What was changed?

The failures were caused by (1) a guard step treating expected non-match as hard failure, and (2) a legacy validator workflow targeting a removed path.

  • Content Snapshot Cleanup (Agent 3b)

    • Moved issue guard behavior into pre-activation semantics (skip path) instead of failing runtime execution.
    • Added is_contenthawk_judge_issue output in pre-activation and gated activation on it for issues events.
    • Removed the in-agent exit 1 guard step that produced false failures.
  • Validate front matter in all rules

    • Removed .github/workflows/validate-frontmatter-all.yml (obsolete for Rules V3 layout; it searched rules/ which no longer exists).
# New activation gate (lock workflow)
if: needs.pre_activation.outputs.activated == 'true' &&
    (github.event_name != 'issues' ||
     needs.pre_activation.outputs.is_contenthawk_judge_issue == 'true')
  1. I paired or mob programmed with:
    N/A

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/github/gh-aw/releases/latest
    • Triggering command: /usr/bin/gh gh extension install github/gh-aw (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Fix failing GitHub Actions workflows in Rules V3 Stop unrelated post-merge workflow failures in Rules V3 May 22, 2026
Copilot AI requested a review from Calinator444 May 22, 2026 00:07
@github-actions github-actions Bot added Age: 🐣 - Young About 4 hours old Age: 🐥 - Adolescent About 8 hours old Age: 🐤 - Mature About 16 hours old Age: 🐓 - Old About 32 hours old Age: 🍗 - Ancient About 64 hours old Age: 🦖 - Extinct About 128 hours old and removed Age: 🐣 - Young About 4 hours old Age: 🐥 - Adolescent About 8 hours old Age: 🐤 - Mature About 16 hours old Age: 🐓 - Old About 32 hours old Age: 🍗 - Ancient About 64 hours old labels May 22, 2026
@Calinator444
Copy link
Copy Markdown
Member

Closing this - I'm going to ship the fix as a CotnentHawk fix. Thanks Copilot 👍

Calinator444 added a commit that referenced this pull request May 27, 2026
…hecking issue relevance (#12782)

### Description

This PR updates `contenthawk-snapshot-done` to use pre-activation steps
to check if the closed issue was relevant rather than throwing an error.
This doesn't functionally change how the workflow works, but it means
when the workflow is skipped it will not show up as an error in GitHub
actions.


Changes based on this PR (I just used GitHub scripts instead since it's
easier to read):
#12767

### Note
This PR was Generated by the 🦅ContentHawk installer because I wanted to
roll out the fix for ContentHawk in general.


### Screenshot

<img width="1563" height="596" alt="CleanShot 2026-05-28 at 08 47 14"
src="https://github.com/user-attachments/assets/cfd17bce-26d2-43fa-b03e-721911a74975"
/>

**Figure: Workflows being skipped on test repo**

### Fixed 

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

Labels

Age: 🦖 - Extinct About 128 hours old

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🧹 Fix failing GitHub Actions workflows in Rules V3 (TinaCMS)

2 participants