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

Commit author is web-flow? #2432

Closed
Jamesking56 opened this issue Oct 4, 2023 · 3 comments
Closed

Commit author is web-flow? #2432

Jamesking56 opened this issue Oct 4, 2023 · 3 comments

Comments

@Jamesking56
Copy link

Commit author is web-flow?

When we use this action to make a PR, even when we set author, the commit author appears to be set to web-flow? We have no idea where this comes from:

image

Steps to reproduce

Here's out workflow config:

- uses: peter-evans/create-pull-request@v5
  with:
    author: "GitHub <[email protected]>"
    branch: update-symfony
    commit-message: Update Symfony
    delete-branch: true
    body: |
      Created automatically by `.github/workflows/update-symfony.yml`

      This PR will be automatically updated daily if there are more changes.

      > **Warning**
      > Closing this PR without merging in the changes will cause it to regenerate tomorrow
    # Required due to GitHub's restriction of stopping GitHub Actions workflows triggering other workflows
    # https://github.com/orgs/community/discussions/25702
    token: ${{ secrets.XXXX }}
    title: Update Symfony
@peter-evans
Copy link
Owner

Hi @Jamesking56

It's the user account web-flow, that you created the PAT token on. Pull requests are created by the user account associated with the token you use.

The author and committer inputs are for the git commit, which is completely separate from the user who creates the PR.

@Jamesking56
Copy link
Author

This would make sense apart from one thing, web-flow isn't our user?

@peter-evans
Copy link
Owner

Sorry I mistaken. After the looking at the screenshot again I can see its the commit UI on GitHub, so it does seems to be suggesting that web-flow is set as the git committer. However, the committer has a default, so I'm not really sure how that occurred.

If can't really tell without more information. A link to the workflow run or the workflow log would be useful.

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

No branches or pull requests

2 participants