This github action find the Issues linked in a Pull Request.

Linked Issue (Github Action)

This action find the Issues linked in a Pull Request. It parses the HTML of the PR page to find the linked issues.

Inputs

The action has the following inputs:

Name Description Type Possible Values Default Values
pr_url URL of the Pull Request Required Any valid PR URL ""
tag HTML tag that contains the linked Issue URL Optional Any HTML Tag form
attr_key Attribute key that will be used to select the desired HTML tag Optional Any valid HTML tag attribute aria-label
attr_val Attribute value that will be used to select the desired HTML tag Optional Any text Link issues
format Output format for the linked Issues Optional IssueNumber,IssueURL,ExternalIssueRef IssueNumber

Outputs

The action has the following output:

Name Description
issues List of issues separated by space and formatted according to format input

For example, if your PR has the following issue linked:

The output of this action will be the following for different formats:

IssueNumber: 1 2 3

IssueURL:

https://github.com/foo/bar/issues/1 https://github.com/foo/bar/issues/2 https://github.com/foo/bar/issues/3

ExternalIssueRef:

foo/bar#1 foo/bar#2 foo/bar#3

Example usage

Here, is a sample workflow YAML showing how to use this action.

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}}
          format: IssueNumber

      - name: Output linked Issue list
        run: echo "${{ steps.links.outputs.issues }}"

A more practical use of this action can be found in this workflow.

Owner
Go Actions
Github Actions built with Go
Go Actions
Similar Resources

GitHub Action: Compose multiple (conditional) checks into a single check based on file paths in a pull request

GitHub Action: Compose multiple (conditional) checks into a single check based on file paths in a pull request

GitHub Action: Composite Example Usage --- name: All Checks on: pull_request: branches: - main jobs: meta: runs-on: - ubuntu-20.

Dec 29, 2022

gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code

gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code

gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code

Jan 24, 2022

Go-generics-simple-doubly-linked-list - A simple doubly linked list implemented using generics (Golang)

Welcome to Go-Generics-Simple-Doubly-Linked-List! Hi, This repository contains a

Jun 30, 2022

A tool to sent comments to Issues or Pull Requests in Github from CI tools.

CommentCI A tool to sent comments to Issues or Pull Requests in Github from CI tools. Usage Required environment variables: GITHUB_COMMENT_USER - User

Apr 10, 2022

A command line utility for labeling GitHub issues and pull requests

A command line utility for labeling GitHub issues and pull requests

Jan 8, 2023

A Github Action to auto approve pull requests that contain only document reviews.

Approve documentation review A Github Action to auto approve pull requests that contain only document reviews. The Cloud Platform team have a document

Dec 23, 2021

A demo repo to show KICS Github Action in Action

🤖 KICS GitHub Actions Demo This repository shows how KICS GitHub Action can be set and was fully inspired by the documentation on KICS GitHub Actions

Nov 23, 2021

:octocat: ghdag is a tiny workflow engine for GitHub issue and pull request.

ghdag ghdag is a tiny workflow engine for GitHub issue and pull request. Key features of ghdag are: Simple definition of workflows to improve the life

Nov 5, 2022

A command-line to create a pull request to review the entire content of a Github repository.

Pull Request Me Pull Request Me (PRMe) creates a pull request for the entire content of a Github repository. This is useful to solicit review comments

Nov 2, 2021

A GitHub CLI extension that provides summary pull request metrics.

gh-metrics A gh extension that provides summary pull request metrics. Usage Metric definitions Influences Usage To install the extension use: $ gh ext

Dec 29, 2022

ghcv-cli makes it easy to view the user-created issues, pull requests, and repositories in the terminal.

ghcv-cli makes it easy to view the user-created issues, pull requests, and repositories in the terminal.

ghcv-cli ghcv-cli makes it easy to view the user-created issues, pull requests, and repositories in the terminal. About Show a list of pull requests c

Mar 13, 2022

Open source Observability Platform. 👉 SigNoz helps developers find issues in their deployed applications & solve them quickly

Open source Observability Platform. 👉 SigNoz helps developers find issues in their deployed applications & solve them quickly

SigNoz SigNoz is an opensource observability platform. SigNoz uses distributed tracing to gain visibility into your systems and powers data using Kafk

Jan 4, 2023

Impersonate Your GitHub App In A GitHub Action

Impersonate Your GitHub App In A GitHub Action This action helps you retrieve an authenticated app token with a GitHub app id and a app private key. Y

Nov 29, 2021

Github-workflow-dashboard - WEB and CLI dashboard for github action workflows

Github-workflow-dashboard - WEB and CLI dashboard for github action workflows

CLI capable of retrieving github action workflows stats Example usage Dashboard

Aug 30, 2022

pr-bullet is a tool for copying pull request to multiple repositories.

