diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..1a3a127 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,49 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: 'bug,triage' +--- + + + +# Bug Report + + + +## Repro or Code Sample + + + +## Expected Behavior + + + +## Current Behavior + + + + + +## Possible Solution + + + + +## Context + + + + +## Your Environment + + + +* Operating system and version: [e.g. Windows 11 24H2, Ubuntu Linux 24.04] +* NI-Sync version: [e.g. 2024 Q4] +* `nisync-python` version: [e.g. 1.0.1] +* Python version [e.g. 3.9] \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..d59a58d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,25 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: 'enhancement,triage' +--- + + + +## Problem to Solve + + + +## Proposed Solution + + + + diff --git a/.github/ISSUE_TEMPLATE/tech_debt.md b/.github/ISSUE_TEMPLATE/tech_debt.md new file mode 100644 index 0000000..1fb0ee6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/tech_debt.md @@ -0,0 +1,7 @@ +--- +name: Tech debt +about: (DEV TEAM ONLY) Non-user-visible improvement to code or development process +title: '' +labels: 'tech debt,triage' +--- +## Tech Debt diff --git a/.github/ISSUE_TEMPLATE/user_story.md b/.github/ISSUE_TEMPLATE/user_story.md new file mode 100644 index 0000000..234a940 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/user_story.md @@ -0,0 +1,10 @@ +--- +name: User story +about: (DEV TEAM ONLY) A small chunk of work to be done +title: '(Fully descriptive title)' +labels: 'user story,triage' +--- + + + +## User Story diff --git a/.github/workflows/sync_github_issues_to_azdo.yml b/.github/workflows/sync_github_issues_to_azdo.yml new file mode 100644 index 0000000..70cad98 --- /dev/null +++ b/.github/workflows/sync_github_issues_to_azdo.yml @@ -0,0 +1,38 @@ +name: Sync issue to Azure DevOps work item + +on: + issues: + # Omit "labeled" and "unlabeled" to work around https://github.com/danhellem/github-actions-issue-to-work-item/issues/70 + types: + [opened, edited, deleted, closed, reopened, assigned] + issue_comment: + types: [created, edited, deleted] + +jobs: + alert: + if: ${{ !github.event.issue.pull_request && github.event.issue.title != 'Dependency Dashboard' }} + runs-on: ubuntu-latest + steps: + - name: Choose work item type + id: choose_work_item_type + run: | + if [ "${{ contains(github.event.issue.labels.*.name, 'enhancement') || contains(github.event.issue.labels.*.name, 'user story') }}" == "true" ]; then + echo "work_item_type=User Story" >> $GITHUB_OUTPUT + elif [ "${{ contains(github.event.issue.labels.*.name, 'tech debt') }}" == "true" ]; then + echo "work_item_type=Technical Debt" >> $GITHUB_OUTPUT + else + echo "work_item_type=Bug" >> $GITHUB_OUTPUT + fi + - uses: danhellem/github-actions-issue-to-work-item@v2.4 + env: + ado_token: "${{ secrets.AZDO_WORK_ITEM_TOKEN }}" + github_token: "${{ secrets.GH_REPO_TOKEN }}" + ado_organization: "ni" + ado_project: "DevCentral" + ado_area_path: "DevCentral\\Product RnD\\Platform HW and SW\\Core SW and Drivers\\Platform HW and Drivers\\Drivers\\Mars" + ado_wit: "${{ steps.choose_work_item_type.outputs.work_item_type }}" + ado_new_state: "New" + ado_active_state: "Active" + ado_close_state: "Closed" + ado_bypassrules: true + log_level: 100