-
Notifications
You must be signed in to change notification settings - Fork 17
🌱 Sync workflows from kubestellar/infra #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 || '' }} | ||
| secrets: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
Comment on lines
+25
to
+26
|
||
| 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 || '' }} | ||||||
|
||||||
| pr_number: ${{ github.event.inputs.pr_number || '' }} | |
| pr_number: ${{ github.event.pull_request.number || github.event.inputs.pr_number || '' }} |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
issuesevents (lines 10-11) orpull_request_targetevents (lines 12-13), the issue_number parameter will be empty becausegithub.event.inputs.issue_numberis only populated forworkflow_dispatchevents. The expression should also includegithub.event.issue.numberfor issue events and potentiallygithub.event.pull_request.numberfor PR events. Consider using:issue_number: ${{ github.event.issue.number || github.event.pull_request.number || github.event.inputs.issue_number || '' }}