Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

env:
dist-artifact-name: nitypes-distribution-packages
environment: ${{ github.event_name == 'release' && 'pypi' || inputs.environment }}
environment: ${{ case(github.event_name == 'release', 'pypi', inputs.environment) }}
environment-info: |
{
"pypi": {
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
needs: [build_nitypes]
environment:
# This logic is duplicated because `name` doesn't support the `env` context.
name: ${{ github.event_name == 'release' && 'pypi' || inputs.environment }}
name: ${{ case(github.event_name == 'release', 'pypi', inputs.environment) }}
url: ${{ fromJson(env.environment-info)[env.environment].base-url }}/p/nitypes
permissions:
id-token: write
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/sync_github_issues_to_azdo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,17 @@ jobs:
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@45eb3b46e684f2acd2954f02ef70350c835ee4bb # 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\\SW New Invest and Tech\\ETW\\Python CodeGen"
ado_wit: "${{ steps.choose_work_item_type.outputs.work_item_type }}"
ado_wit: "${{ case(
contains(github.event.issue.labels.*.name, 'enhancement') || contains(github.event.issue.labels.*.name, 'user story'), 'User Story',
contains(github.event.issue.labels.*.name, 'tech debt'), 'Technical Debt',
'Bug') }}"
ado_new_state: "New"
ado_active_state: "Active"
ado_close_state: "Closed"
Expand Down
Loading