This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
Technical Onboarding Form is not working #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Assign Issues | |
on: | |
issues: | |
types: [opened, edited] | |
jobs: | |
assign: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Assign issues based on labels | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const issue = context.payload.issue; | |
const labels = issue.labels.map(label => label.name); | |
if (labels.includes('feedback')) { | |
await github.issues.addAssignees({ | |
...context.repo, | |
issue_number: issue.number, | |
assignees: ['SalemTracey'] | |
}); | |
} else { | |
await github.issues.addAssignees({ | |
...context.repo, | |
issue_number: issue.number, | |
assignees: ['AnthonyByansi'] | |
}); | |
} |