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: codepath alerts #3645

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

GitHub: codepath alerts #3645

wants to merge 5 commits into from

Conversation

bretg
Copy link
Collaborator

@bretg bretg commented Dec 19, 2024

🔧 Type of changes

  • github workflow

✨ What's the context?

Allow adapters and module owners to register for alerts when a PR is opened against their code. See prebid/prebid-server#4075

I tested this over in the sourcecred repo and have set up the config file just for Index Exchange at this point. Working on Prebid documentation for it.

@Net-burst Net-burst changed the title codepath alerts GitHub: codepath alerts Dec 20, 2024
@osulzhenko osulzhenko requested review from And1sS and CTMBNara and removed request for And1sS and CTMBNara December 20, 2024 14:42
const refreshToken = process.env.OAUTH2_REFRESH_TOKEN;

// validate params
if (!repo || !prNumber || !token || !clientId || !clientSecret | !refreshToken) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a specific reason for using a bitwise OR operator (|) for refreshToken? It seems like a logical OR (||) might be more appropriate for this comparison, as we're checking the presence of multiple variables.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch!

@bretg bretg requested a review from osulzhenko January 2, 2025 14:48
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

Successfully merging this pull request may close these issues.

2 participants