Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the Author of the Auto-comment #16

Open
mosherc opened this issue Oct 5, 2021 · 2 comments
Open

Change the Author of the Auto-comment #16

mosherc opened this issue Oct 5, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@mosherc
Copy link

mosherc commented Oct 5, 2021

It would be nice to change the author of the auto-comment. Was expecting it to be from "GitHub Actions" or some generic account, but it appeared to come from the repo owner from our organization.

Expected Behavior

I should be able to set some generic or default author for auto-comments.

Possible Solution

Not sure!

Additional Context

We use this to auto-comment our netlify build links, since we know the format of them and the PR number from the GitHub action. We use this so we don't have to wait for the build link from Netlify, and it's easy to copy. It would be nice if a generic account (or if we could brand it as netlify) could appear to be the one commenting instead of the repo owner against their knowledge.

Apologies if there is already a way to do this, but I didn't see anything in the docs or source code!

@mosherc mosherc added the enhancement New feature or request label Oct 5, 2021
@github-actions
Copy link

github-actions bot commented Oct 5, 2021

👋 @mosherc
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.

@firasm
Copy link

firasm commented Jun 28, 2022

I was frustrated about this too but it turns out there's an easy solution, which is to use ${{ secrets.GITHUB_TOKEN }} as the GITHUB_TOKEN

sample workflow:

  name: Hello!
  runs-on: ubuntu-latest
  steps:
    - uses: wow-actions/auto-comment@v1
      with:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        pullRequestOpened: |
                    👋 @{{ author }}
                    Thank you for creating a pull request!
                    Please make sure you have followed our contributing guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants