From a4e1f8e57a17e74c3900ad2eea82913faecbe765 Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Fri, 5 Nov 2021 02:09:14 +0600 Subject: [PATCH] update workflow Signed-off-by: hossainemruz --- .github/workflows/linked_issues.yaml | 15 --------------- .github/workflows/project-automation-pr.yaml | 6 ++++-- 2 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/linked_issues.yaml diff --git a/.github/workflows/linked_issues.yaml b/.github/workflows/linked_issues.yaml deleted file mode 100644 index c4b9696..0000000 --- a/.github/workflows/linked_issues.yaml +++ /dev/null @@ -1,15 +0,0 @@ -on: [pull_request] - -jobs: - linked_issues: - runs-on: ubuntu-latest - name: A job to say hello - steps: - - name: Find Linked Issues - id: links - uses: hossainemruz/linked-issues@main - with: - pr_url: ${{github.event.pull_request.html_url}} - - - name: Output linked Issue list - run: echo "${{ steps.links.outputs.issues }}" diff --git a/.github/workflows/project-automation-pr.yaml b/.github/workflows/project-automation-pr.yaml index 1724aea..3f1b916 100644 --- a/.github/workflows/project-automation-pr.yaml +++ b/.github/workflows/project-automation-pr.yaml @@ -171,6 +171,7 @@ jobs: uses: hossainemruz/linked-issues@main with: pr_url: ${{github.event.pull_request.html_url}} + format: IssueNumber - name: Output linked Issue list run: echo "${{ steps.links.outputs.issues }}" @@ -182,8 +183,9 @@ jobs: item_id="$( gh api graphql -f query=' mutation($owner:String!, $name: String!, $issue_number: Int!) { repository(owner: $owner, name: $name) { - issue(number: $issue_number) { - id + issue(number: $issue_number) { + id + } } }' -f owner="hugo-toha" -f name="toha" -f issue_number=459 --jq='.data.repository.issue.id')"