diff --git a/.github/workflows/auto-delete-branch.yml b/.github/workflows/auto-delete-branch.yml index 43e18c9..cf5dd5b 100644 --- a/.github/workflows/auto-delete-branch.yml +++ b/.github/workflows/auto-delete-branch.yml @@ -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 }} \ No newline at end of file +#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 }} diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..ff57c2b --- /dev/null +++ b/.github/workflows/label.yml @@ -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