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

Mention Datadog SDK explicitly in dogfood script #1557

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dogfood.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def github_create_pr(repository: str, branch_name: str, base_name: str, version:
}
body = "This PR has been created automatically by the CI"
if previous_version:
diff = "Updating from version {previous_version} to version {version}: [diff](https://github.com/DataDog/dd-sdk-android/compare/{previous_version}...{version})".format(previous_version=previous_version, version=version)
diff = "Updating Datadog SDK from version {previous_version} to version {version}: [diff](https://github.com/DataDog/dd-sdk-android/compare/{previous_version}...{version})".format(previous_version=previous_version, version=version)
body = "\\n".join([body, diff])
data = '{"body": "' + body + '", ' \
'"title": "Update to version ' + version + '", ' \
'"title": "Update Datadog SDK to version ' + version + '", ' \
'"base":"' + base_name + '", "head":"' + branch_name + '"}'

url = "https://api.github.com/repos/DataDog/" + repository + "/pulls"
Expand Down Expand Up @@ -113,7 +113,7 @@ def git_clone_repository(repo_name: str, gh_token: str, temp_dir_path: str) -> T
def git_push_changes(repo: Repo, version: str):
print("Committing changes")
repo.git.add(update=True)
repo.index.commit("Update DD SDK to " + version)
repo.index.commit("Update Datadog SDK to " + version)

print("Pushing branch")
origin = repo.remote(name="origin")
Expand Down