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
AppVeyor: Handle v2 tokens #8830
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8830 +/- ##
==========================================
+ Coverage 56.11% 56.16% +0.05%
==========================================
Files 919 919
Lines 65524 65497 -27
Branches 11996 11992 -4
==========================================
+ Hits 36766 36787 +21
+ Misses 25756 25708 -48
Partials 3002 3002
Flags with carried forward coverage won't be shown. Click here to find out more. |
Plugins/BuildServerIntegration/AppVeyorIntegration/AppVeyorAdapter.cs
Outdated
Show resolved
Hide resolved
Plugins/BuildServerIntegration/AppVeyorIntegration/AppVeyorAdapter.cs
Outdated
Show resolved
Hide resolved
Plugins/BuildServerIntegration/AppVeyorIntegration/AppVeyorAdapter.cs
Outdated
Show resolved
Hide resolved
If it works - |
I cannot test with v1 tokens, but v1 tokens have the same api so it should be the same. Plan to squash and initiate a merge tomorrow. |
8ba40b6
to
3d9c20a
Compare
will squash and rebase tonight |
v2 tokens require that the account is prepended to the request.. This apparently is only required for quering repos for an account, not normal info. * Only query for project names for a configured account if no account/repo at all is specified Illegal repos will not report any builds anyway. This allows a AppVeyor username/token at the same time as multiple repos are used. For instance can gitextensions/gitextensions builds be seen at the same time as user private builds * Allow configuring of account/repo also if accountName is set * Less aggressive requery of running AppVeyor jobs * Refactor * remove static variables/functions * Handle projectId/name as account/repo consistently * Use local functions (and inline code) * Remove internal data class Project (the module global is no longer needed)
3d9c20a
to
c920876
Compare
Hello @gerhardol! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
Fixes #8828
Proposed changes
v2 tokens require that the account is prepended to the request..
This apparently is only required for quering repos for an account,
not normal info.
Only query for project names for a configured account if no
account/repo at all is specified
Illegal repos will not report any builds anyway.
This allows a AppVeyor username/token at the same time as multiple
repos are used. For instance can gitextensions/gitextensions builds
be seen at the same time as user private builds
Allow configuring of account/repo also if accountName is set
Less aggressive requery of running AppVeyor jobs
Refactor
Test methodology
Tests updated
Manual
✒️ I contribute this code under The Developer Certificate of Origin.