update workflow

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
hossainemruz 2021-11-05 02:09:14 +06:00
parent 0b08a8c8f0
commit a4e1f8e57a
2 changed files with 4 additions and 17 deletions

View file

@ -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 }}"

View file

@ -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')"