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

3.5 AppVeyor: Handle v2 tokens #8856

Merged

Conversation

gerhardol
Copy link
Member

#8830 for 3.5

This is not a blocker, but something that should be included.

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)

✒️ I contribute this code under The Developer Certificate of Origin.

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)
@ghost ghost assigned gerhardol Feb 14, 2021
@codecov
Copy link

codecov bot commented Feb 14, 2021

Codecov Report

Merging #8856 (86b9472) into release/3.5 (3831df0) will decrease coverage by 12.91%.
The diff coverage is 33.84%.

@@               Coverage Diff                @@
##           release/3.5    #8856       +/-   ##
================================================
- Coverage        56.12%   43.20%   -12.92%     
================================================
  Files              919      900       -19     
  Lines            65522    63026     -2496     
  Branches         11997    11455      -542     
================================================
- Hits             36771    27229     -9542     
- Misses           25748    34067     +8319     
+ Partials          3003     1730     -1273     
Flag Coverage Δ
production 28.41% <31.74%> (-14.87%) ⬇️
tests 94.80% <100.00%> (+0.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@RussKie RussKie merged commit 2517ce1 into gitextensions:release/3.5 Feb 15, 2021
@RussKie RussKie added this to the 3.5 milestone Feb 15, 2021
@gerhardol gerhardol deleted the feature/appveyor-v2-tokens-3.5 branch February 15, 2021 14:25
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.

None yet

2 participants