Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
8f6a1758
Unverified
Commit
8f6a1758
authored
Sep 14, 2025
by
Lianmin Zheng
Committed by
GitHub
Sep 14, 2025
Browse files
Fix label pr for ci (#10441)
parent
01018138
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
.github/workflows/label-pr.yml
.github/workflows/label-pr.yml
+12
-8
No files found.
.github/workflows/label-pr.yml
View file @
8f6a1758
name
:
Label PR
s
for CI
name
:
Label PR for CI
# This workflow runs on pull requests that are opened or reopened.
on
:
on
:
pull_request_target
:
pull_request_target
:
types
:
[
opened
,
reopened
]
types
:
[
opened
,
reopened
]
...
@@ -13,12 +12,17 @@ jobs:
...
@@ -13,12 +12,17 @@ jobs:
labeler
:
labeler
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
name
:
Add 'run-ci' label for authors with write access
-
name
:
Check user permission
# This 'if' condition checks the PR author's association with the repository.
id
:
checkAccess
# It proceeds only if the author is an OWNER, MEMBER, or COLLABORATOR.
uses
:
actions-cool/check-user-permission@v2
if
:
>
with
:
contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'),
require
:
write
github.event.pull_request.author_association)
username
:
${{ github.triggering_actor }}
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Add run-ci label
if
:
steps.checkAccess.outputs.require-result == 'true'
uses
:
actions/github-script@v7
uses
:
actions/github-script@v7
with
:
with
:
script
:
|
script
:
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment