From bfd6b8e996b0c0f4af9d2c5cd5aa7e5562932835 Mon Sep 17 00:00:00 2001
From: Douglas Wilson <douglas.wilson@quantinuum.com>
Date: Fri, 31 May 2024 15:04:23 +0100
Subject: [PATCH] chore: Add issue-to-project.yml, enable coverage

---
 .github/workflows/ci-rs.yml            |  3 +--
 .github/workflows/issue-to-project.yml | 17 +++++++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)
 create mode 100644 .github/workflows/issue-to-project.yml

diff --git a/.github/workflows/ci-rs.yml b/.github/workflows/ci-rs.yml
index d83c25c..eb30162 100644
--- a/.github/workflows/ci-rs.yml
+++ b/.github/workflows/ci-rs.yml
@@ -189,8 +189,7 @@ jobs:
       # tests-stable-no-features,
       tests-stable-all-features, tests-other, check]
     # Run only if there are changes in the relevant files and the check job passed or was skipped
-    # if: always() && !failure() && !cancelled() && needs.changes.outputs.rust == 'true' && github.event_name != 'merge_group'
-    if: false # todo
+    if: always() && !failure() && !cancelled() && needs.changes.outputs.rust == 'true' && github.event_name != 'merge_group'
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4
diff --git a/.github/workflows/issue-to-project.yml b/.github/workflows/issue-to-project.yml
new file mode 100644
index 0000000..b43919b
--- /dev/null
+++ b/.github/workflows/issue-to-project.yml
@@ -0,0 +1,17 @@
+name: Add issues to project
+
+on:
+  issues:
+    types:
+      - opened
+
+jobs:
+  add-to-project:
+    name: Add issue to project
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/add-to-project@v1.0.1
+        with:
+          project-url: https://github.com/orgs/CQCL-DEV/projects/10
+          github-token: ${{ secrets.HUGRBOT_PAT }}
+        id: add-project