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

Change credential check to use rate limit #764

Merged
merged 2 commits into from
Mar 31, 2020

Conversation

bitwiseman
Copy link
Member

@bitwiseman bitwiseman commented Mar 31, 2020

Description

Change credential check to use rate limit instead of current user (GitHub Apps don't have a current user).

Based on https://github.com/jenkinsci/github-branch-source-plugin/pull/269/files#diff-61948c4cd4e480f18c6e572cf88a055bR522

Fixes #582

@timja @PauloMigAlmeida - Does this look right to you?

Before submitting a PR:

We love getting PRs, but we hate asking people for the same basic changes every time.

  • Push your changes to a branch other than master. Create your PR from that branch.
  • Add JavaDocs and other comments
  • Write tests that run and pass in CI. See CONTRIBUTING.md for details on how to capture snapshot data.
  • Run mvn -D enable-ci clean install site locally. This may reformat your code, commit those changes. If this command doesn't succeed, your change will not pass CI.

@bitwiseman bitwiseman marked this pull request as ready for review March 31, 2020 16:45
@bitwiseman bitwiseman merged commit 5fe2817 into hub4j:master Mar 31, 2020
@bitwiseman bitwiseman deleted the issue/valid_creds branch March 31, 2020 19:37
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.

GitHub app: isCredentialValid doesn't work
2 participants