Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
defe5e7
chore: convert create-pr steps into composite action
heitorlessa May 11, 2023
b36dea7
chore(ci): changelog to use new create-pr action
heitorlessa May 11, 2023
2ca2f0e
chore(ci): revert changelog to trigger on push
heitorlessa May 11, 2023
3905a4c
chore: document custom action
heitorlessa May 11, 2023
0d53e16
chore: add support for any target branch
heitorlessa May 11, 2023
e391610
chore: create a PR to bump version after release
heitorlessa May 11, 2023
5347f64
chore: write permission is no longer necessary
heitorlessa May 11, 2023
5e0dc37
chore: propagate permissions
heitorlessa May 11, 2023
e9eae01
chore: support pulling from a branch or sha
heitorlessa May 11, 2023
589d30e
chore: remove docs publishing from layer deploy workflow
heitorlessa May 11, 2023
6d069ab
chore: create PR with layer arn updates
heitorlessa May 11, 2023
4550c93
chore: remove now redundant update_v2_layer_arn_docs workflow
heitorlessa May 11, 2023
2a220f1
chore: remove changelog from release
heitorlessa May 11, 2023
1a448ab
chore: update changelog to include new release version
heitorlessa May 11, 2023
44eefa7
chore: update release process
heitorlessa May 11, 2023
cd9d6e6
Merge branch 'develop' into chore/update-layer-arn-pr
heitorlessa May 12, 2023
c994f71
chore: address leandro's feedback
heitorlessa May 12, 2023
cab279a
chore: address leandro's feedback
heitorlessa May 12, 2023
1d2e94a
chore(ci): add skip-changelog label in PRs
heitorlessa May 12, 2023
202fd6c
chore(ci): new job to create git tag as part of release
heitorlessa May 12, 2023
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore(ci): add skip-changelog label in PRs
Signed-off-by: heitorlessa <lessa@amazon.co.uk>
  • Loading branch information
heitorlessa committed May 12, 2023
commit 1d2e94afe289809f357edbf17a0e128df29caa46
7 changes: 5 additions & 2 deletions .github/actions/create-pr/create_pr_for_staged_changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -uo pipefail # prevent accessing unset env vars, prevent masking pipeline er

#docs
#title :create_pr_for_staged_changes.sh
#description :This script will create a PR for staged changes, detect and close duplicate PRs.
#description :This script will create a PR for staged changes, detect and close duplicate PRs. All PRs will be omitted from Release Notes and Changelogs
#author :@heitorlessa
#date :May 8th 2023
#version :0.1
Expand Down Expand Up @@ -61,6 +61,8 @@ function set_environment_variables() {
export readonly PR_BODY="This is an automated PR created from the following workflow"
export readonly FILENAME=".github/scripts/$(basename "$0")"
export readonly NO_DUPLICATES_MESSAGE="No duplicated PRs found"
export readonly SKIP_LABEL="skip-changelog"

end_span
}

Expand All @@ -86,7 +88,8 @@ function create_temporary_branch_with_changes() {

function create_pr() {
start_span "Creating PR against ${TEMP_BRANCH} branch"
NEW_PR_URL=$(gh pr create --title "${PR_TITLE}" --body "${PR_BODY}: ${WORKFLOW_URL}" --base "${BASE_BRANCH}" || error "Failed to create PR") # e.g, https://github.com/awslabs/aws-lambda-powertools/pull/13
# TODO: create label
NEW_PR_URL=$(gh pr create --title "${PR_TITLE}" --body "${PR_BODY}: ${WORKFLOW_URL}" --base "${BASE_BRANCH}" --label "${SKIP_LABEL}" || error "Failed to create PR") # e.g, https://github.com/awslabs/aws-lambda-powertools/pull/13

# greedy remove any string until the last URL path, including the last '/'. https://opensource.com/article/17/6/bash-parameter-expansion
debug "Extracing PR Number from PR URL: "${NEW_PR_URL}""
Expand Down