[openSUSE/open-build-service] 2c02e1: Use correct commit_sha for gitea on tag push
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 2c02e133788520ba9ecc0fff58256abecd56ca40 https://github.com/openSUSE/open-build-service/commit/2c02e133788520ba9ecc0f... Author: Lukas Krause <lkrause@suse.de> Date: 2022-12-14 (Wed, 14 Dec 2022) Changed paths: M src/api/app/services/trigger_controller_service/scm_extractor.rb Log Message: ----------- Use correct commit_sha for gitea on tag push Similar to github, we have to use the `:head_commit => :id` attribute from the webhook payload on a tag push in order to point to commit the tag is refering to, not the sha of the tag itself. Otherwise we are not able to pull the workflow configuration and the obs_scm service won't pull the correct sources since the wrong commit_sha is used in the branch_request file. Commit: 053d89b1ee311aaf65a985858ea01626c023035b https://github.com/openSUSE/open-build-service/commit/053d89b1ee311aaf65a985... Author: Lukas Krause <lkrause@suse.de> Date: 2022-12-14 (Wed, 14 Dec 2022) Changed paths: M src/api/app/services/workflows/yaml_downloader.rb Log Message: ----------- Use correct download path for gitea on tag push The download url for a tag push is different to the one for a regular push/pull_request event. In order to pull the workflow configuration file the tag version is refering to we have to adapt the url. Commit: 4c2da6de9f7319bdceaa8dc11f9d87539a6d3d0a https://github.com/openSUSE/open-build-service/commit/4c2da6de9f7319bdceaa8d... Author: Lukas Krause <lkrause@suse.de> Date: 2022-12-14 (Wed, 14 Dec 2022) Changed paths: M src/api/spec/services/trigger_controller_service/scm_extractor_spec.rb Log Message: ----------- Adapt scm_extractor spec to use correct commit sha on tag push for gitea Commit: 23c3532f825186d112915283fc91cef3b18acc6f https://github.com/openSUSE/open-build-service/commit/23c3532f825186d1129152... Author: Lukas Krause <lkrause@suse.de> Date: 2022-12-14 (Wed, 14 Dec 2022) Changed paths: M src/api/spec/services/workflows/yaml_downloader_spec.rb Log Message: ----------- Add test case for gitea tag push to yaml_downloader spec Commit: af7a225d5ae11b0d22ada7d1f248a81efc7c9bf2 https://github.com/openSUSE/open-build-service/commit/af7a225d5ae11b0d22ada7... Author: Lukas Krause <lkrause@suse.de> Date: 2022-12-14 (Wed, 14 Dec 2022) Changed paths: M src/api/app/services/trigger_controller_service/scm_extractor.rb M src/api/app/services/workflows/yaml_downloader.rb M src/api/spec/services/trigger_controller_service/scm_extractor_spec.rb M src/api/spec/services/workflows/yaml_downloader_spec.rb Log Message: ----------- Merge pull request #13531 from krauselukas/fix/tag_push_gitea Fix scm integration for tag push to gitea Compare: https://github.com/openSUSE/open-build-service/compare/2416118ccd2d...af7a22...
participants (1)
-
Lukas Krause