plan_my_stuff 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b0b4807143a42fc7a7b667b6023f182e6bfe5601c9302d7044c7e30b4dab5db
4
- data.tar.gz: 19c3cb2b4ab0156d01b2ec1a1f52086c1299f3171a2284fa0df995d163b17bb4
3
+ metadata.gz: 9ebad7566954c25e32a08db69c0371b4328fa7fb242c59a6f3ef70f2682e2671
4
+ data.tar.gz: 0435a322e73075d11006907068556be895a14dc956d0a41efa7a4ebc0f6b5540
5
5
  SHA512:
6
- metadata.gz: 5de35eb3a9b45ba810df2b786081d9cc3988f46048ac94b8df9c65887c71103bc2b4de1b5c4eeb0fa7bb49156c4eb405fdc0fe368764f5b86d7de977dd7f5449
7
- data.tar.gz: 268532412c45fbeceeeae220870ec19bddf150644ac23689f680cd4f0fe97bce5161decd56ae85bb72343160abc5ae3cb585e5b55129e38455e604e385013847
6
+ metadata.gz: c72c64408c325f038304f85a368bcb9419063bf16ff48fb5c18707b4246f11d6f373ea4ab79a6528e225718b0db02bd88bb92b91b2069104126593801a8c9f1f
7
+ data.tar.gz: 56303a07b5a767acbe2e0ac0c5d50cf2de4aa534bf568b360bc34d1342ff9acc19e29164d4edd05e7e63912eb9fbe4076d3a2081252967d78f4782d27f1bf954
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Added
6
+
7
+ - When `PlanMyStuff::Reminders::Closer` closes an issue, it will also update the `Issue Status` issue field with `User Inactive`
8
+
9
+ ## 1.0.3
10
+
11
+ ### Fixed
12
+
13
+ - `plan_my_stuff:webhooks:create_org` and `plan_my_stuff:webhooks:create_repo` now use `import_client` (the
14
+ `import_access_token`) instead of the regular `access_token`, since creating org and repo webhooks requires an admin
15
+ token
16
+
3
17
  ## 1.0.2
4
18
 
5
19
  ### Fixed
@@ -42,10 +42,15 @@ module PlanMyStuff
42
42
  # @return [void]
43
43
  #
44
44
  def call
45
+ to_update = {}
46
+ if PlanMyStuff.configuration.issue_fields_enabled
47
+ to_update[:issue_fields] = { 'Issue Status' => 'User Inactive' }
48
+ end
45
49
  @issue.update!(
46
50
  state: :closed,
47
51
  metadata: { closed_by_inactivity: true },
48
52
  skip_notification: true,
53
+ **to_update,
49
54
  )
50
55
  add_user_inactive_label
51
56
  PlanMyStuff::Notifications.instrument(
@@ -3,8 +3,8 @@
3
3
  module PlanMyStuff
4
4
  module VERSION
5
5
  MAJOR = 1
6
- MINOR = 0
7
- TINY = 2
6
+ MINOR = 1
7
+ TINY = 0
8
8
 
9
9
  # Set PRE to nil unless it's a pre-release (beta, rc, etc.)
10
10
  PRE = nil
@@ -29,7 +29,7 @@ namespace :plan_my_stuff do
29
29
  raise(PlanMyStuff::ConfigurationError, 'PlanMyStuff.configuration.webhook_secret is blank')
30
30
  end
31
31
 
32
- hook = PlanMyStuff.client.rest(
32
+ hook = PlanMyStuff.import_client.rest(
33
33
  :create_org_hook,
34
34
  config.organization,
35
35
  { url: url, content_type: 'json', secret: config.webhook_secret, insecure_ssl: '0' },
@@ -56,7 +56,7 @@ namespace :plan_my_stuff do
56
56
  raise(PlanMyStuff::ConfigurationError, 'PlanMyStuff.configuration.webhook_secret is blank')
57
57
  end
58
58
 
59
- hook = PlanMyStuff.client.rest(
59
+ hook = PlanMyStuff.import_client.rest(
60
60
  :create_hook,
61
61
  repo,
62
62
  'web',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plan_my_stuff
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-06-02 00:00:00.000000000 Z
11
+ date: 2026-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails