Skip to content

Ethereum indexer fails on startup when block.data is created as directory #12

Ethereum indexer fails on startup when block.data is created as directory

Ethereum indexer fails on startup when block.data is created as directory #12

Workflow file for this run

# .github/workflows/triage-issues.yml
# Auto-label new issues based on author + add repo label
name: Triage Issues
on:
issues:
types: [opened]
jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: Add labels
uses: actions/github-script@v7
with:
script: |
const maintainers = ['mrlutik'];
const author = context.payload.issue.user.login;
const repoName = context.repo.repo;
const labels = [];
// Status label based on author
if (maintainers.includes(author)) {
labels.push('status: backlog');
} else {
labels.push('needs-triage');
}
// Repo label for cross-repo tracking
labels.push(`repo: ${repoName}`);
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: labels
});
console.log(`Added labels [${labels.join(', ')}] to #${context.issue.number}`);