Skip to content

Commit

Permalink
Merge 27af9c3 into 28866b5
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonnnj committed Aug 4, 2021
2 parents 28866b5 + 27af9c3 commit c5d78d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
9 changes: 0 additions & 9 deletions src/lineage/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,19 +357,10 @@ def main() -> None:
continue
# If we can successfully push, continue with generating a PR
if push(repo, pr_branch_name, "git", access_token):
# Display instructions for ignoring incoming Lineage config changes
display_lineage_config_skip: bool = (
CONFIG_FILENAME in conflict_file_list
)
if display_lineage_config_skip:
# This will no longer be a conflict, we tell user how to ignore.
conflict_file_list.remove(CONFIG_FILENAME)
if branch_is_new:
logging.info("Creating a new pull request since branch is new.")
template_data = {
"conflict_file_list": conflict_file_list,
"display_lineage_config_skip": display_lineage_config_skip,
"lineage_config_filename": CONFIG_FILENAME,
"lineage_id": lineage_id,
"local_branch": local_branch,
"metadata": PR_METADATA,
Expand Down
4 changes: 1 addition & 3 deletions src/lineage/templates/conflict_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ that you must resolve before merging this pull request!
git remote set-url --push {{ lineage_id }} no_push
git switch {{ local_branch }}
git checkout -b {{ pr_branch_name }} --track origin/{{ local_branch }}
git pull {{ lineage_id }} {{ remote_branch }}{{#display_lineage_config_skip}}
git checkout --ours -- {{lineage_config_filename}}
git add {{lineage_config_filename}}{{/display_lineage_config_skip}}
git pull {{ lineage_id }} {{ remote_branch }}
git status
```

Expand Down

0 comments on commit c5d78d6

Please sign in to comment.