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

github-action: support PR author implicitely #2600

Merged
merged 2 commits into from
May 6, 2024
Merged

Conversation

v1v
Copy link
Member

@v1v v1v commented May 6, 2024

What does this PR do?

Remove support for user.
Fetch author of the PR

Why is it important?

Forked PRs are okey but PRs from the upstream won't work since the author is elastic. Let's use the PR author instead and fetch it using the existing GitHub action.

@v1v v1v requested a review from a team as a code owner May 6, 2024 12:23
@mergify mergify bot assigned v1v May 6, 2024
@v1v v1v added the enhancement New feature or request label May 6, 2024
@@ -8,24 +8,22 @@ inputs:
repository:
description: 'The GitHub repository'
default: ${{ github.repository }}
user:
description: 'The GitHub PR onwer'
default: ${{ github.event.pull_request.head.repo.owner.login }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This context didn't work well for PRs in the upstream

reakaleek
reakaleek previously approved these changes May 6, 2024
Co-authored-by: Jan Calanog <nejcalanog@gmail.com>
@v1v v1v enabled auto-merge (squash) May 6, 2024 13:37
@v1v v1v requested a review from reakaleek May 6, 2024 13:39
@v1v v1v merged commit 7e38b6f into elastic:main May 6, 2024
13 checks passed
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

Successfully merging this pull request may close these issues.

3 participants