Skip to content

Commit c45052f

Browse files
feat: add unique project ID field automation (VMCT-N prefix)
1 parent e905067 commit c45052f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/add-to-project.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ jobs:
2929
PRIORITY_FIELD: "PVTSSF_lADOCxeiOM4BR2KZzg_jXvs"
3030
CATEGORY_FIELD: "PVTSSF_lADOCxeiOM4BR2KZzg_jXxA"
3131
ITEM_ID: ${{ needs.add-to-project.outputs.item_id }}
32+
ID_FIELD: "PVTF_lADOCxeiOM4BR2KZzhADImQ"
3233
steps:
34+
- name: Set ID field
35+
run: |
36+
NUMBER=${{ github.event.issue.number || github.event.pull_request.number }}
37+
gh project item-edit --project-id "$PROJECT_ID" --id "$ITEM_ID" \
38+
--field-id "$ID_FIELD" --text "VMCT-$NUMBER"
39+
3340
- name: Set Solution field
3441
run: |
3542
LABELS='${{ toJson(github.event.issue.labels.*.name) }}'

0 commit comments

Comments
 (0)