-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
228b369
to
d1de64f
Compare
run: bundle exec rails test | ||
|
||
- name: Run system tests | ||
run: bundle exec rails test:system |
There was a problem hiding this comment.
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
9735c50
to
797e7bf
Compare
797e7bf
to
d0136b2
Compare
lib/moirai/pull_request_creator.rb
Outdated
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")}" |
There was a problem hiding this comment.
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.
No description provided.