Updating bot name in workflows
This commit is contained in:
@@ -93,8 +93,8 @@ def _clone_subrepo(repo_url: str, branch: str, destination: Path) -> None:
|
||||
|
||||
def _configure_git_user(repo_path: Path) -> None:
|
||||
"""Configure git user.name and user.email for the given repository directory."""
|
||||
_run_git(["config", "user.name", "assistant-librarian[bot]"], cwd=repo_path)
|
||||
_run_git(["config", "user.email", "assistant-librarian[bot]@users.noreply.github.com"], cwd=repo_path)
|
||||
_run_git(["config", "user.name", "systems-assistant[bot]"], cwd=repo_path)
|
||||
_run_git(["config", "user.email", "systems-assistant[bot]@users.noreply.github.com"], cwd=repo_path)
|
||||
|
||||
def _apply_patch(repo_path: Path, patch_path: Path, rel_file_path: Path, monorepo_path: Path, prefix: str) -> None:
|
||||
"""Try to apply a patch; if it fails, fallback to full file replacement."""
|
||||
|
||||
@@ -26,8 +26,8 @@ jobs:
|
||||
|
||||
- name: Set up Git user and Git LFS
|
||||
run: |
|
||||
git config user.name "assistant-librarian[bot]"
|
||||
git config user.email "assistant-librarian[bot]@users.noreply.github.com"
|
||||
git config user.name "systems-assistant[bot]"
|
||||
git config user.email "systems-assistant[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Add Repositories to the Monorepo
|
||||
run: |
|
||||
|
||||
@@ -71,8 +71,8 @@ jobs:
|
||||
|
||||
- name: Set up Git user
|
||||
run: |
|
||||
git config user.name "assistant-librarian[bot]"
|
||||
git config user.email "assistant-librarian[bot]@users.noreply.github.com"
|
||||
git config user.name "systems-assistant[bot]"
|
||||
git config user.email "systems-assistant[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Compute Category Labels for PR
|
||||
id: compute_labels
|
||||
|
||||
@@ -81,8 +81,8 @@ jobs:
|
||||
|
||||
- name: Set up Git user
|
||||
run: |
|
||||
git config user.name "assistant-librarian[bot]"
|
||||
git config user.email "assistant-librarian[bot]@users.noreply.github.com"
|
||||
git config user.name "systems-assistant[bot]"
|
||||
git config user.email "systems-assistant[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Fetch subrepo PR info using gh
|
||||
id: prdata
|
||||
|
||||
@@ -74,8 +74,8 @@ jobs:
|
||||
|
||||
- name: Set up Git user
|
||||
run: |
|
||||
git config user.name "assistant-librarian[bot]"
|
||||
git config user.email "assistant-librarian[bot]@users.noreply.github.com"
|
||||
git config user.name "systems-assistant[bot]"
|
||||
git config user.email "systems-assistant[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Detect changed subtrees from merged PR
|
||||
id: detect
|
||||
|
||||
@@ -89,8 +89,8 @@ jobs:
|
||||
- name: Set up Git user
|
||||
if: steps.pr-check.outputs.skip != 'true'
|
||||
run: |
|
||||
git config user.name "assistant-librarian[bot]"
|
||||
git config user.email "assistant-librarian[bot]@users.noreply.github.com"
|
||||
git config user.name "systems-assistant[bot]"
|
||||
git config user.email "systems-assistant[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Detect changed subtrees from merged PR
|
||||
id: detect
|
||||
|
||||
@@ -37,8 +37,8 @@ jobs:
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "assistant-librarian[bot]"
|
||||
git config user.email "assistant-librarian[bot]@users.noreply.github.com"
|
||||
git config user.name "systems-assistant[bot]"
|
||||
git config user.email "systems-assistant[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Detect changed subtrees
|
||||
id: detect
|
||||
@@ -80,8 +80,8 @@ jobs:
|
||||
|
||||
- name: Run and auto-commit pre-commit fixes
|
||||
env:
|
||||
GIT_AUTHOR_NAME: "assistant-librarian[bot]"
|
||||
GIT_AUTHOR_EMAIL: "assistant-librarian[bot]@users.noreply.github.com"
|
||||
GIT_AUTHOR_NAME: "systems-assistant[bot]"
|
||||
GIT_AUTHOR_EMAIL: "systems-assistant[bot]@users.noreply.github.com"
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
var="${{ steps.changed-files.outputs.all_modified_files }}"
|
||||
|
||||
@@ -34,8 +34,8 @@ jobs:
|
||||
|
||||
- name: Set up Git user
|
||||
run: |
|
||||
git config user.name "assistant-librarian[bot]"
|
||||
git config user.email "assistant-librarian[bot]@users.noreply.github.com"
|
||||
git config user.name "systems-assistant[bot]"
|
||||
git config user.email "systems-assistant[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Switch to the Monorepo branch
|
||||
run: |
|
||||
|
||||
@@ -33,8 +33,8 @@ jobs:
|
||||
|
||||
- name: Set up Git user
|
||||
run: |
|
||||
git config user.name "assistant-librarian[bot]"
|
||||
git config user.email "assistant-librarian[bot]@users.noreply.github.com"
|
||||
git config user.name "systems-assistant[bot]"
|
||||
git config user.email "systems-assistant[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Switch to the Monorepo branch
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user