thollander / actions-comment-pull-request

GitHub action to comment pull request
MIT License
329 stars 89 forks source link

Changing icon and commenter name? #359

Open larseggert opened 8 months ago

larseggert commented 8 months ago
Screenshot 2024-03-12 at 16 58 40

Is there any way to change the commenter name, icon and/or URL that name and icon link to?

alexVera99 commented 1 month ago

AFAIK, that's related witht the github token provided. In the documentation, they say it uses ${{ github.token }} which I understand uses the github-actions user.

To change the icon an user name then you need to create a GH user, put the icon and user name you want. Create a token for that user and use it to run the action using the parameter github-token:

- name: Write a comment that will be deleted at the end of the job
  uses: thollander/actions-comment-pull-request@v3
  with:
    message: |
      The PR is being built...
    github-token: ${{ secrets.YOUR_USER_TOKEN }}