Skip to content

GitHub action to copy labels from any issues closed by a pull request into the pull request itself

License

Notifications You must be signed in to change notification settings

wd60622/closing-labels

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Sync Closing Labels

GitHub action to copy labels from any issues closed by a pull request into the pull request itself

Quick Start

name: Sync Closing Labels
on:
- pull_request_target

jobs:
  sync:
    permissions:
      contents: read
      pull-requests: write
    runs-on: ubuntu-latest
    steps:
    - name: Checkout repository
      uses: actions/checkout@v4
    - name: Sync labels with closing issues
      uses: wd60622/closing-labels@v0.0.4
      env:
        GH_TOKEN: ${{ github.token }}

Inputs

  • exclude: A comma separated list of labels to exclude from the closing labels. Default: ""
    • Example: exclude: "wontfix,good first issue" will not add wontfix and good first issue labels to the pull request from the closing issues.
  • respect_unlabeled: Respect the unlabeled event. Default: true. Set to false will relabel the pull request with the all closing labels.

Add various configuration in the with section of the action:

with:
  exclude: "wontfix,good first issue"
  respect_unlabeled: false

About

GitHub action to copy labels from any issues closed by a pull request into the pull request itself

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •