From 1f5707d3b31c4003599c2025df6606f718ce2704 Mon Sep 17 00:00:00 2001 From: Alec Edgington <54802828+cqc-alec@users.noreply.github.com> Date: Mon, 3 Jun 2024 12:24:49 +0100 Subject: [PATCH] Add new issues to project, not Jira (#115) --- .github/workflows/issue-to-project.yml | 16 +++++++++++++ .github/workflows/issue.yml | 33 -------------------------- 2 files changed, 16 insertions(+), 33 deletions(-) create mode 100644 .github/workflows/issue-to-project.yml delete mode 100644 .github/workflows/issue.yml diff --git a/.github/workflows/issue-to-project.yml b/.github/workflows/issue-to-project.yml new file mode 100644 index 0000000..f55a9f0 --- /dev/null +++ b/.github/workflows/issue-to-project.yml @@ -0,0 +1,16 @@ +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/19 + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml deleted file mode 100644 index 4798a2e..0000000 --- a/.github/workflows/issue.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: New issue - -on: - issues: - types: [opened] - -jobs: - jira_task: - name: Create Jira issue - runs-on: ubuntu-22.04 - steps: - - name: Login - uses: atlassian/gajira-login@v3.0.1 - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - - name: Create Bug - uses: atlassian/gajira-create@v3.0.1 - if: contains(github.event.issue.labels.*.name, 'bug') - with: - project: TKET - issuetype: Bug - summary: « [pytket-iqm] ${{ github.event.issue.title }}» - description: ${{ github.event.issue.html_url }} - - name: Create Task - uses: atlassian/gajira-create@v3.0.1 - if: "! contains(github.event.issue.labels.*.name, 'bug')" - with: - project: TKET - issuetype: Task - summary: « [pytket-iqm] ${{ github.event.issue.title }}» - description: ${{ github.event.issue.html_url }}