Skip to content

deploying validators through the validator runbook ignores the secret if the validator runbook is not pre approved #97

deploying validators through the validator runbook ignores the secret if the validator runbook is not pre approved

deploying validators through the validator runbook ignores the secret if the validator runbook is not pre approved #97

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'],
});
}