Skip to content

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

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

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

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:
image: ghcr.io/datadog/agent-issue-auto-assign:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
permissions:
packages: read
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install dependencies
run: |
pip install --upgrade pip && pip install --no-compile --no-cache-dir torch transformers invoke codeowners slack-sdk PyGithub python-gitlab semver
- 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