Skip to content
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
67 changes: 67 additions & 0 deletions .github/workflows/dependabot-constraintlayout-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Dependabot POS Reminder

on:
pull_request:
types: [opened, reopened]

jobs:
add-pos-reminder:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'

steps:
# Check if PR contains the constraintlayout dependency
- name: Check for ConstraintLayout Compose dependency
id: check-dependency
uses: actions/github-script@v7
with:
script: |
const title = context.payload.pull_request.title;
const body = context.payload.pull_request.body;
const searchTerm = 'androidx.constraintlayout:constraintlayout-compose';

const containsDependency =
title.includes(searchTerm) ||
body.includes(searchTerm);

console.log(`PR contains ${searchTerm}: ${containsDependency}`);
return containsDependency;
result-encoding: string

# Add comment if dependency is found
- name: Comment on PR
if: steps.check-dependency.outputs.result == 'true'
uses: actions/github-script@v7
with:
script: |
// Check if comment already exists to avoid duplicates
const comments = await github.rest.issues.listComments({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo
});

const botComment = comments.data.find(comment =>
comment.user.type === 'Bot' &&
comment.body.includes('POS testing')
);

if (!botComment) {
const commentBody = `## ⚠️ POS Testing Required
Copy link
Preview

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The multi-line template literal has inconsistent indentation. The content should be aligned with the opening backtick or use consistent indentation throughout the string.

Copilot uses AI. Check for mistakes.


This PR updates \`androidx.constraintlayout:constraintlayout-compose\`, which affects the Point of Sale system.

**Required Testing:**
- [ ] Cart items remain visible during checkout
- [ ] Layout constraints work correctly on all screen sizes
- [ ] No UI elements disappear unexpectedly

Please complete POS testing before merging this PR.`;

await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: commentBody
});
}