)]}'
{
  "commit": "c139982287731dfab910389deeba766d73cf1bd4",
  "tree": "7ee64dbc9d7545fa46a6edda17d55cbe064f8e42",
  "parents": [
    "f825e69e62896f588496b5b33673de58293a6ba2"
  ],
  "author": {
    "name": "Marc-Antoine Ruel",
    "email": "maruel@gmail.com",
    "time": "Sun Jun 08 17:47:50 2025 +0000"
  },
  "committer": {
    "name": "Philip Zeyliger",
    "email": "philip.zeyliger@gmail.com",
    "time": "Sun Jun 08 12:54:24 2025 -0700"
  },
  "message": "github: prevent discord webhook from running on forks\n\nFix Discord notification workflow triggering on forked repositories where\nsecrets are unavailable and notifications are unnecessary for contributors.\n\nProblem Analysis:\nThe Discord webhook workflow was configured to run on all repositories,\nincluding forks, where the DISCORD_WEBHOOK_FOR_COMMITS secret would be\nunavailable. This caused workflow failures and attempted notifications\nfrom forks that serve no purpose for the main project\u0027s Discord channel.\n\nImplementation Changes:\n- Added if: github.event.repository.fork \u003d\u003d false condition to notify-discord job\n- Prevents execution on forked repositories while maintaining functionality on origin\n- Uses GitHub\u0027s built-in repository metadata for reliable fork detection\n\nBenefits:\n- Eliminates workflow failures on forks due to missing secrets\n- Reduces unnecessary workflow runs on contributor forks\n- Maintains proper Discord notifications only for the main repository\n- Clean workflow execution without configuration changes required\n\nThis ensures Discord notifications only occur for the main repository\nwhile preventing errors and resource waste on community forks.\n\nCo-Authored-By: sketch \u003chello@sketch.dev\u003e\nChange-ID: s5a155846902dd30fk\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b0258be9c2e8f27b73fd84437fec30af22447481",
      "old_mode": 33188,
      "old_path": ".github/workflows/discord-notify.yml",
      "new_id": "c9e2eae65550e146e3d4c5a9d4d19c9066c34be7",
      "new_mode": 33188,
      "new_path": ".github/workflows/discord-notify.yml"
    }
  ]
}
