Skip to content

Commit

Permalink
Add release PR generator
Browse files Browse the repository at this point in the history
  • Loading branch information
chloeandmargaret committed Sep 15, 2022
1 parent 754505c commit 2c9224c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions dev/release/file_release_pr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# Usage:
# BRANCH=<BRANCH> GITHUB_USERNAME=<USERNAME> GITHUB_TOKEN=<TOKEN> ./update_change_log.sh

set -x

FUTURE_RELEASE="23.0.0"
ISSUE_NUMBER=2665

TITLE="Update version to \`$FUTURE_RELEASE\` and update \`CHANGELOG\`"
BODY="# Which issue does this PR close?\n\nCloses #$ISSUE_NUMBER.\n\n# Rationale for this change\nPrepare for biweekly release\n\n# What changes are included in this PR?\n\n# Are there any user-facing changes?\nYes"
DATA="{\"title\":\"$TITLE\", \"body\":\"$BODY\", \"head\":\"$GITHUB_USERNAME:$BRANCH\",\"base\":\"master\"}"

# Create the pull request
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
https://api.github.com/repos/apache/arrow-rs/pulls \
-d "$DATA"

0 comments on commit 2c9224c

Please sign in to comment.