Skip to content

feat: add FourFour sample#119

Open
immdipu wants to merge 1 commit into
mainfrom
feat/fourfour
Open

feat: add FourFour sample#119
immdipu wants to merge 1 commit into
mainfrom
feat/fourfour

Conversation

@immdipu
Copy link
Copy Markdown
Contributor

@immdipu immdipu commented Apr 13, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 13, 2026 10:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Ampersand sample configuration for the FourFour provider, defining scheduled read objects and enabling proxy support.

Changes:

  • Introduces fourfour/amp.yaml with a fourFour-read integration definition.
  • Configures three read objects (Chats, ChatMessages, Labels) with schedules, fields, and backfill behavior.
  • Enables proxy for the integration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread fourfour/amp.yaml
Comment on lines +46 to +47
proxy:
enabled: true No newline at end of file
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

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

proxy is indented under read here, but in other samples it’s a sibling of read/write at the integration level. With the current indentation it will be parsed as read.proxy, which likely won’t be recognized by the amp schema. Outdent proxy: (and enabled:) to align with read:.

Suggested change
proxy:
enabled: true
proxy:
enabled: true

Copilot uses AI. Check for mistakes.
Comment thread fourfour/amp.yaml
Comment on lines +28 to +30
- fieldName: content
- fieldName: created_at
- fieldName: id
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

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

The requiredFields sequence items under ChatMessages aren’t indented under requiredFields:. In YAML, list items must be more indented than the mapping key, otherwise the file may be invalid or the fields won’t be associated with requiredFields. Indent the - fieldName: ... lines to match the pattern used for Chats above.

Suggested change
- fieldName: content
- fieldName: created_at
- fieldName: id
- fieldName: content
- fieldName: created_at
- fieldName: id

Copilot uses AI. Check for mistakes.
Comment thread fourfour/amp.yaml
Comment on lines +22 to +36

- objectName: ChatMessages
destination: fourFourWebhook
schedule: "*/10 * * * *"
# https://fourfour.ai/developers/api#tag/ChatMessages/paths/~1ChatMessages/get
requiredFields:
- fieldName: content
- fieldName: created_at
- fieldName: id
optionalFieldsAuto: all
backfill:
defaultPeriod:
fullHistory: true


Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

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

There are trailing spaces on the - fieldName: id line, and there’s also inconsistent blank-line/whitespace usage in this block. Please trim trailing whitespace to avoid noisy diffs and formatter/linter issues.

Suggested change
- objectName: ChatMessages
destination: fourFourWebhook
schedule: "*/10 * * * *"
# https://fourfour.ai/developers/api#tag/ChatMessages/paths/~1ChatMessages/get
requiredFields:
- fieldName: content
- fieldName: created_at
- fieldName: id
optionalFieldsAuto: all
backfill:
defaultPeriod:
fullHistory: true
- objectName: ChatMessages
destination: fourFourWebhook
schedule: "*/10 * * * *"
# https://fourfour.ai/developers/api#tag/ChatMessages/paths/~1ChatMessages/get
requiredFields:
- fieldName: content
- fieldName: created_at
- fieldName: id
optionalFieldsAuto: all
backfill:
defaultPeriod:
fullHistory: true

Copilot uses AI. Check for mistakes.
Comment thread fourfour/amp.yaml
- objectName: Chats
destination: fourFourWebhook
schedule: "*/10 * * * *"
# https://fourfour.ai/developers/api#tag/Chats/paths/~1Chats/get
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

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

The URL comment for the Chats object is less indented than the surrounding object properties, which makes the YAML harder to read and can look like it applies to a different level. Align the comment indentation with the other fields in the object block.

Suggested change
# https://fourfour.ai/developers/api#tag/Chats/paths/~1Chats/get
# https://fourfour.ai/developers/api#tag/Chats/paths/~1Chats/get

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants