Skip to content

Improve the default gitignore files created by the generators#9507

Merged
andreslucena merged 2 commits intodecidim:developfrom
mainio:chore/improve-default-gitignore
Jul 13, 2022
Merged

Improve the default gitignore files created by the generators#9507
andreslucena merged 2 commits intodecidim:developfrom
mainio:chore/improve-default-gitignore

Conversation

@ahukkanen
Copy link
Copy Markdown
Contributor

@ahukkanen ahukkanen commented Jul 1, 2022

🎩 What? Why?

While reviewing decidim/metadecidim#103, I noticed a bunch of lines added to the .gitignore of the instance.

Maybe we should add these automatically also to any new applications created with the generator?

I also added the env configuration files to the .gitignore of generated components.

Testing

Applications:

  1. Run bundle exec rake test_app
  2. Run cat spec/decidim_dummy_app/.gitignore
  3. See the result

For components

  1. Run bundle exec ./decidim-generators/exe/decidim --component foobar (note that bundle exec here is important for the executable not to load the installed version of the requirements)
  2. Give description for the component
  3. Run cat decidim-module-foobar/.gitignore
  4. See the result

📋 Checklist

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

@ahukkanen ahukkanen added module: generators type: change PRs that implement a change for an existing feature labels Jul 8, 2022
@ahukkanen ahukkanen requested a review from andreslucena July 8, 2022 14:27
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

👍🏽

@andreslucena andreslucena merged commit 0899fd0 into decidim:develop Jul 13, 2022
@ahukkanen ahukkanen deleted the chore/improve-default-gitignore branch July 13, 2022 16:30
@ahukkanen
Copy link
Copy Markdown
Contributor Author

Noticed that this change also dropped public/uploads from the .gitignore but that shouldn't matter for new instances created with the generator as that was a CarrierWave folder.

Just FYI!

entantoencuanto added a commit that referenced this pull request Jul 15, 2022
…ging

* feature/redesign-main-footer:
  Reorder elements in main links of footer and define links and texts
  Define a cell for static_pages and topics configured to appear in footer
  Fix translation call
  Set fixed links in redesigned_main_legal partial
  Add FooterMenuPresenter to display menu items in footer
  Fix budgets seeds on non development apps (#9585)
  Return 404 when there isn't a valid component in program (#9576)
  Add missing queue close_meeting_reminder to sidekiq configuration (#9568)
  Make the HERE Map display in the currently selected language (#9552)
  Add help text for proposals' 'publish answers immediately' setting  (#9549)
  Fix admin language selector with more than 4 locales (#9519)
  Fix publish event on official proposals (#9421)
  Prevent missing ActionLog entries to break the application (#9502)
  Add boilerplate structure to CHANGELOG (#9501)
  Add step-by-step instructions of the Crowdin releases process (#9555)
  Fix translated attributes field type change (#9547)
  Add `modifyList` option to the autocomplete element (#9548)
  Admin log filters (#9460)
  Improve the default gitignore files created by the generators (#9507)
eliegaboriau pushed a commit to eliegaboriau/decidim that referenced this pull request Oct 25, 2022
…m#9507)

* Improve the default gitignore files created by the generators

* Clarify the method name for modifying the .gitignore file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: generators type: change PRs that implement a change for an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants