Skip to content

Support Release edition API - #1522

Merged
nejch merged 5 commits into
python-gitlab:masterfrom
PPaques:1521-releases-edit
Jun 26, 2021
Merged

Support Release edition API#1522
nejch merged 5 commits into
python-gitlab:masterfrom
PPaques:1521-releases-edit

Conversation

@PPaques

@PPaques PPaques commented Jun 15, 2021

Copy link
Copy Markdown
Contributor

Following #1521:

  • Removal of the documentation for deprecated API
  • Support the PUT function of the release API
  • Add documentation
  • unit-test + integration test (well, I've tried)

Closes #1521

@codecov-commenter

codecov-commenter commented Jun 15, 2021

Copy link
Copy Markdown

Codecov Report

Merging #1522 (13bf61d) into master (2c86003) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1522   +/-   ##
=======================================
  Coverage   91.13%   91.13%           
=======================================
  Files          74       74           
  Lines        4162     4163    +1     
=======================================
+ Hits         3793     3794    +1     
  Misses        369      369           
Flag Coverage Δ
cli_func_v4 80.73% <100.00%> (+<0.01%) ⬆️
py_func_v4 80.03% <100.00%> (+<0.01%) ⬆️
unit 82.29% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
gitlab/v4/objects/releases.py 100.00% <100.00%> (ø)

@nejch

nejch commented Jun 16, 2021

Copy link
Copy Markdown
Member

Thanks a lot @PPaques, could you please run tox -e black to format the code, and change your commit messages to use test type instead of tests :) a quick git rebase -i <base SHA> should do!

@PPaques

PPaques commented Jun 16, 2021

Copy link
Copy Markdown
Contributor Author

Done :)

I had to do a git commit -n for unit-test and integration parts.

The pre-commit hook mypymypy was complaining a lot about tests/functional/api/test_releases.py:*: error: Function is missing a type annotation

@PPaques
PPaques force-pushed the 1521-releases-edit branch 2 times, most recently from dd5b5c6 to d465eaa Compare June 16, 2021 08:03
@PPaques

PPaques commented Jun 16, 2021

Copy link
Copy Markdown
Contributor Author

The push was just for commit emails and GPG.
I used my work address and GPG which was not linked to GitHub (make it complaining that it wasn't possible to link commits with my account)

@nejch nejch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks again @PPaques! Just a small note on the functional tests, if you could take a look. Sorry for the delay.

Comment thread tests/functional/api/test_releases.py Outdated
@PPaques
PPaques marked this pull request as draft June 26, 2021 07:31
@PPaques
PPaques force-pushed the 1521-releases-edit branch from d465eaa to 2ec4a05 Compare June 26, 2021 19:06
@PPaques
PPaques force-pushed the 1521-releases-edit branch from 2ec4a05 to 13bf61d Compare June 26, 2021 19:16
@PPaques
PPaques marked this pull request as ready for review June 26, 2021 19:16
@nejch
nejch merged commit 33d3428 into python-gitlab:master Jun 26, 2021
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.

Deprecate tag.set_release_description and remove it from docs

3 participants