Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

fix(ci): skip scheduled workflows on forks#16497

Closed
Chesars wants to merge 1 commit intoanomalyco:devfrom
Chesars:fix/skip-scheduled-workflows-on-forks
Closed

fix(ci): skip scheduled workflows on forks#16497
Chesars wants to merge 1 commit intoanomalyco:devfrom
Chesars:fix/skip-scheduled-workflows-on-forks

Conversation

@Chesars
Copy link
Contributor

@Chesars Chesars commented Mar 7, 2026

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Scheduled workflows (cron-triggered) run on forks, wasting CI minutes and generating noisy email notifications for fork owners. This adds a if: github.repository == 'anomalyco/opencode' guard to 6 scheduled workflows that were missing it:

  • beta.yml (hourly)
  • close-stale-prs.yml (daily)
  • compliance-close.yml (every 30 min)
  • daily-issues-recap.yml (daily)
  • daily-pr-recap.yml (daily)
  • stale-issues.yml (daily)

Also fixes docs-update.yml which had an incorrect repo reference (sst/opencodeanomalyco/opencode). stats.yml already had the correct guard.

How did you verify your code works?

Verified the YAML syntax is correct and the if condition is placed at the job level. This is the standard GitHub Actions pattern to prevent scheduled workflows from running on forks.

Screenshots / recordings

N/A - CI config change only.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Add `if: github.repository == 'anomalyco/opencode'` guard to scheduled
workflows that run unnecessarily on forks, wasting CI minutes and
generating noisy email notifications.

Also fixes docs-update.yml which had an incorrect repo reference
(`sst/opencode` instead of `anomalyco/opencode`).
@github-actions github-actions bot added contributor needs:compliance This means the issue will auto-close after 2 hours. labels Mar 7, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No issue referenced. Please add Closes #<number> linking to the relevant issue.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

The following comment was made by an LLM, it may be inaccurate:

Found a potentially related PR:

PR #14672: chore: add repository guard to workflows

This could be a duplicate or related work that should be reviewed to ensure there's no overlap or that the earlier work was not sufficient/complete.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Mar 7, 2026
@github-actions github-actions bot closed this Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant