Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Sep 23, 2025

  • Add --skip-git-init flag to create command to allow users to opt out of git initialization
  • Modify create command to run git init after successful actor creation
  • Add appropriate success messages to inform users about git repository initialization
  • Add tests to verify git initialization functionality
  • Fix linting issues and ensure all tests pass
  • Reorder git init to run before success message but report result after

The apify create command now automatically initializes a git repository in the newly created actor directory and informs users that they can easily commit and push their actor to git. The git init command runs before the success message is displayed, but the result is reported after the success message as requested.

Fixes #918.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Copilot Copilot AI changed the title [WIP] apify create should run git init in the newly created actor Add automatic git repository initialization to apify create command Sep 23, 2025
@Copilot Copilot AI requested a review from vladfrangu September 23, 2025 13:51
Copilot finished work on behalf of vladfrangu September 23, 2025 13:51
@vladfrangu vladfrangu marked this pull request as ready for review September 23, 2025 13:53
@vladfrangu vladfrangu requested a review from B4nan as a code owner September 23, 2025 13:53
@vladfrangu
Copy link
Member

@copilot Run the git init command before reporting the actor was created, but only alert the user about its result after.

Copy link
Contributor Author

Copilot AI commented Sep 23, 2025

@copilot Run the git init command before reporting the actor was created, but only alert the user about its result after.

Updated the implementation to run git init before the success message but report the result after. The git repository is now initialized earlier in the flow as requested. (commit: 76a0e01)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.segment.io
    • Triggering command: node /home/REDACTED/work/apify-cli/apify-cli/dist/apify.js create test-actor --template project_empty --skip-dependency-install (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@Copilot Copilot AI requested a review from vladfrangu September 23, 2025 14:04
Copilot finished work on behalf of vladfrangu September 23, 2025 14:04
@B4nan B4nan changed the title Add automatic git repository initialization to apify create command feat: Add automatic git repository initialization to apify create command Sep 24, 2025
@vladfrangu vladfrangu merged commit bd1f0a1 into master Sep 25, 2025
22 checks passed
@vladfrangu vladfrangu deleted the copilot/fix-918 branch September 25, 2025 09:39
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.

apify create should run git init in the newly created actor
3 participants