Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/ai-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: AI Fix with Copilot

on:
workflow_dispatch:
inputs:
issue_number:
description: Issue number to assign to Copilot
required: true
type: string
issues:
types: [labeled]
pull_request_target:
types: [opened]

permissions:
contents: write
issues: write
pull-requests: write

jobs:
ai-fix:
uses: kubestellar/infra/.github/workflows/reusable-ai-fix.yml@main
with:
issue_number: ${{ github.event.inputs.issue_number || '' }}
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

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

When this workflow is triggered by issues events (lines 10-11) or pull_request_target events (lines 12-13), the issue_number parameter will be empty because github.event.inputs.issue_number is only populated for workflow_dispatch events. The expression should also include github.event.issue.number for issue events and potentially github.event.pull_request.number for PR events. Consider using: issue_number: ${{ github.event.issue.number || github.event.pull_request.number || github.event.inputs.issue_number || '' }}

Suggested change
issue_number: ${{ github.event.inputs.issue_number || '' }}
issue_number: ${{ github.event.issue.number || github.event.pull_request.number || github.event.inputs.issue_number || '' }}

Copilot uses AI. Check for mistakes.
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
Comment on lines +25 to +26
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

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

This workflow uses an explicit token secret instead of secrets: inherit which is the pattern used by all other workflows in this repository that call reusable workflows from kubestellar/infra. Consider changing to use secrets: inherit for consistency with other workflows like add-help-wanted.yml, greetings.yml, pr-verifier.yml, and stale.yml.

Copilot uses AI. Check for mistakes.
29 changes: 29 additions & 0 deletions .github/workflows/copilot-automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Copilot PR Automation

on:
workflow_dispatch:
inputs:
pr_number:
description: PR number to process
required: true
type: string
pull_request_target:
types: [opened, synchronize, ready_for_review]

permissions:
contents: write
pull-requests: write
issues: write
statuses: write

concurrency:
group: copilot-automation-${{ github.event.pull_request.number || github.event.inputs.pr_number || github.sha }}
cancel-in-progress: true

jobs:
copilot-automation:
uses: kubestellar/infra/.github/workflows/reusable-copilot-automation.yml@main
with:
pr_number: ${{ github.event.inputs.pr_number || '' }}
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

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

When this workflow is triggered by pull_request_target events (lines 10-11), the pr_number parameter will be empty because github.event.inputs.pr_number is only populated for workflow_dispatch events. The expression should also include github.event.pull_request.number to correctly pass the PR number for pull_request_target events. Consider using: pr_number: ${{ github.event.pull_request.number || github.event.inputs.pr_number || '' }}

Suggested change
pr_number: ${{ github.event.inputs.pr_number || '' }}
pr_number: ${{ github.event.pull_request.number || github.event.inputs.pr_number || '' }}

Copilot uses AI. Check for mistakes.
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
Comment on lines +28 to +29
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

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

This workflow uses an explicit token secret instead of secrets: inherit which is the pattern used by all other workflows in this repository that call reusable workflows from kubestellar/infra. Consider changing to use secrets: inherit for consistency with other workflows like add-help-wanted.yml, greetings.yml, pr-verifier.yml, and stale.yml.

Copilot uses AI. Check for mistakes.