Skip to content
36 changes: 18 additions & 18 deletions .github/workflows/auto-delete-branch.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: delete branch

# developに向けて出されたPRだけが対象
on:
pull_request:
types: closed # プルリクをクローズしたタイミングだけで動かす
branches:
- 'develop'
- 'feature/**'

jobs:
deleteBranch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Delete branch
run: |
git push origin :${{ github.head_ref }}
#name: delete branch
#
## developに向けて出されたPRだけが対象
#on:
# pull_request:
# types: closed # プルリクをクローズしたタイミングだけで動かす
# branches:
# - 'develop'
# - 'feature/**'
#
#jobs:
# deleteBranch:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Delete branch
# run: |
# git push origin :${{ github.head_ref }}
21 changes: 21 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: label

on:
pull_request:
types: [opened,synchronize] # プルリクを作成したタイミングだけで動かす

jobs:
assign:
name: label
runs-on: ubuntu-latest
steps:
- name: label
uses: b4b4r07/action-github-comment@v1
if: github.event.pull_request.labels[0] == null
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: |
Due to the fact that we use release-drafter to automate the creation of release notes, please be sure to label your PRs.
See here for how it should be labeled.
https://github.com/ttakuya50/github-actions-example/blob/develop/README.md