-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added logic to handle table length and the RuboCop failures in the do…
…wn method (#12) * Updated ruby version to 3.3.5 * Added spec for handling long table names * Added logic to handle long table names * Added spec to test whether down method will be skipped * Added logic to skip the RuboCop rule for the down method * Added spec for removing columns in down method * Prevented the column deletion rule from being called inside the down method * Release v0.1.2 * Revert "Release v0.1.2" This reverts commit 2e190b7. * Added pull request template * Added GitHub workflow to auto release a new version * Bumped ruby version in NeetoCI and RuboCop configs * Fixed spec failures * Cleaned up the logic to find the down method using each_ancestor * Remove unused require statement
- Loading branch information
1 parent
adbb949
commit 3b6fe8f
Showing
11 changed files
with
175 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
- Fixes #issue-number | ||
|
||
**Checklist** | ||
|
||
- [ ] I have performed a self-review of my code. | ||
- [ ] I have made corresponding changes to the documentation. | ||
- [ ] I have added the necessary label (patch/minor/major - If package publish | ||
is required). | ||
- [ ] I have followed the suggested description format and styling. | ||
|
||
**Reviewers** | ||
|
||
<!--- | ||
------------- FORMAT FOR DESCRIPTION ------------- | ||
Prefix the change with one of these keywords: | ||
- Added: for new features. | ||
- Changed: for changes in existing functionality. | ||
- Deprecated: for soon-to-be removed features. | ||
- Removed: for now removed features. | ||
- Fixed: for any bug fixes. | ||
- Security: in case of vulnerabilities. | ||
Points to note: | ||
- The description shall be represented in bullet points. | ||
- Add the keyword BREAKING in bold style for changes that could potentially break the engine, eg: **BREAKING**. | ||
---> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: release | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- closed | ||
jobs: | ||
release-please: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
if: >- | ||
${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'skip-version-bump') }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.3.5 | ||
- run: bundle install | ||
# Publish | ||
- name: publish gem | ||
run: | | ||
gem install gemfury -v 0.12.0 | ||
touch $HOME/.netrc | ||
chmod 0600 $HOME/.netrc | ||
printf "machine api.fury.io\n login udai.gupta@bigbinary.com\n password ${{ secrets.GEMFURY_API_KEY }}\nmachine git.fury.io\n login udai.gupta@bigbinary.com\n password ${{ secrets.GEMFURY_API_KEY }}\n" > $HOME/.netrc | ||
gem build | ||
fury push *.gem --as neeto-live |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Bump version | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- closed | ||
jobs: | ||
release: | ||
name: Bump version | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
if: >- | ||
${{ github.event.pull_request.merged == true && !contains(github.event.pull_request.labels.*.name, 'skip-version-bump') }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup ruby | ||
uses: ruby/setup-ruby@v1.195.0 | ||
with: | ||
ruby-version: "3.3.5" | ||
bundler-cache: true | ||
|
||
- name: Bump version and create PR | ||
uses: bigbinary/bump-product-version@v1.1.5 | ||
with: | ||
labels: ${{ join(github.event.pull_request.labels.*.name, ',') }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
default_bump_label: patch | ||
|
||
- name: Find bump version PR | ||
uses: juliangruber/find-pull-request-action@v1 | ||
id: find-pull-request | ||
with: | ||
branch: bump-gem-version | ||
state: all | ||
|
||
- name: Add mergepr label | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: ${{ steps.find-pull-request.outputs.number }}, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ["mergepr"] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.2.4 | ||
3.3.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.2.4 | ||
3.3.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters