All Projects → kentaro-m → add-an-issue-reference-action

kentaro-m / add-an-issue-reference-action

Licence: MIT license
A GitHub Action for adding a related issue reference to a pull request.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to add-an-issue-reference-action

branch-names
Github action to retrieve branch or tag names with support for all events.
Stars: ✭ 99 (+421.05%)
Mutual labels:  actions, github-actions
scan-action
Anchore container analysis and scan provided as a GitHub Action
Stars: ✭ 140 (+636.84%)
Mutual labels:  actions, github-actions
changed-files
Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
Stars: ✭ 733 (+3757.89%)
Mutual labels:  actions, github-actions
python-actions-alpha-archived
Please note that this was for the *alpha* version of GitHub Actions for Python.
Stars: ✭ 15 (-21.05%)
Mutual labels:  actions, github-actions
k8s-create-secret
GitHub Action to create Kubernetes cluster secrets
Stars: ✭ 24 (+26.32%)
Mutual labels:  actions, github-actions
actions
A set of GitHub actions for Infracost. See cloud cost estimates for Terraform in pull requests. 💰📉 Love your cloud bill!
Stars: ✭ 147 (+673.68%)
Mutual labels:  actions, github-actions
csharp-docs-generator
An action that generates html documentation for C# programs to use for GitHub pages.
Stars: ✭ 21 (+10.53%)
Mutual labels:  actions, github-actions
actions
Set of actions for implementing CI/CD with werf and GitHub Actions
Stars: ✭ 67 (+252.63%)
Mutual labels:  actions, github-actions
action-netlify-deploy
🙌 Netlify deployments via GitHub actions
Stars: ✭ 32 (+68.42%)
Mutual labels:  actions, github-actions
dart-package-publisher
Action to Publish Dart / Flutter Package To https://pub.dev When you need to publish a package, just bump the version in pubspec.yaml
Stars: ✭ 45 (+136.84%)
Mutual labels:  actions, github-actions
clojure-dependency-update-action
A simple GitHub Actions job to create Pull Requests for outdated dependencies in clojure projects
Stars: ✭ 37 (+94.74%)
Mutual labels:  actions, github-actions
Real Time Social Media Mining
DevOps pipeline for Real Time Social/Web Mining
Stars: ✭ 22 (+15.79%)
Mutual labels:  actions, github-actions
chrome-addon
☁ GitHub action to upload addon to Chrome
Stars: ✭ 53 (+178.95%)
Mutual labels:  actions, github-actions
public-ip
Queries GitHub actions runner's public IP address
Stars: ✭ 64 (+236.84%)
Mutual labels:  actions, github-actions
action.playbook
Github Action for running Ansible Playbooks.
Stars: ✭ 26 (+36.84%)
Mutual labels:  actions, github-actions
gh-action-get-changed-files
GitHub Action that saves changed files as JSON for use by other actions.
Stars: ✭ 82 (+331.58%)
Mutual labels:  actions, github-actions
netlify-build-github-actions
An example of triggering a Netlify build using Github Actions Scheduled Events
Stars: ✭ 31 (+63.16%)
Mutual labels:  actions, github-actions
actions-deploy-gist
📌 Deploy file to Github Gist
Stars: ✭ 26 (+36.84%)
Mutual labels:  actions, github-actions
deploy-cloudrun
This action deploys your container image to Cloud Run.
Stars: ✭ 238 (+1152.63%)
Mutual labels:  actions, github-actions
setup-jdk
(DEPRECATED) Set up your GitHub Actions workflow with a specific version of AdoptOpenJDK
Stars: ✭ 32 (+68.42%)
Mutual labels:  actions, github-actions

Add an issue reference

A GitHub Action for adding a related issue reference to a pull request.

▶️ Usage

A 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.

Adds a comment contained a link for a related issue

Create a workflow

Add .github/workflows/issue-reference.yml with the following:

name: 'Issue Reference'
on: 
  pull_request:
    types: [opened]

jobs:
  issue-reference:
    runs-on: ubuntu-latest
    steps:
      - uses: kentaro-m/[email protected]
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"
          branch-prefix: "TICKET-"

Set up required parameters

Need to contain the required parameters on the workflow file.

  • repo-token A token for the repository. Can be passed in using {{ secrets.GITHUB_TOKEN }}
  • branch-prefix A prefix of the branch name for finding a related issue (e.g TICKET-).

Add a comment contained a link for a related issue

Create a branch based on the pattern of the branch name ([branch prefix][issue number]) set up on .github/workflows/issue-reference.yml.

For example, if branch-prefix is TICKET-, create a branch like TICKET-8.

When pushing your changes to the repository and creating a pull request, a workflow runs automatically.

📝 Licence

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].