Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

chore(ci): retire the dead dev branch pipeline (#4968)

LearningCircuitfae1656a5a36
diff --git a/.github/workflows/README.md b/.github/workflows/README.md
index d5c13c89ae..16e09ca77f 100644
--- a/.github/workflows/README.md
+++ b/.github/workflows/README.md
@@ -27,7 +27,7 @@ Automatically updates NPM dependencies across all package.json files in the proj
### Branch Strategy
- Creates branch: `update-npm-dependencies-{run_number}`
-- Targets: `dev` branch
+- Targets: `main` branch
- Labels: `maintenance`
- Reviewers: `djpetti,HashedViking,LearningCircuit`
diff --git a/.github/workflows/backwards-compatibility.yml b/.github/workflows/backwards-compatibility.yml
index 0d2c3bd8c4..f688f22f08 100644
--- a/.github/workflows/backwards-compatibility.yml
+++ b/.github/workflows/backwards-compatibility.yml
@@ -4,7 +4,7 @@ on:
workflow_call: # Allows this workflow to be called by other workflows
pull_request:
types: [opened, synchronize, reopened]
- branches: [main, dev]
+ branches: [main]
paths:
# Core encryption and database management
- 'src/local_deep_research/database/encrypted_db.py'
diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml
index 01c357237f..c5c14b46ed 100644
--- a/.github/workflows/dependency-review.yml
+++ b/.github/workflows/dependency-review.yml
@@ -5,7 +5,7 @@ on:
# It remains on PRs only and is NOT included in release gate.
# The osv-scanner and npm-audit in release gate cover dependency vulnerabilities.
pull_request:
- branches: [main, dev, develop]
+ branches: [main, develop]
paths:
- 'pyproject.toml'
- 'pdm.lock'
diff --git a/.github/workflows/docker-tests.yml b/.github/workflows/docker-tests.yml
index 8581d2b5b0..ef8fa677a1 100644
--- a/.github/workflows/docker-tests.yml
+++ b/.github/workflows/docker-tests.yml
@@ -3,7 +3,7 @@ name: Docker Tests (Consolidated)
on:
pull_request:
types: [opened, synchronize, reopened]
- branches: [ main, dev ]
+ branches: [ main ]
push:
branches: [ main ]
workflow_call: # Called by ci-gate.yml for release pipeline
@@ -98,7 +98,6 @@ jobs:
if: |
github.event_name == 'pull_request' ||
github.ref == 'refs/heads/main' ||
- github.ref == 'refs/heads/dev' ||
inputs.strict-mode == true
steps:
@@ -507,7 +506,7 @@ jobs:
# 3. README references the shields.io URL to display the badge
# Setup: Create a gist, add GIST_TOKEN (PAT with gist scope) and COVERAGE_GIST_ID secrets
- name: Update coverage badge
- if: always() && github.ref == 'refs/heads/dev' && github.event_name == 'push'
+ if: always() && github.ref == 'refs/heads/main' && github.event_name == 'push'
env:
GIST_TOKEN: ${{ secrets.GIST_TOKEN }}
run: |
diff --git a/.github/workflows/file-whitelist-check.yml b/.github/workflows/file-whitelist-check.yml
index 7ae953e8ee..15b55e5668 100644
--- a/.github/workflows/file-whitelist-check.yml
+++ b/.github/workflows/file-whitelist-check.yml
@@ -3,7 +3,7 @@ name: File Whitelist Security Check
on:
pull_request:
- branches: [ main, dev ]
+ branches: [ main ]
workflow_call: # Called by ci-gate.yml for release pipeline
inputs:
check-all-files:
diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml
index 6e06bf1823..c221aaaba7 100644
--- a/.github/workflows/gitleaks.yml
+++ b/.github/workflows/gitleaks.yml
@@ -2,7 +2,7 @@ name: Gitleaks Secret Detection
on:
pull_request:
- branches: [ main, dev ]
+ branches: [ main ]
workflow_dispatch:
schedule:
# Run secret scan daily at 3 AM UTC
diff --git a/.github/workflows/label-fixed-in-dev.yml b/.github/workflows/label-fixed-in-dev.yml
deleted file mode 100644
index 1c5a9f2c4d..0000000000
--- a/.github/workflows/label-fixed-in-dev.yml
+++ /dev/null
@@ -1,81 +0,0 @@
-name: Auto-label Fixed Issues in Dev
-on:
- pull_request:
- types: [closed]
- branches: [dev]
-
-# No concurrency group — intentionally omitted.
-# Previous attempt (#3554, reverted #3599) used cancel-in-progress which
-# killed in-progress PR runs before they produced useful results.
-# Future iteration could safely add concurrency for scheduled/push-only
-# triggers (where head_ref is empty and runs get unique groups).
-
-permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissions
-
-jobs:
- label-linked-issues:
- if: github.event.pull_request.merged == true
- runs-on: ubuntu-latest
- timeout-minutes: 5
- permissions:
- issues: write
- pull-requests: read
- steps:
- - name: Harden the runner (Audit all outbound calls)
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
- with:
- egress-policy: audit
-
- - name: Add "fixed in dev" label to linked issues
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- with:
- script: |
- const pr = context.payload.pull_request;
- const body = pr.body || '';
- const title = pr.title || '';
-
- // Combine title and body for searching
- const text = `${title} ${body}`;
-
- // Find issue references with keywords (fixes, closes, resolves, etc.)
- const keywordPattern = /(close[sd]?|fix(es|ed)?|resolve[sd]?)\s+#(\d+)/gi;
- const matches = text.matchAll(keywordPattern);
-
- // Also find simple #123 references without keywords
- const simplePattern = /#(\d+)/g;
- const simpleMatches = text.matchAll(simplePattern);
-
- // Collect all issue numbers
- const issueNumbers = new Set();
-
- // Add issues with keywords (definitely linked)
- for (const match of matches) {
- issueNumbers.add(match[3]);
- }
-
- // Add simple references (might be linked)
- for (const match of simpleMatches) {
- issueNumbers.add(match[1]);
- }
-
- // Label each issue
- for (const issueNumber of issueNumbers) {
- try {
- console.log(`Adding "fixed in dev" label to issue #${issueNumber}`);
- await github.rest.issues.addLabels({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: parseInt(issueNumber),
- labels: ['fixed in dev']
- });
- } catch (error) {
- console.log(`Could not label issue #${issueNumber}: ${error.message}`);
- // Continue with other issues even if one fails
- }
- }
-
- if (issueNumbers.size === 0) {
- console.log('No linked issues found in PR');
- } else {
- console.log(`Labeled ${issueNumbers.size} issue(s) as "fixed in dev"`);
- }
diff --git a/.github/workflows/mcp-tests.yml b/.github/workflows/mcp-tests.yml
index 1be152deab..77daccfb18 100644
--- a/.github/workflows/mcp-tests.yml
+++ b/.github/workflows/mcp-tests.yml
@@ -2,14 +2,14 @@ name: MCP Server Tests
on:
push:
- branches: [ main, dev ]
+ branches: [ main ]
paths:
- 'src/local_deep_research/mcp/**'
- 'tests/mcp/**'
- 'scripts/mcp_smoke_test.sh'
- '.github/workflows/mcp-tests.yml'
pull_request:
- branches: [ main, dev ]
+ branches: [ main ]
paths:
- 'src/local_deep_research/mcp/**'
- 'tests/mcp/**'
diff --git a/.github/workflows/mypy-type-check.yml b/.github/workflows/mypy-type-check.yml
index 2daa565a2a..c8d2846204 100644
--- a/.github/workflows/mypy-type-check.yml
+++ b/.github/workflows/mypy-type-check.yml
@@ -2,7 +2,7 @@ name: Mypy Type Checking
on:
pull_request:
- branches: [ main, dev ]
+ branches: [ main ]
workflow_call: # Called by ci-gate.yml for release pipeline
workflow_dispatch:
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index ce9c20822f..2b15f98d59 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -2,7 +2,7 @@ name: Pre-commit Checks
on:
pull_request:
- branches: [ main, dev ]
+ branches: [ main ]
workflow_call: # Called by ci-gate.yml for release pipeline
workflow_dispatch:
diff --git a/.github/workflows/sync-main-to-dev.yml b/.github/workflows/sync-main-to-dev.yml
deleted file mode 100644
index adde357a9b..0000000000
--- a/.github/workflows/sync-main-to-dev.yml
+++ /dev/null
@@ -1,477 +0,0 @@
-name: Sync Main to Dev
-
-on:
- # Automatic sync disabled - use manual workflow_dispatch if needed
- # schedule:
- # # Run at 6 AM CET daily
- # - cron: '0 5 * * *'
- workflow_dispatch:
-
-permissions: {} # Minimal top-level for OSSF Scorecard Token-Permissions
-
-jobs:
- sync-main-to-dev:
- runs-on: ubuntu-latest
- environment: ci
- # Only run if the push is not from a merge of dev branch
- if: ${{ !contains(github.event.head_commit.message, 'Merge pull request') || !contains(github.event.head_commit.message, 'from LearningCircuit/local-deep-research:dev') }}
-
- permissions:
- contents: write
- pull-requests: write
-
- steps:
- - name: Harden the runner (Audit all outbound calls)
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
- with:
- egress-policy: audit
-
- - name: Checkout repository
- # zizmor: ignore[artipacked] - Credentials must persist for git push operations
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- with:
- fetch-depth: 0
- # SECURITY: Dual-token strategy for workflow file modifications
- # - PAT_TOKEN (used here): Allows git push of workflow file changes.
- # GITHUB_TOKEN cannot modify .github/workflows/* by design (security feature).
- # - GITHUB_TOKEN (used for PR creation): Ensures PR is created by github-actions[bot]
- # for proper approval workflow.
- #
- # PAT_TOKEN Requirements:
- # - Type: Fine-grained Personal Access Token (preferred over classic)
- # - Scope: 'workflows' permission only (minimal required)
- # - Expiration: ≤90 days with documented rotation schedule
- # - Level: Repository secret (not organization)
- # - Owner: Repository maintainers (see SECURITY.md for contacts)
- #
- # Risk Mitigation:
- # - Token stored in git config is only accessible within this job
- # - All workflow steps are controlled (no untrusted code execution)
- # - Repository branch protections prevent unauthorized workflow changes
- # - Regular token rotation enforced via expiration
- token: ${{ secrets.PAT_TOKEN }}
-
- - name: Configure Git
- run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- - name: Check if sync is needed
- id: check_sync
- run: |
- # Fetch latest changes
- git fetch origin main dev
-
- # Check if main and dev are already in sync
- MAIN_COMMIT=$(git rev-parse origin/main)
- DEV_COMMIT=$(git rev-parse origin/dev)
-
- echo "main_commit=$MAIN_COMMIT" >> "$GITHUB_OUTPUT"
- echo "dev_commit=$DEV_COMMIT" >> "$GITHUB_OUTPUT"
-
- if [ "$MAIN_COMMIT" = "$DEV_COMMIT" ]; then
- echo "sync_needed=false" >> "$GITHUB_OUTPUT"
- echo "Main and dev are already in sync"
- else
- echo "sync_needed=true" >> "$GITHUB_OUTPUT"
- echo "Sync needed: main ($MAIN_COMMIT) differs from dev ($DEV_COMMIT)"
- fi
-
- - name: Create or update sync branch
- if: steps.check_sync.outputs.sync_needed == 'true'
- id: create_branch
- run: |
- # Use fixed branch name for updates
- BRANCH_NAME="sync-main-to-dev"
- echo "branch_name=$BRANCH_NAME" >> "$GITHUB_OUTPUT"
-
- # Check if branch exists on remote
- if git ls-remote --heads origin $BRANCH_NAME | grep -q $BRANCH_NAME; then
- echo "Branch exists, will update it"
- git fetch origin $BRANCH_NAME
- git checkout -B $BRANCH_NAME origin/main
- # Force push to update the branch
- git push -f origin $BRANCH_NAME
- else
- echo "Creating new branch"
- git checkout -b $BRANCH_NAME origin/main
- git push origin $BRANCH_NAME
- fi
-
- - name: Attempt merge and handle conflicts
- if: steps.check_sync.outputs.sync_needed == 'true'
- id: merge_attempt
- run: |
- # Try to merge dev into the sync branch
- if git merge origin/dev --no-edit; then
- echo "merge_conflicts=false" >> "$GITHUB_OUTPUT"
- echo "Merge successful, no conflicts"
- else
- echo "merge_conflicts=true" >> "$GITHUB_OUTPUT"
- echo "Merge conflicts detected"
-
- # Get list of conflicted files
- CONFLICTED_FILES=$(git diff --name-only --diff-filter=U)
- {
- echo "conflicted_files<<EOF"
- echo "$CONFLICTED_FILES"
- echo "EOF"
- } >> "$GITHUB_OUTPUT"
-
- # Abort the merge for now
- git merge --abort
- fi
-
- - name: Push successful merge
- if: steps.check_sync.outputs.sync_needed == 'true' && steps.merge_attempt.outputs.merge_conflicts == 'false'
- env:
- BRANCH_NAME: ${{ steps.create_branch.outputs.branch_name }}
- run: |
- # Push the merged changes
- git push origin "$BRANCH_NAME"
-
- - name: Create or Update Pull Request
- if: steps.check_sync.outputs.sync_needed == 'true'
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- env:
- BRANCH_NAME: ${{ steps.create_branch.outputs.branch_name }}
- MERGE_CONFLICTS: ${{ steps.merge_attempt.outputs.merge_conflicts }}
- CONFLICTED_FILES: ${{ steps.merge_attempt.outputs.conflicted_files }}
- with:
- # SECURITY: Use GITHUB_TOKEN (not PAT_TOKEN) for PR creation
- # - Ensures PR is created by github-actions[bot] account
- # - Allows PAT_TOKEN (different actor) to approve it later
- # - Prevents self-approval security issue
- # This complements PAT_TOKEN usage in checkout (see above)
- github-token: ${{ secrets.GITHUB_TOKEN }}
- script: |
- const branchName = process.env.BRANCH_NAME;
- const hasConflicts = process.env.MERGE_CONFLICTS === 'true';
- const conflictedFiles = (process.env.CONFLICTED_FILES || '').split('\n').filter(f => f.trim());
- const timestamp = new Date().toISOString();
-
- let title, body;
-
- if (hasConflicts) {
- title = `🚨 Sync main to dev (CONFLICTS)`;
- body = `## ⚠️ Merge Conflicts Detected
-
- This automated sync from main to dev has **merge conflicts** that require manual resolution.
-
- ### Conflicted Files:
- ${conflictedFiles.map(file => `- \`${file}\``).join('\n')}
-
- ### Manual Steps Required:
- 1. Check out this branch: \`git checkout ${branchName}\`
- 2. Merge dev: \`git merge dev\`
- 3. Resolve conflicts in the files listed above
- 4. Commit the resolution: \`git commit\`
- 5. Push changes: \`git push origin ${branchName}\`
-
- ### What's Being Synced:
- - Latest changes from main branch
- - Preserving all dev branch improvements
- - Maintaining compatibility between branches
-
- **⚡ Action Required:** Please resolve conflicts manually and update this PR.
-
- ---
- *Last updated: ${timestamp}*`;
- } else {
- title = `✅ Sync main to dev`;
- body = `## Summary
- This is an automated sync of main branch changes into dev.
-
- ### Changes Included:
- - All latest commits from main branch
- - No merge conflicts detected
- - Ready for review and merge
-
- ### Automated Process:
- - ✅ Created/updated sync branch from main
- - ✅ Successfully merged dev branch
- - ✅ No conflicts detected
- - ✅ Ready for final review
-
- This ensures main and dev branches stay synchronized automatically.
-
- ---
- *Last updated: ${timestamp}*`;
- }
-
- // Check if a PR already exists for this branch
- const { data: existingPRs } = await github.rest.pulls.list({
- owner: context.repo.owner,
- repo: context.repo.repo,
- state: 'open',
- head: `${context.repo.owner}:${branchName}`,
- base: 'dev'
- });
-
- let pr;
- if (existingPRs.length > 0) {
- // Update existing PR
- pr = existingPRs[0];
- console.log(`Updating existing PR #${pr.number}`);
-
- await github.rest.pulls.update({
- owner: context.repo.owner,
- repo: context.repo.repo,
- pull_number: pr.number,
- title: title,
- body: body
- });
-
- console.log(`Updated PR #${pr.number}: ${pr.html_url}`);
- } else {
- // Create new PR
- const { data: newPr } = await github.rest.pulls.create({
- owner: context.repo.owner,
- repo: context.repo.repo,
- title: title,
- head: branchName,
- base: 'dev',
- body: body
- });
- pr = newPr;
- console.log(`Created PR #${pr.number}: ${pr.html_url}`);
- }
-
- // Update labels (remove old ones and add new ones)
- const currentLabels = pr.labels.map(l => l.name);
- const labelsToRemove = currentLabels.filter(l => l === 'sync' || l === 'conflicts' || l === 'auto-merge');
-
- if (labelsToRemove.length > 0) {
- for (const label of labelsToRemove) {
- try {
- await github.rest.issues.removeLabel({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: pr.number,
- name: label
- });
- } catch (e) {
- console.log(`Could not remove label ${label}: ${e.message}`);
- }
- }
- }
-
- // Add appropriate labels
- await github.rest.issues.addLabels({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: pr.number,
- labels: hasConflicts ? ['sync', 'conflicts'] : ['sync', 'auto-merge']
- });
-
- - name: Wait for PR to be ready
- if: steps.check_sync.outputs.sync_needed == 'true' && steps.merge_attempt.outputs.merge_conflicts == 'false'
- run: |
- echo "Waiting for PR to be ready..."
- sleep 5
-
- - name: Verify PR contains only sync commits
- if: steps.check_sync.outputs.sync_needed == 'true' && steps.merge_attempt.outputs.merge_conflicts == 'false'
- id: verify_commits
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- env:
- BRANCH_NAME: ${{ steps.create_branch.outputs.branch_name }}
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- script: |
- const branchName = process.env.BRANCH_NAME;
-
- // Find the PR we just created/updated
- const { data: prs } = await github.rest.pulls.list({
- owner: context.repo.owner,
- repo: context.repo.repo,
- state: 'open',
- head: `${context.repo.owner}:${branchName}`,
- base: 'dev'
- });
-
- if (prs.length === 0) {
- console.log('PR not found, skipping auto-merge');
- core.setOutput('pr_number', '');
- core.setOutput('safe_to_merge', 'false');
- return;
- }
-
- const pr = prs[0];
- console.log(`Found PR #${pr.number}`);
- core.setOutput('pr_number', pr.number);
-
- // Get the list of commits in the PR
- const { data: commits } = await github.rest.pulls.listCommits({
- owner: context.repo.owner,
- repo: context.repo.repo,
- pull_number: pr.number
- });
-
- console.log(`PR has ${commits.length} commit(s)`);
-
- // Check if all commits are either from main or are merge commits
- let safeToMerge = true;
- const suspiciousCommits = [];
-
- for (const commit of commits) {
- const message = commit.commit.message;
- const author = commit.commit.author.email;
-
- // Check if this is a merge commit or github-actions commit
- const isMergeCommit = message.startsWith('Merge');
- const isGitHubActions = author === 'github-actions[bot]@users.noreply.github.com' ||
- author === '41898282+github-actions[bot]@users.noreply.github.com';
-
- if (!isMergeCommit && !isGitHubActions) {
- // Check if this commit exists in main
- try {
- await github.rest.repos.getCommit({
- owner: context.repo.owner,
- repo: context.repo.repo,
- ref: commit.sha
- });
- console.log(`Commit ${commit.sha.substring(0, 7)} exists in repo`);
- } catch (e) {
- suspiciousCommits.push({
- sha: commit.sha.substring(0, 7),
- message: message.split('\n')[0],
- author: author
- });
- }
- }
- }
-
- if (suspiciousCommits.length > 0) {
- console.log('Found unexpected commits:');
- suspiciousCommits.forEach(c => {
- console.log(` - ${c.sha}: ${c.message} (by ${c.author})`);
- });
- safeToMerge = false;
- } else {
- console.log('All commits verified as sync-related');
- }
-
- core.setOutput('safe_to_merge', safeToMerge.toString());
- core.setOutput('commit_count', commits.length.toString());
-
- - name: Auto-approve PR
- if: steps.verify_commits.outputs.safe_to_merge == 'true'
- id: auto_approve
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- env:
- PR_NUMBER: ${{ steps.verify_commits.outputs.pr_number }}
- with:
- # SECURITY: Use PAT_TOKEN for approval (different from PR creator)
- # - PR was created by GITHUB_TOKEN (github-actions[bot])
- # - PAT_TOKEN represents a different actor, allowing approval
- # - Prevents self-approval (GitHub requirement)
- github-token: ${{ secrets.PAT_TOKEN }}
- script: |
- const prNumber = parseInt(process.env.PR_NUMBER, 10);
-
- if (!prNumber) {
- console.log('No PR number found, skipping approval');
- return;
- }
-
- try {
- // Approve the PR (this will fail if PAT_TOKEN is not set or invalid)
- const { data: review } = await github.rest.pulls.createReview({
- owner: context.repo.owner,
- repo: context.repo.repo,
- pull_number: prNumber,
- event: 'APPROVE',
- body: '✅ Auto-approved: Clean sync from main to dev with no conflicts.\n\nVerified:\n- No merge conflicts detected\n- Only contains sync-related commits\n- Ready for auto-merge'
- });
-
- console.log(`Successfully approved PR #${prNumber}`);
- core.setOutput('approved', 'true');
- } catch (error) {
- console.log(`Could not approve PR: ${error.message}`);
- if (error.message.includes('Resource not accessible')) {
- console.log('Note: PAT_TOKEN may not be configured or may lack required permissions');
- }
- core.setOutput('approved', 'false');
- }
-
- - name: Enable auto-merge
- if: steps.auto_approve.outputs.approved == 'true'
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
- env:
- PR_NUMBER: ${{ steps.verify_commits.outputs.pr_number }}
- with:
- # SECURITY: Use PAT_TOKEN for auto-merge enablement
- # - Requires same permissions as approval
- # - Must be same actor that approved the PR
- github-token: ${{ secrets.PAT_TOKEN }}
- script: |
- const prNumber = parseInt(process.env.PR_NUMBER, 10);
-
- try {
- // Enable auto-merge (will wait for status checks)
- const mutation = `
- mutation($pullRequestId: ID!) {
- enablePullRequestAutoMerge(input: {
- pullRequestId: $pullRequestId,
- mergeMethod: MERGE
- }) {
- pullRequest {
- autoMergeRequest {
- enabledAt
- enabledBy {
- login
- }
- }
- }
- }
- }
- `;
-
- // First get the PR node ID
- const { data: prData } = await github.rest.pulls.get({
- owner: context.repo.owner,
- repo: context.repo.repo,
- pull_number: prNumber
- });
-
- const result = await github.graphql(mutation, {
- pullRequestId: prData.node_id
- });
-
- console.log(`✅ Auto-merge enabled for PR #${prNumber}`);
- console.log('The PR will be automatically merged once all status checks pass.');
- } catch (error) {
- console.log(`Could not enable auto-merge: ${error.message}`);
- console.log('The PR has been approved but will need manual merging.');
- }
-
- - name: Log final status
- if: steps.check_sync.outputs.sync_needed == 'true'
- env:
- HAS_CONFLICTS: ${{ steps.merge_attempt.outputs.merge_conflicts }}
- SAFE_TO_MERGE: ${{ steps.verify_commits.outputs.safe_to_merge }}
- WAS_APPROVED: ${{ steps.auto_approve.outputs.approved }}
- run: |
- echo "========================================="
- echo "Sync Workflow Summary:"
- echo "========================================="
- if [ "$HAS_CONFLICTS" == "true" ]; then
- echo "⚠️ Status: PR created with CONFLICTS"
- echo "Action required: Manual conflict resolution needed"
- elif [ "$SAFE_TO_MERGE" != "true" ]; then
- echo "⚠️ Status: PR created but contains unexpected commits"
- echo "Action required: Manual review needed"
- elif [ "$WAS_APPROVED" == "true" ]; then
- echo "✅ Status: PR created, approved, and auto-merge enabled"
- echo "The PR will merge automatically once checks pass"
- else
- echo "⚠️ Status: PR created but not auto-approved"
- echo "Action required: Manual approval needed"
- fi
- echo "========================================="
-
- - name: Notify if no sync needed
- if: steps.check_sync.outputs.sync_needed == 'false'
- run: |
- echo "✅ Main and dev branches are already synchronized - no action needed"
diff --git a/.github/workflows/validate-image-pinning.yml b/.github/workflows/validate-image-pinning.yml
index 1664328ece..1eceaa15f3 100644
--- a/.github/workflows/validate-image-pinning.yml
+++ b/.github/workflows/validate-image-pinning.yml
@@ -2,7 +2,7 @@ name: Validate Docker Image Pinning
on:
pull_request:
- branches: [main, dev]
+ branches: [main]
paths:
- '**/Dockerfile*'
- '**/docker-compose*.yml'