Comply with Policy for AI Generated Content
While probably not meeting most people's definition of artificial intelligence these scripts do create patches. The OpenInfra Policy for AI Generated Content recommends to: > Add a "Generated-By:" label to the commit message, and explain in > comments or the commit message any prompts or background context > the reviewers might need to fully understand the change and how > much of the change was generated by the tool. Even though it also has a carve-out for these sorts of scripts: > The exception to the rule is that we do allow submissions from > well documented automated processes, such as release tooling or > for internationalization updates. https://openinfra.org/legal/ai-policy Nevertheless, documenting within the commit message the location of the script which was used to generate that contribution is helpful for a number of obvious reasons. Let's do it anyway, even though it's not technically required. Change-Id: Id798bba638543cf8e9573c10e85495e7cc436237
This commit is contained in:
@@ -101,7 +101,8 @@ for team in "${!files_by_team_release[@]}" ; do
|
|||||||
git add ${files_by_team_release[$team]}
|
git add ${files_by_team_release[$team]}
|
||||||
git commit -s\
|
git commit -s\
|
||||||
-m "[$team] $subject" \
|
-m "[$team] $subject" \
|
||||||
-m "$body"
|
-m "$body" \
|
||||||
|
--trailer="Generated-By:openstack/releases:tools/bulk_review.sh"
|
||||||
|
|
||||||
git stash
|
git stash
|
||||||
git checkout master
|
git checkout master
|
||||||
|
@@ -75,7 +75,8 @@ function update_gitreview {
|
|||||||
defaultbranch=$branch"
|
defaultbranch=$branch"
|
||||||
echo "$grcontents" > .gitreview
|
echo "$grcontents" > .gitreview
|
||||||
git add .gitreview
|
git add .gitreview
|
||||||
git commit -s -m "Update .gitreview for $branch"
|
git commit -s -m "Update .gitreview for $branch" \
|
||||||
|
--trailer="Generated-By:openstack/releases:tools/functions"
|
||||||
git show
|
git show
|
||||||
local shortbranch=$(basename $branch)
|
local shortbranch=$(basename $branch)
|
||||||
git review -t "create-${shortbranch}"
|
git review -t "create-${shortbranch}"
|
||||||
@@ -93,7 +94,8 @@ function update_upper_constraints {
|
|||||||
sed -i~ -e "s,-c.*{\(env:UPPER_CONSTRAINTS_FILE\)[^ ]*},-c{\1:$uc_url}," tox.ini
|
sed -i~ -e "s,-c.*{\(env:UPPER_CONSTRAINTS_FILE\)[^ ]*},-c{\1:$uc_url}," tox.ini
|
||||||
if ! git diff --exit-code >/dev/null 2>&1 ; then
|
if ! git diff --exit-code >/dev/null 2>&1 ; then
|
||||||
git add tox.ini
|
git add tox.ini
|
||||||
git commit -s -m "Update UPPER_CONSTRAINTS_FILE for $branch"
|
git commit -s -m "Update UPPER_CONSTRAINTS_FILE for $branch" \
|
||||||
|
--trailer="Generated-By:openstack/releases:tools/functions"
|
||||||
git show
|
git show
|
||||||
local shortbranch=$(basename $branch)
|
local shortbranch=$(basename $branch)
|
||||||
git review -t "create-${shortbranch}"
|
git review -t "create-${shortbranch}"
|
||||||
|
@@ -154,7 +154,8 @@ $(git log --oneline --no-merges ${prev_tag}..${end_sha})
|
|||||||
done
|
done
|
||||||
git add .
|
git add .
|
||||||
message="${commit//PROJECT/$repo}${change_list}"
|
message="${commit//PROJECT/$repo}${change_list}"
|
||||||
git commit -s -m "$message"
|
git commit -s -m "$message" \
|
||||||
|
--trailer="Generated-By:openstack/releases:tools/process_auto_releases.sh"
|
||||||
git log -1
|
git log -1
|
||||||
git review -t $topic
|
git review -t $topic
|
||||||
git reset --hard HEAD~1 > /dev/null
|
git reset --hard HEAD~1 > /dev/null
|
||||||
|
Reference in New Issue
Block a user