Skip to content

Commit a29394e

Browse files
authored
Merge branch 'staging' into fix-item-names-id
2 parents 05e78f8 + 65e3354 commit a29394e

File tree

5 files changed

+36388
-6
lines changed

5 files changed

+36388
-6
lines changed

Resources/scripts/updater.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Executed when the master branch of PokeAPI/pokeapi gets updated
2+
# Executed when the master/staging branch of PokeAPI/pokeapi gets updated
33
# Runs in CircleCI
44
# Generates new data using the latest changes of PokeAPI/pokeapi in order to open a Pull Request towards PokeAPI/api-data
55

@@ -90,10 +90,10 @@ get_invokator_pr_number() {
9090
commit_msg_regex="Merge pull request #([0-9]+) from PokeAPI/(.*)"
9191
last_commit_message=$(git log --oneline --format=%B -n 1 HEAD | head -n 1)
9292
invokator_pr_number_from_graphql="$(get_invokator_pr_number_from_graphql)"
93-
if ! [ -z "$CIRCLE_PULL_REQUEST" ]; then
94-
echo "${CIRCLE_PULL_REQUEST##*/}"
95-
elif [ "$invokator_pr_number_from_graphql" != 'null' ]; then
93+
if [ "$invokator_pr_number_from_graphql" != 'null' ]; then
9694
echo "$invokator_pr_number_from_graphql"
95+
elif [ -n "$CIRCLE_PULL_REQUEST" ]; then
96+
echo "${CIRCLE_PULL_REQUEST##*/}"
9797
elif [[ $last_commit_message =~ $commit_msg_regex ]]; then
9898
echo "${BASH_REMATCH[1]}"
9999
else
@@ -289,7 +289,7 @@ EOF
289289
customize_pr() {
290290
# Wait for Github to open the PR
291291
sleep 10
292-
292+
293293
data_repo_pr_number=$1
294294
curl -H "$auth_header" -X PATCH --data "$(pr_input_assignees_and_labels)" "https://api.github.com/repos/$org/$data_repo/issues/$data_repo_pr_number"
295295
if [ $? -ne 0 ]; then

data/v2/csv/item_categories.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ id,pocket_id,identifier
4949
49,1,dynamax-crystals
5050
50,2,nature-mints
5151
51,1,curry-ingredients
52+
52,1,tera-shard
53+
53,1,sandwich-ingredients
54+
54,1,tm-materials
55+
55,1,picnic

0 commit comments

Comments
 (0)