diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 028f5b7..0000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Labeler - -on: - - pull_request_target - -jobs: - triage: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - sync-labels: true diff --git a/.github/workflows/star.yml b/.github/workflows/pr.yml similarity index 50% rename from .github/workflows/star.yml rename to .github/workflows/pr.yml index e9bf5b9..adef93a 100644 --- a/.github/workflows/star.yml +++ b/.github/workflows/pr.yml @@ -1,13 +1,22 @@ -name: Star +name: PR on: - pull_request_target: - types: [opened, synchronize, reopened, ready_for_review, review_requested] - branches: [main] + - pull_request_target jobs: - check-user-star: - name: Check + label: + name: Label + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true + check-star: + name: Check Star runs-on: ubuntu-latest steps: - { uses: gacts/is-stargazer@v1, with: { username: "${{ github.event.pull_request.user.login }}" }, id: check-star }