pr-bullet pr-bullet is a tool for copying pull request to multiple repositories. Usage First, create original pull request ( ex. https://github.com/k1

Oct 5, 2022

A self-hosted golang application that listens for Terraform pull request events via webhooks.

A self-hosted golang application that listens for Terraform pull request events via webhooks.

Atlantis Terraform Pull Request Automation Resources What is Atlantis? What does it do? Why should you use it? Stargazers over time Resources How to g

Dec 9, 2021

Compost-go - Post pull request comments to multiple VCSs

Compost-go - Post pull request comments to multiple VCSs

Compost Compost is for tools that run in CI pipelines and want to post results a

Feb 15, 2022

The fastest HTTP/2 Go Web Framework. AWS Lambda, gRPC, MVC, Unique Router, Websockets, Sessions, Test suite, Dependency Injection and more. A true successor of expressjs and laravel | 谢谢 https://github.com/kataras/iris/issues/1329 |

The fastest HTTP/2 Go Web Framework. AWS Lambda, gRPC, MVC, Unique Router, Websockets, Sessions, Test suite, Dependency Injection and more. A true successor of expressjs and laravel | 谢谢 https://github.com/kataras/iris/issues/1329 |

News This is the under-development branch. Stay tuned for the upcoming release v12.2.0. Looking for a stable release? Head over to the v12.1.8 branch

Dec 28, 2022

🙌 Bulk-upload GitHub Issues

🙌 Bulk-upload GitHub Issues

🙌 Bulk-upload GitHub Issues

Jul 23, 2021
Comments
  • Failed to find the linked Issues. Reason:  no links found inside the provided tag: form

    Failed to find the linked Issues. Reason: no links found inside the provided tag: form

    I am trying to use this on a standard PR in my repository. It always fails with the following error, regardless of the presence of an issue link or not. The link is added to an issue in the same repo.

    Failed to find the linked Issues. Reason:  no links found inside the provided tag: form
    

    It seems the html structure might not match what is expected by the action script. Is there something that needs to be done to the PR itself to have it interpreted correctly?

    More verbose output

    ##[debug]Evaluating condition for step: 'Check for linked issue'
    ##[debug]Evaluating: success()
    ##[debug]Evaluating success:
    ##[debug]=> true
    ##[debug]Result: true
    ##[debug]Starting: Check for linked issue
    ##[debug]Loading inputs
    ##[debug]Evaluating: github.event.pull_request.html_url
    ##[debug]Evaluating Index:
    ##[debug]..Evaluating Index:
    ##[debug]....Evaluating Index:
    ##[debug]......Evaluating github:
    ##[debug]......=> Object
    ##[debug]......Evaluating String:
    ##[debug]......=> 'event'
    ##[debug]....=> Object
    ##[debug]....Evaluating String:
    ##[debug]....=> 'pull_request'
    ##[debug]..=> Object
    ##[debug]..Evaluating String:
    ##[debug]..=> 'html_url'
    ##[debug]=> 'https://github.com/usdot-fhwa-stol/carma-platform/pull/1808'
    ##[debug]Result: 'https://github.com/usdot-fhwa-stol/carma-platform/pull/1808'
    ##[debug]Loading env
    Run hossainemruz/linked-issues@main
    ##[debug]Evaluating: format('--pr-url={0}', inputs.pr_url)
    ##[debug]Evaluating format:
    ##[debug]..Evaluating String:
    ##[debug]..=> '--pr-url={0}'
    ##[debug]..Evaluating Index:
    ##[debug]....Evaluating inputs:
    ##[debug]....=> Object
    ##[debug]....Evaluating String:
    ##[debug]....=> 'pr_url'
    ##[debug]..=> 'https://github.com/usdot-fhwa-stol/carma-platform/pull/1808'
    ##[debug]=> '--pr-url=https://github.com/usdot-fhwa-stol/carma-platform/pull/1808'
    ##[debug]Result: '--pr-url=https://github.com/usdot-fhwa-stol/carma-platform/pull/1808'
    ##[debug]Evaluating: format('--tag={0}', inputs.tag)
    ##[debug]Evaluating format:
    ##[debug]..Evaluating String:
    ##[debug]..=> '--tag={0}'
    ##[debug]..Evaluating Index:
    ##[debug]....Evaluating inputs:
    ##[debug]....=> Object
    ##[debug]....Evaluating String:
    ##[debug]....=> 'tag'
    ##[debug]..=> 'form'
    ##[debug]=> '--tag=form'
    ##[debug]Result: '--tag=form'
    ##[debug]Evaluating: format('--attr-key={0}', inputs.attr_key)
    ##[debug]Evaluating format:
    ##[debug]..Evaluating String:
    ##[debug]..=> '--attr-key={0}'
    ##[debug]..Evaluating Index:
    ##[debug]....Evaluating inputs:
    ##[debug]....=> Object
    ##[debug]....Evaluating String:
    ##[debug]....=> 'attr_key'
    ##[debug]..=> 'aria-label'
    ##[debug]=> '--attr-key=aria-label'
    ##[debug]Result: '--attr-key=aria-label'
    ##[debug]Evaluating: format('--attr-val={0}', inputs.attr_val)
    ##[debug]Evaluating format:
    ##[debug]..Evaluating String:
    ##[debug]..=> '--attr-val={0}'
    ##[debug]..Evaluating Index:
    ##[debug]....Evaluating inputs:
    ##[debug]....=> Object
    ##[debug]....Evaluating String:
    ##[debug]....=> 'attr_val'
    ##[debug]..=> 'Link issues'
    ##[debug]=> '--attr-val=Link issues'
    ##[debug]Result: '--attr-val=Link issues'
    ##[debug]Evaluating: format('--format={0}', inputs.format)
    ##[debug]Evaluating format:
    ##[debug]..Evaluating String:
    ##[debug]..=> '--format={0}'
    ##[debug]..Evaluating Index:
    ##[debug]....Evaluating inputs:
    ##[debug]....=> Object
    ##[debug]....Evaluating String:
    ##[debug]....=> 'format'
    ##[debug]..=> 'IssueNumber'
    ##[debug]=> '--format=IssueNumber'
    ##[debug]Result: '--format=IssueNumber'
    /usr/bin/docker run --name f1554cce8e76d83f648489[2](https://github.com/usdot-fhwa-stol/carma-platform/runs/6781914737?check_suite_focus=true#step:3:2)2b4af[3](https://github.com/usdot-fhwa-stol/carma-platform/runs/6781914737?check_suite_focus=true#step:3:3)c10365ee_62d17e --label 6f155[4](https://github.com/usdot-fhwa-stol/carma-platform/runs/6781914737?check_suite_focus=true#step:3:4) --workdir /github/workspace --rm -e INPUT_PR_URL -e INPUT_FORMAT -e INPUT_TAG -e INPUT_ATTR_KEY -e INPUT_ATTR_VAL -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_DEBUG -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/carma-platform/carma-platform":"/github/workspace" 6f1[5](https://github.com/usdot-fhwa-stol/carma-platform/runs/6781914737?check_suite_focus=true#step:3:5)54:cce8e7[6](https://github.com/usdot-fhwa-stol/carma-platform/runs/6781914737?check_suite_focus=true#step:3:6)d[8](https://github.com/usdot-fhwa-stol/carma-platform/runs/6781914737?check_suite_focus=true#step:3:8)3f64848[9](https://github.com/usdot-fhwa-stol/carma-platform/runs/6781914737?check_suite_focus=true#step:3:9)22b4af3c[10](https://github.com/usdot-fhwa-stol/carma-platform/runs/6781914737?check_suite_focus=true#step:3:10)365ee  "--pr-url=https://github.com/usdot-fhwa-stol/carma-platform/pull/[18](https://github.com/usdot-fhwa-stol/carma-platform/runs/6781914737?check_suite_focus=true#step:3:18)08" "--tag=form" "--attr-key=aria-label" "--attr-val=Link issues" "--format=IssueNumber"
    Failed to find the linked Issues. Reason:  no links found inside the provided tag: form
    ##[debug]Docker Action run completed with exit code 1
    ##[debug]Finishing: Check for linked issue
    
Related tags
A Github Action that verify if your README.md has broken links

A GitHub Action that automatically check if some link in your README.md is broken or not responding.

Nov 10, 2022
Find trending repositories on GitHub
Find trending repositories on GitHub

octotrends.com A niftly little tool I wrote to try and find repos and languages that are rapidly growing on GitHub. Growth rates are based on % growth

Jun 14, 2022
A tool to monitor git repositories and automatically pull & push changes

git-o-matic A tool to monitor git repositories and automatically pull & push changes Installation Packages & Binaries Arch Linux: gitomatic Binaries f

Dec 20, 2022
A command-line tool that makes git easier to use with GitHub.

hub is a command line tool that wraps git in order to extend it with extra features and commands that make working with GitHub easier. For an official

Jan 1, 2023
:octocat: lazyhub - Terminal UI Client for GitHub using gocui.
:octocat: lazyhub - Terminal UI Client for GitHub using gocui.

lazyhub lazyhub - Terminal UI Client for GitHub using gocui. Demo Features ?? Check the trending repositories on GitHub today ?? Search repositories ?

Dec 14, 2022
Write Github actions in Go

goaction Package goaction enables writing Github Actions in Go. The idea is: write a standard Go script, one that works with go run, and use it as Git

Dec 20, 2022
A simple tool to help apply changes across many GitHub repositories simultaneously
A simple tool to help apply changes across many GitHub repositories simultaneously

A simple tool to help apply changes across many GitHub repositories simultaneously

Dec 22, 2022
Find the issues linked with a Pull Request

linked-issues docker action This action prints "Hello World" or "Hello" + the name of a person to greet to the log. Inputs who-to-greet Required The n

Jun 30, 2022
github-actions-merger is github actions that merges pull request with commit message including pull request labels.

github-actions-merger github-actions-merger is github actions that merges pull request with commit message including pull request labels. Usage Write

Dec 7, 2022
An action that comments PipeCD's PlanPreview result on GitHub pull request.
An action that comments PipeCD's PlanPreview result on GitHub pull request.

actions-plan-preview An action that comments PipeCD's PlanPreview result on GitHub pull request. This action can be used for all application kinds: Ku

Apr 6, 2022