Skip to content
Merged
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
19 changes: 19 additions & 0 deletions .github/workflows/action-semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Lint PR'

on:
pull_request_target:
types:
- opened
- reopened
- edited

jobs:
main:
name: Validate PR title
runs-on: ubuntu-slim
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Invalid GitHub-hosted runner label.

ubuntu-slim is not a valid GitHub-hosted runner. This will cause the workflow to fail with a runner resolution error.

🐛 Proposed fix
-    runs-on: ubuntu-slim
+    runs-on: ubuntu-latest
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
runs-on: ubuntu-slim
runs-on: ubuntu-latest
🤖 Prompt for AI Agents
In @.github/workflows/action-semantic-pull-request.yml at line 13, The workflow
uses an invalid runner label ("ubuntu-slim") in the runs-on field which will
fail runner resolution; update the runs-on value in the workflow definition to a
valid GitHub-hosted runner (for example "ubuntu-latest" or "ubuntu-22.04") by
replacing the runs-on: ubuntu-slim line in the .github workflow file so the job
can run on a supported runner.

permissions:
pull-requests: read
steps:
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}