Skip to content

Label splice_acs_store_size metric with template_name #82

Label splice_acs_store_size metric with template_name

Label splice_acs_store_size metric with template_name #82

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