<feed xmlns='http://www.w3.org/2005/Atom'>
<title>redprine, branch master</title>
<subtitle>Automatically update Redmine issues based on open pull requests</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/redprine/'/>
<entry>
<title>README: Add a note about branch name Redmine IDs</title>
<updated>2018-04-20T18:43:31+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-20T18:43:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/redprine/commit/?id=e9009d60966b403dc777f8778e039c7362dfd823'/>
<id>e9009d60966b403dc777f8778e039c7362dfd823</id>
<content type='text'>
Specify that Git branch names must be prefixed with a four-digit Redmine
issue number.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Specify that Git branch names must be prefixed with a four-digit Redmine
issue number.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add README</title>
<updated>2018-04-20T18:41:26+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-20T18:35:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/redprine/commit/?id=1e1e840df242874350195635dda63e251f6ddccb'/>
<id>1e1e840df242874350195635dda63e251f6ddccb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add license (GNU GPLv3+)</title>
<updated>2018-04-20T18:34:55+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-20T18:34:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/redprine/commit/?id=5020d8f293eebdac74b9912aa5316abf3c9178a8'/>
<id>5020d8f293eebdac74b9912aa5316abf3c9178a8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>update_redmine_status(): Run Curl silently</title>
<updated>2018-04-19T19:14:16+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T19:14:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/redprine/commit/?id=9d25be39a32ac59e3474ef6dbbe847377bc305a7'/>
<id>9d25be39a32ac59e3474ef6dbbe847377bc305a7</id>
<content type='text'>
Don't output the Curl progress bar which can be jarring since you're not
expecting it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't output the Curl progress bar which can be jarring since you're not
expecting it.
</pre>
</div>
</content>
</entry>
<entry>
<title>update_redmine_status(): Remove `--head` argument from Curl call</title>
<updated>2018-04-19T18:58:37+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T18:58:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/redprine/commit/?id=b54a0725009c52c1a049cce18334a5f80a06783b'/>
<id>b54a0725009c52c1a049cce18334a5f80a06783b</id>
<content type='text'>
When I ran this code I got the following error:

    Warning: You can only select one HTTP request method! You asked for both POST
    Warning: (-d, --data) and HEAD (-I, --head).
    redprine: error: Redmine API error, status code

Looks like in order to make my PUT request I need to get rid of the
'only headers' flag.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When I ran this code I got the following error:

    Warning: You can only select one HTTP request method! You asked for both POST
    Warning: (-d, --data) and HEAD (-I, --head).
    redprine: error: Redmine API error, status code

Looks like in order to make my PUT request I need to get rid of the
'only headers' flag.
</pre>
</div>
</content>
</entry>
<entry>
<title>main(): Get rid of `update_cache_with_new_pulls()` call</title>
<updated>2018-04-19T18:56:49+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T18:56:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/redprine/commit/?id=3bf3604de7b63549d06d65c216e11e74247d2b92'/>
<id>3bf3604de7b63549d06d65c216e11e74247d2b92</id>
<content type='text'>
I changed that function around in
3c451d5f504c9872e4b589c998d52479f38aabbc such that now it gets called
directly by `update_redmine_status`, so we need to remove it here. Also
this line caused an error because the function was renamed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I changed that function around in
3c451d5f504c9872e4b589c998d52479f38aabbc such that now it gets called
directly by `update_redmine_status`, so we need to remove it here. Also
this line caused an error because the function was renamed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Set `$CACHE_FILE` in `preflight()`</title>
<updated>2018-04-19T18:51:42+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T18:51:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/redprine/commit/?id=01ffc7bedf4d07bb2817c999384db54dbb950aa7'/>
<id>01ffc7bedf4d07bb2817c999384db54dbb950aa7</id>
<content type='text'>
We had initialised the `$CACHE_FILE` variable at the start of the script,
but because at that point `$GITHUB_OWNER_REPO` is empty, the cache file
just ends up getting called ".json".

In order to get the name we want, we need to wait until the
`$GITHUB_OWNER_REPO` variable is initialised by the command line
argument.

Initialise `$CACHE_FILE` in `preflight()` because it makes sense to put
it in that kind of setup function. Move `preflight()` after
`parse_arguments()` to ensure the program variables (including
`$GITHUB_OWNER_REPO`) are properly validated and initialised before
running setup code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We had initialised the `$CACHE_FILE` variable at the start of the script,
but because at that point `$GITHUB_OWNER_REPO` is empty, the cache file
just ends up getting called ".json".

In order to get the name we want, we need to wait until the
`$GITHUB_OWNER_REPO` variable is initialised by the command line
argument.

Initialise `$CACHE_FILE` in `preflight()` because it makes sense to put
it in that kind of setup function. Move `preflight()` after
`parse_arguments()` to ensure the program variables (including
`$GITHUB_OWNER_REPO`) are properly validated and initialised before
running setup code.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix infinite loop when `--cache-only` argument given</title>
<updated>2018-04-19T18:49:31+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T18:49:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/redprine/commit/?id=9909a132d5a855f69501d2258e29d8dab80ab522'/>
<id>9909a132d5a855f69501d2258e29d8dab80ab522</id>
<content type='text'>
If this command line argument was passed, the program would go into an
infinite loop, prevented from finishing argument parsing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If this command line argument was passed, the program would go into an
infinite loop, prevented from finishing argument parsing.
</pre>
</div>
</content>
</entry>
<entry>
<title>extract_data_from_pull_request_json(): Quote username</title>
<updated>2018-04-19T18:47:56+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T18:47:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/redprine/commit/?id=04d5752774cc1ebb97b1df11acb5f9eaf2fd443e'/>
<id>04d5752774cc1ebb97b1df11acb5f9eaf2fd443e</id>
<content type='text'>
When I switched this over to use the variable, I forgot to retain the
double quotes around the username string required by `jq`. Add these in
so that the username can be parsed as a properly quoted string.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When I switched this over to use the variable, I forgot to retain the
double quotes around the username string required by `jq`. Add these in
so that the username can be parsed as a properly quoted string.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add version</title>
<updated>2018-04-18T23:56:42+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-18T23:56:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/redprine/commit/?id=5d3e15ad6684a6c991be759407b0227bfaf337c3'/>
<id>5d3e15ad6684a6c991be759407b0227bfaf337c3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
