Skip to content

Update Stripe SDK to 5.0.0 #562

Update Stripe SDK to 5.0.0

Update Stripe SDK to 5.0.0 #562

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
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
});
}