Skip to content

✧𝐌𝐨𝐫𝐠𝐮𝐞 𝐁𝐢𝐫𝐭𝐡𝐝𝐚𝐲 𝐁𝐨𝐭✧ #358

✧𝐌𝐨𝐫𝐠𝐮𝐞 𝐁𝐢𝐫𝐭𝐡𝐝𝐚𝐲 𝐁𝐨𝐭✧

✧𝐌𝐨𝐫𝐠𝐮𝐞 𝐁𝐢𝐫𝐭𝐡𝐝𝐚𝐲 𝐁𝐨𝐭✧ #358

name: Auto Labeler - Issues
on:
issues:
types: [opened]
permissions:
issues: write
jobs:
apply_triage_label_to_issues:
runs-on: ubuntu-latest
steps:
- name: Apply Triage Label
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const is_status_label = (label) => label.name.startsWith('Status: ');
if (context.payload.issue.labels.some(is_status_label)) {
console.log('Issue already has Status label, skipping...');
return;
}
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['Status: Needs Triage']
});