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

release: trigger release processes when release workflow succeeded #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

otegami
Copy link
Contributor

@otegami otegami commented Dec 12, 2024

GitHub: GH-43

In this PR, we set up how release flow is triggered from webhook
requests.

@otegami otegami force-pushed the release-run-async-task branch 2 times, most recently from 3700adc to a82b318 Compare December 19, 2024 02:26
GitHub: groongaGH-43

In this PR, we set up how release flow is triggered from webhook
requests.
@otegami otegami force-pushed the release-run-async-task branch from a82b318 to e4f8727 Compare December 19, 2024 02:58
@otegami otegami changed the title draf relase: run asyn task release: trigger release processes when release workflow succeeded Dec 19, 2024
@otegami otegami marked this pull request as ready for review December 19, 2024 05:57
@otegami
Copy link
Contributor Author

otegami commented Dec 19, 2024

I'm thinking I will add the test at the following PRs because this PR has already had a lots of changes.

private

def workflow_tag?
return if branch
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return if branch
return false unless branch

条件合ってます?
? なので真偽値を返すと良さげ。

require_relative "response"
require_relative "source-archive"
Copy link
Contributor

Choose a reason for hiding this comment

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

このファイルはコミット漏れ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mainの変更を取り込めてなかったので、後ほどrebaseします 🙏🏾


def parse_payload(request, response)
unless request.media_type == "application/json"
response.set(:bad_request, "invalid payload format")
Copy link
Contributor

Choose a reason for hiding this comment

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

parse_payloadresponse.set までしちゃうのは越権行為な気がするんですがどうでしょうか。
parse ならばそれだけに専念したほうが良さそうに思います。

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.

2 participants