This action scans all changed files of a pull request and labels the PR based on the file endings. e.g. if a JavaScript file got changed it will add the label "javascript".
Required The owner of the repository. e.g. ${{ github.repository_owner }}
.
Required The name of the repository. e.g. ${{ github.event.repository.name }}
.
Required The ID of the Pull Request. e.g. ${{ github.event.number }}
.
Required Access token with the permissions to label a pull request. e.g. ${{ secrets.PAT_TOKEN }}
.
It will add the related labels to the pull request, which is depending on the changed files of the pull request.
It add a comment to the pull request with a summary of changes made in the pull request. e.g.
Pull Request #1 has been updated with:
- 1 changes
- 1 additions
- 0 deletions
- name: Annotate PR
uses: tau-github-actions-for-testing/tau-own-action-pull-request@main
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
pr_number: ${{ github.event.number }}
token: ${{ secrets.PAT_TOKEN }}