pivotoolz 2.3.0 → 2.4.1

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: 648b707a351eb4f2b97c0a8a336f4bf7ac8efb96b9b619a903643d870839d136
4
- data.tar.gz: d967f3097e9e3892aea0a4886e222a08780926afd200596aa9eec7215a56bc53
3
+ metadata.gz: 5e4d0adf8b4a31c7d0327a069606f4a16d4d59b1d50a89df72b3672a819b30b9
4
+ data.tar.gz: 5de0e5ddbf21bd0a74fd4a454dc3723482b5bc180c4e2cb465559996a25306ae
5
5
  SHA512:
6
- metadata.gz: d9e1e27ad6af6380c1c4842a8c54459aa734d3d00c82aeb5d48197797c5034389a3832c92bfbbbd46012318caf2610c134452240b030cbb3bfc5c4fc644bf310
7
- data.tar.gz: 1ecc3da31218e2b0b989f569b3d50f3715d3d934ef8aa33ce8efe804185d114bdbe57dbe9f0283435e15a98b7ec63e6a8521d5e4764a3e67b1750871308d176f
6
+ metadata.gz: 43c743777feacc4bcf4e36e31fa975b62134bc3db2f390ec6d0716fdbb144b5c2b691d3a852ff1c097cf0c2f13b9bf12693a21fcb1cffa4aa5c67e3220858ca9
7
+ data.tar.gz: 78dfcce32de3e457aa9d7fb5264a00a25150675eb72e278719521fe86e84440ef2cdfce61ff3b6a06cf70807d87041fb7312671494ed629a874a33cff7dc53ba
data/README.md CHANGED
@@ -156,6 +156,29 @@ https://www.pivotaltracker.com/story/show/456
156
156
  Use with `post-slack-message` to post a message in a slack deployment channel
157
157
  with the list of stories that just got deployed.
158
158
 
159
+ For a slack-compatible formatted message, add the `--json` flag.
160
+
161
+ There are additional formatting flags if you want to see the name of the person who completed a story in the slack formatted message:
162
+ `--owners` - Show name of person who completed the story as part of the message
163
+
164
+ `--owners-footer` - Show name of person who completed the story as a footer (requires `--owners` flag)
165
+
166
+ `--bold-owners` - Show name of person who completed the story in bold text (requires `--owners` flag)
167
+
168
+ ### `jira-stories-deployed`
169
+
170
+ Similar to `stories-deployed`, but for Jira! Now you can use your favourite development workflow accelerator, even if your
171
+ current team uses Jira!
172
+
173
+ Simply define the following environment variables, and you're ready to go!
174
+
175
+ ```
176
+ export JIRA_API_BASIC_AUTH_BASE64_ENCODED=BASE_64_ENCODED_username:password # See https://developer.atlassian.com/server/jira/platform/basic-authentication/
177
+ export JIRA_API_BASE_URL=https://YOUR_ORG.atlassian.net/rest/api/3/issue/
178
+ export STORY_ID_REGEX=YOUR_STORY_ID_PATTERN_REGEX # Falls back to [[:alpha:]]+-\d+ if not set
179
+ ```
180
+ Use `jira-stories-deployed` just as you would `stories-deployed`.
181
+
159
182
  ### `post-slack-message`
160
183
 
161
184
  Post a message to a slack channel. You will need to [setup
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ #encoding: utf-8
4
+
3
5
  require 'json'
4
6
  require 'ostruct'
5
7
  require 'uri'
@@ -17,7 +17,7 @@ end
17
17
  commit_message_bodies = `git log --pretty="%h %s" #{commit_range}`.strip
18
18
  story_ids = commit_message_bodies.
19
19
  # TODO: Make this configurable
20
- scan(/(DI-\d+|ST-\d+)/).
20
+ scan(/#{ENV['STORY_ID_REGEX'] || '[[:alpha:]]+-\d+'}/).
21
21
  flatten.
22
22
  compact.
23
23
  uniq
@@ -1,3 +1,3 @@
1
1
  module Pivotoolz
2
- VERSION = "2.3.0"
2
+ VERSION = "2.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotoolz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sufyan Adam
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-06 00:00:00.000000000 Z
11
+ date: 2022-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubygems_version: 3.2.3
144
+ rubygems_version: 3.3.7
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Tools to save you time when working with Pivotal Tracker stories