mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-21 03:40:52 +00:00
Merge branch 'iso_alloc' of github.com:HiFiPhile/tinyusb into iso_alloc
This commit is contained in:
commit
5fd6241d28
38
.github/workflows/labeler.yml
vendored
38
.github/workflows/labeler.yml
vendored
@ -28,29 +28,31 @@ jobs:
|
|||||||
issueOrPrNumber = context.payload.pull_request.number;
|
issueOrPrNumber = context.payload.pull_request.number;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for Adafruit membership
|
try {
|
||||||
const adafruitResponse = await github.rest.orgs.checkMembershipForUser({
|
// Check for Adafruit membership
|
||||||
org: 'adafruit',
|
const adafruitResponse = await github.rest.orgs.checkMembershipForUser({
|
||||||
username: username
|
org: 'adafruit',
|
||||||
});
|
|
||||||
|
|
||||||
if (adafruitResponse.status === 204) {
|
|
||||||
console.log('Adafruit Member');
|
|
||||||
label = 'Prio Urgent';
|
|
||||||
} else {
|
|
||||||
// Check if the user is a contributor
|
|
||||||
const collaboratorResponse = await github.rest.repos.checkCollaborator({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
username: username
|
username: username
|
||||||
});
|
});
|
||||||
|
|
||||||
if (collaboratorResponse.status === 204) {
|
if (adafruitResponse.status === 204) {
|
||||||
console.log('Contributor');
|
console.log('Adafruit Member');
|
||||||
label = 'Prio Higher';
|
label = 'Prio Urgent';
|
||||||
} else {
|
} else {
|
||||||
console.log('Not a contributor or Adafruit member');
|
// If not a Adafruit member, check if the user is a contributor
|
||||||
|
const collaboratorResponse = await github.rest.repos.checkCollaborator({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
username: username
|
||||||
|
});
|
||||||
|
|
||||||
|
if (collaboratorResponse.status === 204) {
|
||||||
|
console.log('Contributor');
|
||||||
|
label = 'Prio Higher';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.log(`Error processing user ${username}: ${error.message}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (label !== '') {
|
if (label !== '') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user