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

Feature request: Filter by author #113

Open
SubJunk opened this issue Jan 25, 2024 · 4 comments
Open

Feature request: Filter by author #113

SubJunk opened this issue Jan 25, 2024 · 4 comments

Comments

@SubJunk
Copy link

SubJunk commented Jan 25, 2024

Hi, thank you for this Action, it's really useful for me! I'm using it to help automate Dependabot changelogs.
It would be great if I could make it only look at PRs opened by certain authors (in my case, Dependabot). Is that possible?

This is my use case, basically this Action just needs to leave a comment on Dependabot pull requests to tell it to recreate the PR: https://github.com/UniversalMediaServer/UniversalMediaServer/blob/cd219026f348853c4bcb1e971160af54c352a90a/.github/workflows/pull-request-conflict.yaml and that works along with this step https://github.com/UniversalMediaServer/UniversalMediaServer/blob/cd219026f348853c4bcb1e971160af54c352a90a/.github/workflows/ci.yaml#L258-L275 which updates the changelog in the Dependabot PRs

@eps1lon
Copy link
Owner

eps1lon commented Mar 23, 2024

Can't you do this on your own by skipping the action via if? E.g.

steps:
  - name: check if prs are dirty
    if: ${{ github.event.pull_request.user.login == 'dependabot' }
    uses: eps1lon/actions-label-merge-conflict@v3

@SubJunk
Copy link
Author

SubJunk commented Mar 24, 2024

Good idea, I'll try it and report back

@SubJunk
Copy link
Author

SubJunk commented Mar 30, 2024

This is working well, thank you!

@SubJunk SubJunk closed this as completed Mar 30, 2024
@SubJunk SubJunk reopened this Apr 22, 2024
@SubJunk
Copy link
Author

SubJunk commented Apr 22, 2024

@eps1lon I don't think it is working. It needs to match the author of the open Pull Requests that are being checked, not the one that triggers the action.

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

No branches or pull requests

2 participants