Skip to content

Commit

Permalink
Improve handling of .git* files/dirs (#3141)
Browse files Browse the repository at this point in the history
* Create .gitattributes

* Remove .github/ in posthog-foss sync

* .gitignore whole directories (recursively ofc)

* Remove .gitignore line from ages past
  • Loading branch information
Twixes authored Feb 1, 2021
1 parent ff3d2d7 commit 427e4fa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* text=auto

.gitattributes export-ignore
.gitignore export-ignore
.github/ export-ignore
CONTRIBUTING.md export-ignore
CODE_OF_CONDUCT.md export-ignore
3 changes: 2 additions & 1 deletion .github/workflows/posthog-foss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- main

jobs:
repo-sync:
Expand All @@ -29,6 +30,6 @@ jobs:
author_name: PostHog Bot
author_email: [email protected]
message: 'Sync and remove all non-FOSS parts'
remove: '-r ee/'
remove: ['-r ee/', '-r .github/']
env:
GITHUB_TOKEN: ${{ secrets.SYNC_GITHUB_TOKEN }}
11 changes: 5 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ settings.yml
debug.log
*.swp
*.swo
impliu/static/CACHE/*
node_modules/*
node_modules/
*.code-workspace
node_modules
.vscode/*
.vscode/
frontend/.cache/
.mypy_cache
frontend/dist/*
frontend/types/*
frontend/dist/
frontend/types/
*Type.ts
frontend/yarn-error.log
.idea
Expand All @@ -27,7 +26,7 @@ celerybeat.pid
yarn-error.log
.yalc
yalc.lock
cypress/screenshots/*
cypress/screenshots/
docker-compose.prod.yml
.python-version
*.isorted

0 comments on commit 427e4fa

Please sign in to comment.