Skip to content

Ticket 7914 update script #241

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

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open

Conversation

FreddieAkeroyd
Copy link
Member

No description provided.

Daniel Maclaren and others added 30 commits February 16, 2024 16:23
Co-authored-by: esmith1729 <esmith1729@users.noreply.github.com>
Co-authored-by: esmith1729 <esmith1729@users.noreply.github.com>
…ed into update_scripts.py

Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
…access to BaseTasks' prompt function

Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
…asks instance in update_scripts.py

Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
esmith1729 and others added 6 commits March 1, 2024 14:28
…thod

Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by:  zsoltkebel <zsoltkebel@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Co-authored-by: zsoltkebel <zsoltkebel@users.noreply.github.com>
Co-authored-by: dtmaclaren <danielmaclaren@users.noreply.github.com>
Comment on lines +118 to +121
f"""
Attempt an automatic merge of one branch
{branch_to_merge_from} to another, {branch_to_merge_to} in {dir}
"""

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.

Copilot Autofix

AI 17 days ago

To fix the issue, the multi-line f-string should be converted into a proper docstring for the automatic_merge_of_git_remote method. This involves moving the string to immediately follow the def line of the method. Since the string is intended to describe the method's purpose and parameters, it should be formatted as a standard docstring (triple-quoted string) without the f prefix, as no variable interpolation is required.


Suggested changeset 1
installation_and_upgrade/ibex_install_utils/tasks/git_tasks.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/installation_and_upgrade/ibex_install_utils/tasks/git_tasks.py b/installation_and_upgrade/ibex_install_utils/tasks/git_tasks.py
--- a/installation_and_upgrade/ibex_install_utils/tasks/git_tasks.py
+++ b/installation_and_upgrade/ibex_install_utils/tasks/git_tasks.py
@@ -117,5 +117,9 @@
     ) -> None:
-        f"""
-        Attempt an automatic merge of one branch
-           {branch_to_merge_from} to another, {branch_to_merge_to} in {dir}
+        """
+        Attempt an automatic merge of one branch to another in a specified directory.
+        
+        Args:
+            branch_to_merge_from (str): The name of the branch to merge from.
+            branch_to_merge_to (str): The name of the branch to merge to.
+            dir (str): The directory where the git repository is located.
         """
EOF
@@ -117,5 +117,9 @@
) -> None:
f"""
Attempt an automatic merge of one branch
{branch_to_merge_from} to another, {branch_to_merge_to} in {dir}
"""
Attempt an automatic merge of one branch to another in a specified directory.

Args:
branch_to_merge_from (str): The name of the branch to merge from.
branch_to_merge_to (str): The name of the branch to merge to.
dir (str): The directory where the git repository is located.
"""
Copilot is powered by AI and may make mistakes. Always verify output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants