Skip to content

Commit

Permalink
update(images/build-plugins): switch default branch to main for `pl…
Browse files Browse the repository at this point in the history
…ugins` repo

Signed-off-by: Leonardo Grasso <[email protected]>
  • Loading branch information
leogr authored and poiana committed Mar 28, 2024
1 parent 2aeb69c commit 4972151
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions images/build-plugins/on-registry-changed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
GH_PROXY="${GH_PROXY:-"http://ghproxy"}"
GH_ORG="${GH_ORG:-"falcosecurity"}"
GH_REPO="${GH_REPO:-"plugins"}"
GH_REPO_BRANCH="${GH_REPO_BRANCH:-"main"}"
GH_INDEX_REPO="${GH_INDEX_REPO:-"falcoctl"}"
GH_INDEX_REPO_BRANCH="${GH_INDEX_REPO_BRANCH:-"gh-pages"}"
BOT_NAME="${BOT_NAME:-"poiana"}"
Expand Down Expand Up @@ -79,13 +80,13 @@ create_pr() {
"https://${user}:$(cat "$1")@github.com/${GH_ORG}/${GH_REPO}" \
"HEAD:${branch}"

echo "> creating pull-request to merge ${user}:${branch} into master..." >&2
echo "> creating pull-request to merge ${user}:${branch} into ${GH_REPO_BRANCH}..." >&2
body=$'Updating README.md (automatically generated with build/registry). Made using the [build-plugins-on-registry-changed-postsubmit](https://github.com/falcosecurity/test-infra/blob/master/config/jobs/build-plugins/build-plugins.yaml) ProwJob. Do not edit this PR.\n\n/kind documentation\n\n/area documentation'

pr-creator \
--github-endpoint="${GH_PROXY}" \
--github-token-path="$1" \
--org="${GH_ORG}" --repo="${GH_REPO}" --branch=master \
--org="${GH_ORG}" --repo="${GH_REPO}" --branch="${GH_REPO_BRANCH}" \
--title="${title}" --match-title="${title}" \
--body="${body}" \
--local --source="${branch}" \
Expand Down

0 comments on commit 4972151

Please sign in to comment.