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

Pull request creator tests #40

Merged
merged 5 commits into from
Oct 30, 2024
Merged

Pull request creator tests #40

merged 5 commits into from
Oct 30, 2024

Conversation

coorasse
Copy link
Member

No description provided.

@coorasse coorasse requested a review from a team as a code owner October 30, 2024 19:12
@coorasse coorasse self-assigned this Oct 30, 2024
Comment on lines +35 to +39
run: bundle exec rails test

- name: Run system tests
run: bundle exec rails test:system
Copy link
Member Author

Choose a reason for hiding this comment

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

I expected the tests to fail and they were green

end

def create_pull_request(translations_array)
repo = @client.repo(@github_repo_name)
default_branch = repo.default_branch
@branch_name = "moirai-translations-#{Time.current.strftime("%F-%H-%M-%S")}"
Copy link
Member Author

Choose a reason for hiding this comment

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

branch name must be different each time, otherwise there might be conflicts, for example when we have different CI, running in parallel. Is also correct that a new branch is created each time.

@coorasse coorasse merged commit 4942458 into main Oct 30, 2024
8 checks passed
@coorasse coorasse deleted the pull_request_creator_tests branch October 30, 2024 20:50
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.

1 participant