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

Tag creation in kebechet with release option #1058

Merged
merged 3 commits into from
Jun 10, 2022

Conversation

shreekarSS
Copy link
Member

@shreekarSS shreekarSS commented Jun 7, 2022

Related Issues and Dependencies

Include tag creation in kebechet with release option [https://github.com//issues/1056]

This introduces a breaking change

  • Yes
  • No

This Pull Request implements

Creation a tag on the merge of the release pull request created by kebechet.

@sesheta sesheta added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 7, 2022
Copy link
Member

@harshad16 harshad16 left a comment

Choose a reason for hiding this comment

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

can you please address the suggestions and also fix the linting issues
thanks 💯

kebechet/managers/version/utils.py Outdated Show resolved Hide resolved
kebechet/managers/version/utils.py Outdated Show resolved Hide resolved
kebechet/managers/version/utils.py Outdated Show resolved Hide resolved
kebechet/managers/version/version.py Outdated Show resolved Hide resolved
Copy link
Member

@harshad16 harshad16 left a comment

Choose a reason for hiding this comment

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

pre-commit check is failing due to following:

fix end of files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
- files were modified by this hook

Fixing kebechet/managers/version/utils.py
Fixing kebechet/managers/version/version.py

mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

kebechet/managers/version/utils.py:223: error: Item "None" of "Optional[Match[Any]]" has no attribute "group"
Found 1 error in 1 file (checked 37 source files)

black....................................................................Failed
- hook id: black
- files were modified by this hook

reformatted kebechet/managers/version/utils.py
reformatted kebechet/managers/version/version.py

this can be viewed from details button on the failed check
please address the following

kebechet/managers/version/utils.py Outdated Show resolved Hide resolved
kebechet/managers/version/utils.py Outdated Show resolved Hide resolved
kebechet/managers/version/utils.py Outdated Show resolved Hide resolved
kebechet/managers/version/utils.py Outdated Show resolved Hide resolved
kebechet/managers/version/utils.py Outdated Show resolved Hide resolved
kebechet/managers/version/utils.py Outdated Show resolved Hide resolved
kebechet/managers/version/version.py Outdated Show resolved Hide resolved
kebechet/managers/version/version.py Outdated Show resolved Hide resolved
kebechet/managers/version/version.py Outdated Show resolved Hide resolved
kebechet/managers/version/version.py Outdated Show resolved Hide resolved
@KPostOffice
Copy link
Member

KPostOffice commented Jun 8, 2022

Hey @shreekarSS, to comply with formatting standards you can run the follwing commands:

  1. $ sudo dnf install python3-devel
  2. $ sudo dnf install pre-commit
  3. $ pre-commit run --all

To have this run on your local repo before every commit you can run $ pre-commit install

     _get_merge_commit_sha() -> to get merge commit sha
     _get_version() -> Get version from PR branch
     _is_release_version_pr -> Check if PR is open khebhut bot and  is release PR or not

Signed-off-by: Shreekar <sshreeka@redhat.com>
@shreekarSS shreekarSS force-pushed the tag_creation_kebechet branch 2 times, most recently from 5af454e to da40513 Compare June 9, 2022 19:51
Copy link
Member

@harshad16 harshad16 left a comment

Choose a reason for hiding this comment

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

one more suggestion

kebechet/managers/version/version.py Outdated Show resolved Hide resolved
Signed-off-by: Shreekar <sshreeka@redhat.com>
shreekarSS added a commit to shreekarSS/kebechet that referenced this pull request Jun 10, 2022
Signed-off-by: Shreekar <sshreeka@redhat.com>
Signed-off-by: Shreekar <sshreeka@redhat.com>
Copy link
Member

@harshad16 harshad16 left a comment

Choose a reason for hiding this comment

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

/lgtm
thanks 💯

@sesheta sesheta added the lgtm Indicates that a PR is ready to be merged. label Jun 10, 2022
@sesheta
Copy link
Member

sesheta commented Jun 10, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: harshad16

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sesheta sesheta added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 10, 2022
@sesheta sesheta merged commit 7610e56 into thoth-station:master Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants