Skip to content

Add flag to switch to new connection pools, if that is set, don't reconnect on modifications #166

Add flag to switch to new connection pools, if that is set, don't reconnect on modifications

Add flag to switch to new connection pools, if that is set, don't reconnect on modifications #166

name: Auto-assign issues from external contributors
on:
issues:
types: [opened]
jobs:
assign:
runs-on: ubuntu-24.04
steps:
- name: Assign issue from external contributors
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const issue = context.payload.issue;
const author = issue.user.login.toLowerCase();
const isInternalContributor = author.endsWith('-da') || author === 'cocreature';
if (issue.assignees.length === 0 && !isInternalContributor) {
console.log('Assigning issue to the triage team...');
await github.rest.issues.addAssignees({
issue_number: issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
assignees: ['isegall-da', 'martinflorian-da', 'ray-roestenburg-da'],
});
}