Skip to content

🌱 Sync workflows from kubestellar/infra#3817

Merged
clubanderson merged 1 commit intomainfrom
sync/workflows-from-infra
Mar 29, 2026
Merged

🌱 Sync workflows from kubestellar/infra#3817
clubanderson merged 1 commit intomainfrom
sync/workflows-from-infra

Conversation

@clubanderson
Copy link
Copy Markdown
Collaborator

This PR syncs the caller workflows from kubestellar/infra.

These workflows call reusable workflows from kubestellar/infra:

Standard Workflows:

  • add-help-wanted.yml - Add help-wanted label to issues
  • assignment-helper.yml - Handle issue assignments
  • feedback.yml - Collect feedback
  • greetings.yml - Welcome new contributors
  • label-helper.yml - Manage labels
  • pr-verifier.yml - Verify PR contents
  • pr-verify-title.yml - Verify PR title format
  • scorecard.yml - Security scorecard
  • stale.yml - Mark stale issues/PRs

Agentic Workflows (Copilot Integration):

  • ai-fix.yml - Assign Copilot to issues with ai-fix-requested label
  • copilot-automation.yml - Automate Copilot PR processing (DCO, labels)
  • copilot-dco.yml - Override DCO for Copilot PRs

Auto-generated by workflow sync

Copilot AI review requested due to automatic review settings March 29, 2026 00:54
@kubestellar-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow bot added the dco-signoff: no Indicates the PR's author has not signed the DCO. label Mar 29, 2026
@kubestellar-prow
Copy link
Copy Markdown
Contributor

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.

📝 Please follow instructions in the contributing guide to update your commits with the DCO

Full details of the Developer Certificate of Origin can be found at developercertificate.org.

The list of commits missing DCO signoff:

  • 09ebeb2 🌱 Sync workflows from kubestellar/infra
Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 29, 2026

Deploy Preview for kubestellarconsole ready!

Name Link
🔨 Latest commit 09ebeb2
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/69c87865f8324a00085a3b07
😎 Deploy Preview https://deploy-preview-3817.console-deploy-preview.kubestellar.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown
Contributor

👋 Hey @clubanderson — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@kubestellar-prow kubestellar-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 29, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Syncs GitHub Actions caller workflows in this repository to use the standardized reusable workflows hosted in kubestellar/infra, aligning CI/automation behavior with the shared infra repo.

Changes:

  • Add pr-verify-title.yml that calls kubestellar/infra’s reusable PR title verification workflow.
  • Simplify ai-fix.yml to call kubestellar/infra’s reusable AI-fix workflow (replacing in-repo queueing logic).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/pr-verify-title.yml Adds a new PR title verification workflow that delegates to the shared reusable workflow in kubestellar/infra.
.github/workflows/ai-fix.yml Replaces local Copilot-queueing/job logic with a call to the shared reusable AI-fix workflow.

Comment on lines 20 to +24
jobs:
# Queue issues for Copilot assignment (processed by copilot-queue.yml)
queue-for-copilot:
runs-on: ubuntu-latest
if: |
(github.event_name == 'issues' &&
contains(github.event.issue.labels.*.name, 'ai-fix-requested') &&
contains(github.event.issue.labels.*.name, 'triage/accepted')) ||
github.event_name == 'workflow_dispatch'
steps:
- name: Add to Copilot queue
uses: actions/github-script@v7
with:
github-token: ${{ secrets.CONSOLE_AUTO || secrets.GITHUB_TOKEN }}
script: |
const issueNumber = context.eventName === 'workflow_dispatch'
? parseInt('${{ inputs.issue_number }}', 10)
: context.payload.issue?.number;

if (!issueNumber) {
core.info('No issue number found, skipping');
return;
}

const { data: issue } = await github.rest.issues.get({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
});

const labels = issue.labels.map(l => l.name);

// Skip if already queued or being processed
if (labels.includes('ai-queued') || labels.includes('ai-processing') || labels.includes('ai-pr-ready')) {
core.info(`#${issueNumber}: already queued or in progress, skipping`);
return;
}

// Check required label
if (!labels.includes('ai-fix-requested') && context.eventName !== 'workflow_dispatch') {
core.info(`#${issueNumber}: missing ai-fix-requested label, skipping`);
return;
}

// Add to queue
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
labels: ['ai-queued'],
});

core.info(`#${issueNumber}: added to Copilot queue`);

# Keep the PR linking job from the reusable workflow
update-issue-on-pr:
if: github.event_name == 'pull_request_target'
ai-fix:
uses: kubestellar/infra/.github/workflows/reusable-ai-fix.yml@main
with:
issue_number: ''
issue_number: ${{ github.event.inputs.issue_number || '' }}
Copy link

Copilot AI Mar 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ai-fix now runs unconditionally on every issues:labeled event (and calls the reusable workflow), whereas the previous implementation gated execution to ai-fix-requested + triage/accepted (or workflow_dispatch). If the reusable workflow doesn’t short-circuit early, this can create noisy/expensive runs for unrelated label changes. Consider restoring a job-level if: guard equivalent to the previous conditions to keep runs scoped to intended labels.

Copilot uses AI. Check for mistakes.
@clubanderson
Copy link
Copy Markdown
Collaborator Author

🔄 Auto-Applying Copilot Code Review

Copilot code review found 0 code suggestion(s) and 1 general comment(s).

Also address these general comments:

  • .github/workflows/ai-fix.yml (line 24): ai-fix now runs unconditionally on every issues:labeled event (and calls the reusable workflow), whereas the previou

Push all fixes in a single commit. Run cd web && npm run build && npm run lint before committing.


Auto-generated by copilot-review-apply workflow.

@clubanderson clubanderson merged commit 48b7d91 into main Mar 29, 2026
21 of 27 checks passed
@kubestellar-prow kubestellar-prow bot deleted the sync/workflows-from-infra branch March 29, 2026 21:17
@github-actions
Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

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

Labels

dco-signoff: no Indicates the PR's author has not signed the DCO. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants