{"id":16123920,"url":"https://github.com/kentaro-m/add-an-issue-reference-action","last_synced_at":"2025-03-18T12:31:33.568Z","repository":{"id":42221290,"uuid":"168845309","full_name":"kentaro-m/add-an-issue-reference-action","owner":"kentaro-m","description":":octocat: A GitHub Action for adding a related issue reference to a pull request.","archived":false,"fork":false,"pushed_at":"2022-04-10T01:38:14.000Z","size":880,"stargazers_count":19,"open_issues_count":11,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T15:07:12.331Z","etag":null,"topics":["actions","github","github-actions","my-portfolio"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kentaro-m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"kentaro-m"}},"created_at":"2019-02-02T15:23:32.000Z","updated_at":"2025-03-01T23:07:59.000Z","dependencies_parsed_at":"2023-01-11T17:22:10.889Z","dependency_job_id":null,"html_url":"https://github.com/kentaro-m/add-an-issue-reference-action","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"a9d34a2b7f4dfb679ba972dde07cd1be030c51af"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentaro-m%2Fadd-an-issue-reference-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentaro-m%2Fadd-an-issue-reference-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentaro-m%2Fadd-an-issue-reference-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentaro-m%2Fadd-an-issue-reference-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentaro-m","download_url":"https://codeload.github.com/kentaro-m/add-an-issue-reference-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926063,"owners_count":20369911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github","github-actions","my-portfolio"],"created_at":"2024-10-09T21:19:08.427Z","updated_at":"2025-03-18T12:31:33.179Z","avatar_url":"https://github.com/kentaro-m.png","language":"TypeScript","funding_links":["https://github.com/sponsors/kentaro-m"],"categories":[],"sub_categories":[],"readme":"# Add an issue reference\nA GitHub Action for adding a related issue reference to a pull request.\n\n## :arrow_forward: Usage\nA workflow adds a comment contained a link for a related issue based on the branch name to a pull request when a pull request is opened.\n\n![Adds a comment contained a link for a related issue](usage.png)\n\n### Create a workflow\n\nAdd `.github/workflows/issue-reference.yml` with the following:\n\n```yml\nname: 'Issue Reference'\non: \n  pull_request:\n    types: [opened]\n\njobs:\n  issue-reference:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: kentaro-m/add-an-issue-reference-action@v2.0.0\n        with:\n          repo-token: \"${{ secrets.GITHUB_TOKEN }}\"\n          branch-prefix: \"TICKET-\"\n```\n\n### Set up required parameters\nNeed to contain the required parameters on the workflow file.\n\n- `repo-token` A token for the repository. Can be passed in using `{{ secrets.GITHUB_TOKEN }}`\n- `branch-prefix` A prefix of the branch name for finding a related issue (e.g `TICKET-`).\n\n### Add a comment contained a link for a related issue \nCreate a branch based on the pattern of the branch name (`[branch prefix][issue number]`) set up on `.github/workflows/issue-reference.yml`.\n\nFor example, if `branch-prefix` is `TICKET-`, create a branch like `TICKET-8`.\n\nWhen pushing your changes to the repository and creating a pull request, a workflow runs automatically.\n\n## :memo: Licence\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentaro-m%2Fadd-an-issue-reference-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentaro-m%2Fadd-an-issue-reference-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentaro-m%2Fadd-an-issue-reference-action/lists"}