mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Allow try runs to all users with label permissions (#35911)
https://servo.zulipchat.com/#narrow/channel/263398-general/topic/Contributors.20do.20not.20seem.20to.20have.20try.20job.20permissions/with/504859292 Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
e51ab9728d
commit
ae2c9090cc
1 changed files with 0 additions and 11 deletions
11
.github/workflows/try-label.yml
vendored
11
.github/workflows/try-label.yml
vendored
|
@ -65,17 +65,6 @@ jobs:
|
|||
return "";
|
||||
}
|
||||
|
||||
let username = context.payload.sender.login;
|
||||
let result = await github.rest.repos.getCollaboratorPermissionLevel({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
username
|
||||
});
|
||||
if (!result.data.user.permissions.push) {
|
||||
makeComment('🔒 User @' + username + ' does not have permission to trigger try jobs.');
|
||||
return "";
|
||||
}
|
||||
|
||||
return try_string;
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue