diff --git a/.github/workflows/auto-assigner.yml b/.github/workflows/auto-assigner.yml index 7c6c608..cc28ae9 100644 --- a/.github/workflows/auto-assigner.yml +++ b/.github/workflows/auto-assigner.yml @@ -1,11 +1,15 @@ name: Auto Assign on: - pull_request: + pull_request_target: types: [opened, ready_for_review] issues: types: [opened] +permissions: + issues: write + pull-requests: write + jobs: auto-assign: runs-on: ubuntu-latest diff --git a/.github/workflows/auto-commentor.yml b/.github/workflows/auto-commentor.yml index f5415c5..266622f 100644 --- a/.github/workflows/auto-commentor.yml +++ b/.github/workflows/auto-commentor.yml @@ -1,9 +1,8 @@ name: Auto-commenter on: - pull_request: - branches: [main] - types: [closed] + pull_request_target: + types: [opened, closed] permissions: id-token: write @@ -17,14 +16,13 @@ jobs: - uses: wow-actions/auto-comment@v1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - pullRequestOpened: | 👋 @{{ author }} Thank you for raising your pull request. Please make sure you have followed our contributing guidelines. We will review it as soon as possible. - pullRequestClosed: > - 👋 @{{ author }} This PR is closed. If you think there's been a mistake, please contact with the maintainer @iamwatchdogs. + pullRequestClosed: | + 👋 @{{ author }} This PR is closed. If you think there's been a mistake, please contact the maintainer @iamwatchdogs. pullRequestMerged: | - Thank you for contributing @{{ author }}, Make sure to check your contribution on [GitHub Pages](grow-with-open-source.github.io/Notebook/ "view contributions"). + Thank you for contributing @{{ author }}. Make sure to check your contribution on [GitHub Pages](https://grow-with-open-source.github.io/Notebook/ "view contributions"). \ No newline at end of file diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml index 7b38273..167b469 100644 --- a/.github/workflows/auto-labeler.yml +++ b/.github/workflows/auto-labeler.yml @@ -1,9 +1,14 @@ name: hacktoberfest-labeler on: - pull_request: + pull_request_target: types: [opened, reopened, closed] + +permissions: + contents: read + pull-requests: write + jobs: auto-labeler: runs-on: ubuntu-latest