dev-workflow

द्वारा contentstack

शाखाएँ, CI, बिल्ड/टेस्ट/लिंट, PR अपेक्षाएँ, कवरेज—Contentstack Utils Swift के लिए मानक वर्कफ़्लो।

npx skills add https://github.com/contentstack/contentstack-utils-swift --skill dev-workflow

Development workflow – Contentstack Utils Swift

When to use

  • Setting up locally, opening a PR, or aligning with CI.
  • Answering “how do we run tests?” or “which branch targets master?”

Branches

  • Use feature branches (e.g. feat/..., fix/..., ticket branches).
  • CI runs on push to master and on pull requests targeting master or next (.github/workflows/ci.yml).
  • Merges into master may be gated: PRs whose base is master are often expected to come from staging; other heads may fail the check-branch workflow (.github/workflows/check-branch.yml). Confirm with your team before opening PRs to master.

Running tests and build

  • SPM: swift build, swift test
  • CI-style Xcode (iOS Simulator):
    xcodebuild -project "ContentstackUtils.xcodeproj" -scheme "ContentstackUtils-Package" -destination "OS=13.4.1,name=iPhone 11 Pro" test
    Adjust -destination for your local Xcode/Simulator.

Run tests before opening a PR. Default tests use offline mocks and fixtures—no .env or live stack credentials.

Lint

  • SwiftLint: swiftlint (.swiftlint.yml)

Pull requests

  • Build passes: swift build and swift test (and xcodebuild if you touch Xcode-specific paths).
  • Follow the code-review skill (skills/code-review/SKILL.md) before merge.
  • Prefer backward-compatible public API; call out breaking changes and semver.
  • Describe behavior and update CHANGELOG.md / version metadata (ContentstackUtils.podspec, tags) when releasing—per team process.
  • Security/policy scans may run in CI (e.g. .github/workflows/sca-scan.yml, policy-scan.yml).

Optional: TDD

If the team uses TDD: RED → GREEN → REFACTOR. Test structure is in skills/testing/SKILL.md.

Coverage

  • Slather (.slather.yml, scheme ContentstackUtils-Package): use after tests to inspect Sources/ContentstackUtils/ coverage.

References

  • skills/testing/SKILL.md
  • skills/code-review/SKILL.md

contentstack की और Skills

cms-assets
contentstack
डेवलपर्स को Contentstack में एसेट्स को व्यवस्थित करने, वितरित करने और बदलने के बारे में सलाह दें। फोल्डर संरचना, Image Delivery API ट्रांसफॉर्मेशन, प्रकाशन कवर करें...
cms-branches-aliases
contentstack
डेवलपर्स को Contentstack branches का उपयोग करके पृथक सामग्री विकास और aliases के लिए शून्य-डाउनटाइम सामग्री परिनियोजन पर सलाह दें। Branch रणनीति को कवर करें,…
cms-data-modeling-best-practices
contentstack
डेवलपर्स को Contentstack में कंटेंट मॉडल करने के लिए सबसे सरल पुन: प्रयोज्य संरचना का उपयोग करने का मार्गदर्शन करें। यह स्किल बताती है कि कंटेंट टाइप, रेफरेंस, ग्लोबल… का उपयोग कब करना चाहिए।
cms-live-preview-visual-builder-support-assistant
contentstack
Contentstack Live Preview और Visual Builder कार्यान्वयनों का निदान और मार्गदर्शन करें। पूर्वावलोकन संदर्भ का पता लगाएं, टूटे हुए अनुबंध की पहचान करें, और अनुशंसा करें…
cms-releases
contentstack
डेवलपर्स को समन्वित, परमाणु सामग्री परिनियोजन के लिए Contentstack Releases का उपयोग करने पर सलाह दें। रिलीज़ निर्माण, आइटम प्रबंधन, चरणबद्ध परिनियोजन को शामिल करें,…
cms-roles-permissions
contentstack
डेवलपर्स को Contentstack में भूमिकाओं, अनुमतियों, टीमों और टोकन एक्सेस डिज़ाइन करने पर सलाह दें। बिल्ट-इन भूमिकाओं, कस्टम भूमिकाओं, अनुमति विलय,… की व्याख्या करें।
cms-taxonomy
contentstack
डेवलपर्स को संरचित, श्रेणीबद्ध सामग्री वर्गीकरण और डिलीवरी-पक्ष फ़िल्टरिंग के लिए Contentstack Taxonomy का उपयोग करने पर सलाह दें। Taxonomy बनाम tags को कवर करता है,…
cms-tokens-authentication
contentstack
डेवलपर्स को फ्रंटएंड, बैकएंड, ऑटोमेशन और थर्ड-पार्टी ऐप उपयोग के मामलों के लिए सही Contentstack प्रमाणीकरण विधि और टोकन प्रकार चुनने पर सलाह दें।…