Add test_pr_yourName.rtf file #1370
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request Labeler | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] # Define the events you want to trigger the workflow | |
jobs: | |
label: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write # Ensure this is set for PR merging | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Apply labels | |
uses: actions/labeler@v5 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
configuration-path: .github/labeler.yml | |
# Optional: Automate merging if desired | |
- name: Automerge | |
uses: pascalgn/[email protected] | |
with: | |
merge-method: merge # Use your preferred merge method (merge, squash, rebase) | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |