Skip to content

Skip closed-PR follow-up workflows on Copilot branches#44967

Merged
pelikhan merged 3 commits into
mainfrom
copilot/label-closed-prs-pr-description-updater
Jul 11, 2026
Merged

Skip closed-PR follow-up workflows on Copilot branches#44967
pelikhan merged 3 commits into
mainfrom
copilot/label-closed-prs-pr-description-updater

Conversation

Copilot AI commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Two closed-PR workflows started clustering at action_required on 2026-07-11, matching the Copilot CLI hang-on-exit pattern. The failures were isolated to copilot/* branches; non-Copilot branches continued to behave normally.

  • Scope

    • Label Closed PRs
    • PR Description Updater
  • Change

    • Add a branch guard so these workflows do not run for pull requests whose head ref starts with copilot/.
    • Recompile pr-description-caveman.lock.yml so the generated workflow preserves the same condition.
  • Behavior

    • PR Description Updater now skips merged Copilot-agent PRs instead of entering the closed-PR action_required path.
    • Label Closed PRs now skips unmerged Copilot-agent PRs instead of attempting closure classification on those branches.
    • Existing behavior for non-copilot/* branches is unchanged.
  • Implementation

    • Source workflow guard:
      if: github.event.pull_request.merged == true &&
          !startsWith(github.event.pull_request.head.ref, 'signed/jsweep/') &&
          !startsWith(github.event.pull_request.head.ref, 'copilot/')
    • Job-level guard:
      if: github.event.pull_request.merged == false &&
          !startsWith(github.event.pull_request.head.ref, 'copilot/')

Copilot AI and others added 2 commits July 11, 2026 14:47
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix 80% action required error for CLI hang-on-exit Skip closed-PR follow-up workflows on Copilot branches Jul 11, 2026
Copilot AI requested a review from pelikhan July 11, 2026 14:55
@pelikhan
pelikhan marked this pull request as ready for review July 11, 2026 15:09
Copilot AI review requested due to automatic review settings July 11, 2026 15:09
@pelikhan
pelikhan merged commit 40d925e into main Jul 11, 2026
@pelikhan
pelikhan deleted the copilot/label-closed-prs-pr-description-updater branch July 11, 2026 15:10

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.

Pull request overview

Adds copilot/* branch guards to prevent problematic closed-PR follow-up runs.

Changes:

  • Skips PR description updates for merged Copilot branches.
  • Skips closure labeling for unmerged Copilot branches.
  • Recompiles the generated workflow.
Show a summary per file
File Description
.github/workflows/pr-description-caveman.md Adds the source workflow guard.
.github/workflows/pr-description-caveman.lock.yml Propagates the guard into generated jobs.
.github/workflows/label-closed-prs.yml Adds the closure-labeling job guard.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Medium

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.9

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.

Label Closed PRs + PR Description Updater: 80% AR cluster (CLI hang-on-exit)

3 participants