镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Start PR checks on bot-created PRs - #8758

Closed
Suleimanlatrsh wants to merge 1 commit into
mainfrom
suleiman/dispatch-ci-for-bot-prs
Closed

Suleimanlatrsh wants to merge 1 commit into
mainfrom
suleiman/dispatch-ci-for-bot-prs

Conversation

@Suleimanlatrsh

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Bot PRs from maintenance-prs and gardener-backlog-prs get no CI. They are opened with GITHUB_TOKEN, and GitHub does not start pull_request workflows for events made with that token. For example, #8751 shows "No checks reported". Today the gardener has to close and reopen each PR to start the tests.

WHAT is this pull request doing?

  • tests-pr.yml: adds a workflow_dispatch trigger. The graphql-codegen check now also runs on dispatch. Without that it would be skipped, and a skipped required check counts as passing.
  • maintenance-prs.yml and gardener-backlog-prs.yml: add a start-pr-checks job that runs after the agent. If the run opened a PR, the job dispatches tests-pr.yml on the PR branch. The resulting check runs attach to the PR's head commit, the same way /snapit works since Restore /snapit using workflow dispatch #8721.
  • actions: write is only granted to the new job, not the agent's job. Otherwise the agent could dispatch other workflows such as release.yml.

Type-diff, breaking change detection and the E2E jobs still skip on dispatch because they need pull_request context. None of them are required checks.

How to manually test your changes?

workflow_dispatch only works once the trigger is on main, so this can't be fully tested before merge. What I checked:

After merge, run maintenance-prs from the Actions tab. Each new PR should show the PR checks without a close and reopen.

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing — I've identified the correct bump type (patch for bug fixes · minor for new features · major for breaking changes) and added a changeset with pnpm changeset add

@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant