Skip to content

feature(connector_sdk): Adding github workflows#3

Merged
fivetran-rishabhghosh merged 4 commits into
mainfrom
sahil/adding-workflows
Apr 1, 2026
Merged

feature(connector_sdk): Adding github workflows#3
fivetran-rishabhghosh merged 4 commits into
mainfrom
sahil/adding-workflows

Conversation

@fivetran-sahilkhirwal

@fivetran-sahilkhirwal fivetran-sahilkhirwal commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces GitHub repository automation for the Connector SDK repo, including CI workflows, issue/PR templates, Copilot review instruction files, and local developer tooling (hooks + formatting scripts).

Changes:

  • Add GitHub Actions workflows for README enforcement, Python formatting/lint checks, and automatic PR labeling.
  • Add GitHub templates/instructions to standardize PRs, issues, and Copilot review behavior.
  • Add local scripts/hooks plus a repo-level .flake8 configuration to align formatting/linting.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 19 comments.

Show a summary per file
File Description
.github/workflows/enforce-readme-update.yml PR check to require root README.md updates when new directories are added
.github/workflows/code-quality-check.yml CI for Black + Flake8 and PR commenting of results
.github/workflows/add-label.yml Auto-label PRs by size and add default metadata labels
.github/scripts/setup-hooks.sh Helper to set core.hooksPath for local Git hooks
.github/scripts/fix-python-formatting.sh Helper script to run Black formatting locally
.github/git_hooks/pre-commit Pre-commit hook to auto-format staged Python files with Black
.github/PULL_REQUEST_TEMPLATE.md Standard PR template (ticket, description, testing, checklist)
.github/ISSUE_TEMPLATE/request.yml Issue template for feature/idea requests
.github/ISSUE_TEMPLATE/bug_report.yml Issue template for bug reports
.github/instructions/readme-markdown.instructions.md Copilot instructions for README/Markdown review style and structure
.github/instructions/python-review.instructions.md Copilot instructions for Python PR review (SDK v2+, linting, patterns)
.github/instructions/configuration-review.instructions.md Copilot instructions for reviewing configuration.json and JSON conventions
.github/copilot-instructions.md High-level Copilot guidance for this repository
.flake8 Repo Flake8 configuration (line length, selects/ignores, excludes)

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

Comment thread .github/workflows/enforce-readme-update.yml Outdated
Comment thread .github/workflows/enforce-readme-update.yml
Comment thread .github/workflows/enforce-readme-update.yml
Comment thread .github/workflows/code-quality-check.yml Outdated
Comment thread .github/workflows/code-quality-check.yml
Comment thread .github/scripts/setup-hooks.sh
Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/workflows/code-quality-check.yml Outdated
Comment thread .github/workflows/code-quality-check.yml
Comment thread .flake8
Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
Copilot AI review requested due to automatic review settings April 1, 2026 16:58
@fivetran-rishabhghosh fivetran-rishabhghosh merged commit a851fc5 into main Apr 1, 2026
4 checks passed
@fivetran-rishabhghosh fivetran-rishabhghosh deleted the sahil/adding-workflows branch April 1, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 5 comments.

Comment on lines +24 to +36
- name: Run black and generate diff
id: black_check
run: |
echo "Running black in check mode with diff output..."
black --check --diff --line-length 99 . > formatting.diff || true

if [ -s formatting.diff ]; then
echo "Formatting issues detected:"
cat formatting.diff
echo "black_failed=true" >> $GITHUB_OUTPUT
else
echo "No formatting issues found."
fi

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

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

This workflow runs Black against the entire repo (black ... .) even when the PR doesn't touch Python files. That can cause unrelated PRs to fail due to pre-existing formatting issues. If the intent is to only gate on Python changes in the PR, run Black only when changed_files.txt is non-empty and/or target only the changed Python files (similar to the Flake8 step).

Copilot uses AI. Check for mistakes.
# Check again after install
if ! command -v black &> /dev/null; then
echo "Failed to install 'black'. Aborting formatting but allowing commit!"
exit 0 # Github Actions will prevent merging of PRs if its not properly formatted, we want to continue with the commit.

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

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

Spelling: use "GitHub Actions" (capital H) in this comment to match the official name.

Suggested change
exit 0 # Github Actions will prevent merging of PRs if its not properly formatted, we want to continue with the commit.
exit 0 # GitHub Actions will prevent merging of PRs if its not properly formatted, we want to continue with the commit.

Copilot uses AI. Check for mistakes.
Comment on lines +15 to +20
- **API example**
- This example shows how to sync data using an API key and secret."

The correct format and style would be as follows:

- API example - This example shows how to sync data using an API key and secret."

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

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

The Markdown examples include stray trailing double quotes at the end of sentences, which makes the examples look like malformed Markdown. Please remove the trailing " characters from these example lines.

Copilot uses AI. Check for mistakes.
Comment on lines +30 to +34
Use bulleted lists when just listing items in no particular order or when listing the alternatives, for example:
The management actions are as follows:
- Create connection
- Retrieve connection
- Delete connection"

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

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

This example line ends with an extra trailing double quote, which makes the Markdown example look malformed. Please remove the trailing ".

Copilot uses AI. Check for mistakes.
To obtain your API key, do the following:
1. Log in to your DreemBleem account.
2. Go to **Settings > API Key**.
3. Make a note the API key and secret. You will need to add it to `configuration.json` file later."

Copilot AI Apr 1, 2026

Copy link

Choose a reason for hiding this comment

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

This numbered list example ends with an extra trailing double quote. Please remove the trailing " so the example reads cleanly.

Suggested change
3. Make a note the API key and secret. You will need to add it to `configuration.json` file later."
3. Make a note the API key and secret. You will need to add it to `configuration.json` file later.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants