neetob 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '097b148bc3d346939936fe233fcabc500538a8657acd4f74fc2898170a5e257c'
4
- data.tar.gz: 023e80835729714236bef94c6ed1291d84b4293d22e4c0dab498cf836321e693
3
+ metadata.gz: f81625c823e05e9fcddcb86381a5730e3cc2c03acf3f137803a0cbb74d1ee220
4
+ data.tar.gz: 9a127257a9793d42dc5aa8e3bc7d59356236152f606e262d12ed87a2a937b7ed
5
5
  SHA512:
6
- metadata.gz: 2a717ff3d397ca25b3bbb19829385184c72898e0bf49f8cf4034795219f3a14716e49877c4bb16a77cb3c42cef8a4978e1a587a0ca9866d0b87758606aa9313d
7
- data.tar.gz: 002e44597d4dbf36ce89395b36e84c819b8b8073aac049c2d99f9736e43aa8457dd2c8bae89c3edbbbe1234441d35df8e3d06e068863ab3681a79d9b166c0fdd
6
+ metadata.gz: fab4a057fc1341c2bd0827396e224b632dd7aea72c6627a0b06679efb8e4e2bac704d6f22542ea1afc1eb2bfdb678efc4749a135e77f9df0f36b7cfa25feabe8
7
+ data.tar.gz: 1cc41989ec73d0cd004b953dc21598e66ec01ae3e39c18a9ed501b172b174d317bc51492a507b0f11e294b68ae86867cb60244cf1d3fd76511af0c794cb8797b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ### [0.2.2](https://www.github.com/bigbinary/neetob/compare/v0.2.1...v0.2.2) (2023-03-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Fixed update label command to ignore repos that doesn't have the specified label. ([#199](https://www.github.com/bigbinary/neetob/issues/199)) ([bc98c0d](https://www.github.com/bigbinary/neetob/commit/bc98c0dbd3691e66b8e2c161788f3f3a6ff6b977))
9
+ * Updated docs for gem release ([#204](https://www.github.com/bigbinary/neetob/issues/204)) ([1a93745](https://www.github.com/bigbinary/neetob/commit/1a937450b7a49f81c0e45ad7ca235ffe66a0a1e2))
10
+
3
11
  ### [0.2.1](https://www.github.com/bigbinary/neetob/compare/v0.2.0...v0.2.1) (2023-03-06)
4
12
 
5
13
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetob (0.2.1)
4
+ neetob (0.2.2)
5
5
  dotenv (~> 2.8.1)
6
6
  launchy (~> 2.5.0)
7
7
  octokit (~> 4.0)
data/README.md CHANGED
@@ -7,6 +7,7 @@ The `neetob` gem gives different commands for interacting with Github repos, Her
7
7
  1. [Usage](#usage)
8
8
  1. [Installing neetob for use](#installing-neetob-for-use)
9
9
  2. [For development](#for-development)
10
+ 3. [Gem release](#gem-release)
10
11
  2. [Source of truth](#source-of-truth)
11
12
  3. [Working with GitHub](#working-with-github)
12
13
  1. [Issues](#issues)
@@ -115,6 +116,11 @@ For example:
115
116
 
116
117
  ![Commit message update](images/commit-message-update.png)
117
118
 
119
+
120
+ ### Gem release
121
+
122
+ When a commit is added to the `main` branch [release](.github/workflows/release.yml) Github action checks that commit for the [conventional commit message](#conventional-commit-messages). If a proper suffix like `fix:`, `feat:`, etc is used in that commit message then the Github action will create a new PR with the updated version and changelog. The version and changelog for the `neetob` gem are updated automatically by the Github action using the commit message. When we merge this newly created PR by the Github action into the main branch, an updated Gem is released to the [rubygems](https://rubygems.org).
123
+
118
124
  ## Source of truth
119
125
 
120
126
  This [list of repos](https://github.com/bigbinary/neeto-compliance/blob/main/data/neeto_repos.json) is used as the "source of truth".
@@ -24,9 +24,11 @@ module Neetob
24
24
  check_for_apps_and_all_neeto_repos_option(apps, all_neeto_repos)
25
25
  matching_apps = find_all_matching_apps(apps, :github, sandbox, false, all_neeto_repos)
26
26
  matching_apps.each do |app|
27
- ui.info("\n Updating label for #{app} repo \n")
27
+ ui.info("\nUpdating label for #{app} repo \n")
28
28
  begin
29
29
  update_label!(app, old_name, new_name)
30
+ rescue Octokit::NotFound
31
+ ui.say("Ignoring update for #{app} repo as it doesn't have the \"#{old_name}\" label.")
30
32
  rescue StandardError => e
31
33
  ExceptionHandler.new(e).process
32
34
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neetob
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neetob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Udai Gupta