Skip to content

Commit

Permalink
Merge branch 'main' into add-label-filters
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvankodev authored Sep 12, 2023
2 parents aa12253 + f36c2bd commit 69e2634
Show file tree
Hide file tree
Showing 7 changed files with 2,985 additions and 1,032 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# copy-issue-labels github action

Motivation for creating this action was to copy labels from linked issues to the issue / PR which triggered workflow.
Motivation for creating this action was to copy labels from linked issues to the issue / PR which triggered the workflow.

## Example workflow

This workflow will copy labels from the linked issue for the opened PR.
This workflow will copy labels from any linked issue for the opened PR.

Github issues can link other issues and this linking is done automatically whenever PR mentions one of the keywords for automated workflows. [See documentation](https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)

Expand Down Expand Up @@ -35,8 +35,6 @@ There is also support for different workflows to trigger sync of the labels with
issue-number: ${{ github.event.inputs.issue }}
```

Because GitHub API doesn't provide information about linked issues this workflow will parse the information from the `body` of the issue.

## Custom keywords

You can provide custom keywords which will be picked up by the parser.
Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ inputs:
required: false
labels-to-exclude:
description: 'List of labels that should be excluded when copying'
issue-number:
description: 'Get linked issues from Pull Request number'
required: false
runs:
using: 'node16'
Expand Down
Loading

0 comments on commit 69e2634

Please sign in to comment.