-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding labels based on downstreams created #1149
Conversation
@@ -51,6 +52,7 @@ if [ "$BRANCH_NAME" = "$ORIGINAL_PR_BRANCH" ]; then | |||
git checkout -b "$BRANCH_NAME" | |||
if TF_PR=$(hub pull-request -b "$TERRAFORM_REPO_USER/$PROVIDER_NAME:master" -F ./downstream_body); then | |||
DEPENDENCIES="${DEPENDENCIES}depends: $TF_PR ${NEWLINE}" | |||
LABELS="${LABELS}${PROVIDER_NAME}," |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$PROVIDER_NAME
is terraform-provider-google-beta
- you want $SUBMODULE_DIR
, which is google-beta
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we want the label to be "terraform-provider-google-beta" and not "google-beta"?
.ci/magic-modules/create-pr.sh
Outdated
@@ -112,6 +117,13 @@ $DEPENDENCIES | |||
EOF | |||
fi | |||
|
|||
# Create Labels list with the comma-separated list of labels for this PR | |||
if [ -z "$LABELS" ]; then | |||
echo $LABELS > ./label_file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is going to produce an empty-string value at the end of the list, right? since the list will end with a comma and we parse it with .split(',')
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated it to follow the cat/EOF model you did for pr comments. Does this look better?
I am a robot that works on MagicModules PRs! Once this PR is approved, you can feel free to merge it without taking any further steps. |
655f7b0
to
78e7500
Compare
I am a robot that works on MagicModules PRs! Once this PR is approved, you can feel free to merge it without taking any further steps. |
@ndmckinley I finally figured out how to Bash, so take a look |
Huh, does that work better? Basically I'm asking "won't this add an empty-string label to every PR?" and if the answer is no, I've misread it, go ahead and submit! :) |
78e7500
to
d2d90c7
Compare
I am a robot that works on MagicModules PRs! Once this PR is approved, you can feel free to merge it without taking any further steps. |
1 similar comment
I am a robot that works on MagicModules PRs! Once this PR is approved, you can feel free to merge it without taking any further steps. |
c5b6319
to
6c6f9c2
Compare
I am a robot that works on MagicModules PRs! Once this PR is approved, you can feel free to merge it without taking any further steps. |
6c6f9c2
to
44ef507
Compare
I am a robot that works on MagicModules PRs! Once this PR is approved, you can feel free to merge it without taking any further steps. |
44ef507
to
32c01c0
Compare
I am a robot that works on MagicModules PRs! Once this PR is approved, you can feel free to merge it without taking any further steps. |
32c01c0
to
94351ec
Compare
I am a robot that works on MagicModules PRs! Once this PR is approved, you can feel free to merge it without taking any further steps. |
94351ec
to
032ac75
Compare
I am a robot that works on MagicModules PRs! Once this PR is approved, you can feel free to merge it without taking any further steps. |
6220aee
to
55876df
Compare
I am a robot that works on MagicModules PRs! I built this PR into one or more PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
55876df
to
ff5d5b0
Compare
This fixes #124 and will help us build great changelogs for Ansible
[all]
[terraform]
[terraform-beta]
[ansible]
[inspec]