Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Update PR number logic #103

Merged
merged 5 commits into from
Jul 30, 2022
Merged

Update PR number logic #103

merged 5 commits into from
Jul 30, 2022

Conversation

Pandapip1
Copy link
Member

@Pandapip1 Pandapip1 commented Jul 24, 2022

@Pandapip1
Copy link
Member Author

@MicahZoltu I require your approval. Please merge this.

@MicahZoltu
Copy link
Contributor

Can you help me understand why this is necessary? How do we end up in a situation where context.payload?.pull_request?.number doesn't exist but PR_NUMBER environment variable does?

@Pandapip1
Copy link
Member Author

Pandapip1 commented Jul 26, 2022

How do we end up in a situation where context.payload?.pull_request?.number doesn't exist but PR_NUMBER environment variable does?

When the workflow is run manually.

@MicahZoltu
Copy link
Contributor

Hmm, do we have an example of this failing? Even for manual re-runs, I would expect the PR number to be available for any pull_request targeted workflow.

@Pandapip1
Copy link
Member Author

Hmm, do we have an example of this failing? Even for manual re-runs, I would expect the PR number to be available for any pull_request targeted workflow.

Let me be a bit more specific: this is for when we aren't targeting this with pull_request. Currently, this is unnecessary. It is preventing me from making some changes, however.

@MicahZoltu
Copy link
Contributor

Ah, I see. The idea is to trigger a workflow run, but in order to do that we need to parameterize the inputs since that workflow won't be run in the context of a PR?

@MicahZoltu MicahZoltu merged commit 546ada0 into ethereum:master Jul 30, 2022
@Pandapip1 Pandapip1 deleted the patch-4 branch July 30, 2022 11:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants