Skip to content

feat(issues): Enable a new issue workflow for automatic issue triage #1

feat(issues): Enable a new issue workflow for automatic issue triage

feat(issues): Enable a new issue workflow for automatic issue triage #1

Workflow file for this run

---
name: "Assign issue to a team"
on:
issues:
types: [opened, reopened]
pull_request:
branches:
- main
jobs:
auto_assign_issue:
runs-on: ubuntu-latest
container: ghcr.io/datadog/agent-issue-auto-assign:latest
permissions:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Assign issue
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
ISSUE=31657
DRY_RUN="-d"
else
ISSUE="${{ github.event.issue.number }}"
fi
inv -e issue.assign-owner -i $ISSUE $DRY_RUN