-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
github event 를 이용해 issue close 시 WORKING label 제거 #44
Comments
Action Remove Labels 이 github marketplace 에 등록되어있으니, 테스트 rpository를 만들어 실험해보자. |
name: label test
on:
issues:
types: [closed]
jobs:
remove_label:
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@v1
with:
github_token: ${{ secrets.github_token }}
labels: documentation
number: ${{ issue.number }}
일단 test issue 를 하나 만들어 close 해보니 아무 반응 없다. action 의 result 확인해보니, 역시나 |
googling 을 통해 |
bf2d6a4 에 workflow 추가 |
github action 에서 사용할 수 있는 function과 label 의 사용 예를 이용해 조건(condition)화 할 필요가 있을 것. |
da7869d 에 수정 반영.
# https://github.com/alkee-allm/k2proto/issues/44
name: WORKING issue label remover
on:
issues:
types: [closed]
jobs:
remove_label: # https://github.com/marketplace/actions/actions-ecosystem-remove-labels
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-remove-labels@v1
if: ${{ contains(github.event.issue.labels.*.name, 'WORKING') }}
with:
github_token: ${{ secrets.github_token }}
labels: WORKING
number: ${{ github.context.issue.number }} |
working label을 이용해 해당 issue 가 진행중임을 표시하고, issue 가 close 될 때 workflow events를 통해 자동으로 이 label 이 제거되도록.
참고 : Github Action 사용법 정리
The text was updated successfully, but these errors were encountered: