From ee51750a2b28af29c4b884b9e917e6f92f816a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moln=C3=A1r=20Roland?= Date: Mon, 20 Jan 2025 19:31:45 +0100 Subject: [PATCH 1/8] Set version to 1.0.0.rc1 --- lib/gitlab/triage/linear/migrator/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/triage/linear/migrator/version.rb b/lib/gitlab/triage/linear/migrator/version.rb index 817b6ca..63d29c2 100644 --- a/lib/gitlab/triage/linear/migrator/version.rb +++ b/lib/gitlab/triage/linear/migrator/version.rb @@ -4,7 +4,7 @@ module Gitlab module Triage module Linear module Migrator - VERSION = "0.1.0" + VERSION = "1.0.0.rc1" end end end From 4d558f467fda9e7287db860dfea2894557880480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moln=C3=A1r=20Roland?= Date: Tue, 21 Jan 2025 14:17:35 +0100 Subject: [PATCH 2/8] Add RubyGems.org as environment. --- .github/workflows/gem-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/gem-publish.yml b/.github/workflows/gem-publish.yml index b05ae02..270ffbf 100644 --- a/.github/workflows/gem-publish.yml +++ b/.github/workflows/gem-publish.yml @@ -13,6 +13,8 @@ jobs: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag + environment: RubyGems.org + steps: # Set up - uses: actions/checkout@v4 From bc6cc6fc1ccc886cec5cbb82daa811264a79c19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moln=C3=A1r=20Roland?= Date: Tue, 4 Feb 2025 16:28:09 +0100 Subject: [PATCH 3/8] Change gem-publish.yml to on push. --- .github/workflows/gem-publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/gem-publish.yml b/.github/workflows/gem-publish.yml index 270ffbf..ff31890 100644 --- a/.github/workflows/gem-publish.yml +++ b/.github/workflows/gem-publish.yml @@ -1,8 +1,7 @@ name: Publish Ruby Gem on: - release: - types: [published] + push: jobs: push: From 8531440799038cdfbf491c83a42255344e7d66a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moln=C3=A1r=20Roland?= Date: Tue, 4 Feb 2025 16:33:17 +0100 Subject: [PATCH 4/8] Update allowed_push_host. --- gitlab-triage-linear-migrator.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab-triage-linear-migrator.gemspec b/gitlab-triage-linear-migrator.gemspec index 9d6cac1..ea0514b 100644 --- a/gitlab-triage-linear-migrator.gemspec +++ b/gitlab-triage-linear-migrator.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |spec| spec.license = "MIT" spec.required_ruby_version = ">= 3.1.0" - spec.metadata["allowed_push_host"] = "https://example.com" + spec.metadata["allowed_push_host"] = "https://rubygems.org" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/upsun/gitlab-triage-linear-migrator" From 530488a9e1fcbf216a92bf38be9b31512e9ba358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moln=C3=A1r=20Roland?= Date: Tue, 4 Feb 2025 16:38:08 +0100 Subject: [PATCH 5/8] Update environment to Rubygems.org. --- .github/workflows/gem-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gem-publish.yml b/.github/workflows/gem-publish.yml index ff31890..a15dbed 100644 --- a/.github/workflows/gem-publish.yml +++ b/.github/workflows/gem-publish.yml @@ -12,7 +12,7 @@ jobs: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag - environment: RubyGems.org + environment: Rubygems.org steps: # Set up From 86e532914314dee04712ddfe177c4654c10989cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moln=C3=A1r=20Roland?= Date: Tue, 4 Feb 2025 16:53:34 +0100 Subject: [PATCH 6/8] Update workflow to run only on main branch. --- .github/workflows/gem-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gem-publish.yml b/.github/workflows/gem-publish.yml index a15dbed..20abcca 100644 --- a/.github/workflows/gem-publish.yml +++ b/.github/workflows/gem-publish.yml @@ -1,7 +1,7 @@ name: Publish Ruby Gem on: - push: + push: ['main'] jobs: push: From 6f713c1107d9347457397f4114831e9be5f3f609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moln=C3=A1r=20Roland?= Date: Tue, 4 Feb 2025 16:54:59 +0100 Subject: [PATCH 7/8] Update workflow to run only on main branch. --- .github/workflows/gem-publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gem-publish.yml b/.github/workflows/gem-publish.yml index 20abcca..704f108 100644 --- a/.github/workflows/gem-publish.yml +++ b/.github/workflows/gem-publish.yml @@ -1,7 +1,9 @@ name: Publish Ruby Gem on: - push: ['main'] + push: + branches: + - main jobs: push: From 6fb9121d2b054ffd13df0aae3ac43c28676a00c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moln=C3=A1r=20Roland?= Date: Tue, 4 Feb 2025 16:59:09 +0100 Subject: [PATCH 8/8] Prepare for the first release. --- README.md | 8 ++------ lib/gitlab/triage/linear/migrator/version.rb | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4adceb8..49bde56 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,16 @@ Initial version was developed by Platform.sh (https://platform.sh). ## Installation -TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after -releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section -with instructions to install your gem from git if you don't plan to release to RubyGems.org. - Install the gem and add to the application's Gemfile by executing: ```bash -bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG +bundle add gitlab-triage-linear-migrator ``` If bundler is not being used to manage dependencies, install the gem by executing: ```bash -gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG +gem install gitlab-triage-linear-migrator ``` ## Usage diff --git a/lib/gitlab/triage/linear/migrator/version.rb b/lib/gitlab/triage/linear/migrator/version.rb index 63d29c2..85a41ea 100644 --- a/lib/gitlab/triage/linear/migrator/version.rb +++ b/lib/gitlab/triage/linear/migrator/version.rb @@ -4,7 +4,7 @@ module Gitlab module Triage module Linear module Migrator - VERSION = "1.0.0.rc1" + VERSION = "1.0.0" end end end