From 5fcd1e9eca651bfc209869bae97c7a14faddbe48 Mon Sep 17 00:00:00 2001 From: Lyndsay <93954795+lynwilhelm@users.noreply.github.com> Date: Tue, 24 Feb 2026 12:46:32 -0800 Subject: [PATCH] Create main.yml Trying to create an action for when an issue is assigned to a UXer, it auto adds a UX label. Long, confusing story about why but this will solve a problem for me. --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..541a5266 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: Auto-label UX issues + +on: + issues: + types: [opened, assigned, edited] + +jobs: + add-ux-label: + runs-on: ubuntu-latest + if: > + github.event.issue.assignees && + ( + contains(toJson(github.event.issue.assignees), 'traviskroeker') || + contains(toJson(github.event.issue.assignees), 'thao-do') || + contains(toJson(github.event.issue.assignees), 'lynwilhelm') + ) + + steps: + - name: Add UX label + uses: actions-ecosystem/action-add-labels@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: ux