Skip to content

Commit

Permalink
Release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvankodev committed Dec 9, 2020
1 parent 199f15a commit 6b6dad2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/copy-labels.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
on: [pull_request]

jobs:
hello_world_job:
copy-labels:
runs-on: ubuntu-latest
name: Copy labels from linked issues
steps:
- name: copy-labels
uses: michalvankodev/copy-issue-labels@v0.2.12
uses: michalvankodev/copy-issue-labels@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,28 @@ This workflow will copy labels from the linked issue for the opened PR.
Github issues can link other issues and this linkin 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)

```yml


on:
pull_request:
types: [opened]

jobs:
copy-labels:
runs-on: ubuntu-latest
name: Copy labels from linked issues
steps:
- name: copy-labels
uses: michalvankodev/copy-issue-labels@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
```
There is also support for different workflows to trigger sync of the labels with `issue-number` parameter

```yml
steps:
- name: copy-labels
uses: michalvankodev/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.inputs.issue }}
```

0 comments on commit 6b6dad2

Please sign in to comment.