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
b7d385e8
"tests/vscode:/vscode.git/clone" did not exist on "cf5c19302e94ddf274dd06bbd6d4ffee56a5d9ed"
Unverified
Commit
b7d385e8
authored
Sep 14, 2025
by
Lianmin Zheng
Committed by
GitHub
Sep 14, 2025
Browse files
automatically label pr for ci (#10435)
parent
305c9e8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
.github/workflows/label-pr.yml
.github/workflows/label-pr.yml
+30
-0
No files found.
.github/workflows/label-pr.yml
0 → 100644
View file @
b7d385e8
name
:
Label PRs for CI
# This workflow runs on pull requests that are opened or reopened.
on
:
pull_request_target
:
types
:
[
opened
,
reopened
]
# Sets the permissions for the GITHUB_TOKEN to allow adding labels.
permissions
:
pull-requests
:
write
jobs
:
labeler
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Add 'run-ci' label for authors with write access
# This 'if' condition checks the PR author's association with the repository.
# It proceeds only if the author is an OWNER, MEMBER, or COLLABORATOR.
if
:
>
contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'),
github.event.pull_request.author_association)
uses
:
actions/github-script@v7
with
:
script
:
|
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['run-ci']
})
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