Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
80c2ace
chore: Modified bug issue template to add checkbox to report potentia…
ashishdhingra Sep 5, 2024
969aa52
Add support configuring logging for Lambda functions
normj Oct 9, 2024
2e5f84b
Update RELEASE.CHANGELOG.md
normj Oct 9, 2024
6da5f67
ci: create release PRs using autover
philasmar Oct 27, 2024
58dc6bc
Merge pull request #339 from aws/master
philasmar Oct 31, 2024
5c8d1dc
Fixed an issue where primitive values in payload for InvokeFunctionCo…
ashishdhingra Oct 30, 2024
5a717b2
Add support for enabling SnapStart with deploy-function and update-fu…
ppittle Nov 2, 2024
e71762b
Release 2024-11-01
aws-sdk-dotnet-automation Nov 1, 2024
1b144c3
Updated changelog
aws-sdk-dotnet-automation Nov 1, 2024
71d4a6a
Fixed issue detecting if log parameters have changed since previous d…
normj Nov 6, 2024
b816201
Merge branch 'feature/snapstart' of https://github.com/aws/private-aw…
normj Nov 6, 2024
642bfa2
Fixed ApplySettingsTest.SetLoggingPropertiesForUpdateRequest test for…
ashishdhingra Nov 6, 2024
403457e
fix: fixed an issue causing lambda package to hang in CI/CD
philasmar Nov 8, 2024
6f44e64
release_2024-11-08
aws-sdk-dotnet-automation Nov 8, 2024
21a1bec
Updated changelog
aws-sdk-dotnet-automation Nov 8, 2024
0be5246
Version bump Amazon.Lambda.Tools to 5.12.0
normj Nov 18, 2024
7e156ef
Merge branch 'feature/snapstart'
normj Nov 18, 2024
21166cb
Update warning for ARM and AMD architectures on Amazon Linux (#347)
GarrettBeatty Nov 20, 2024
b8b53d1
Use MSBuild to find target framework (#348)
GarrettBeatty Nov 26, 2024
71b82fc
Release 2024-11-26 (#350)
aws-sdk-dotnet-automation Nov 27, 2024
8b8b49d
chore: add workflow to check if change file is included in a PR
philasmar Dec 5, 2024
5c1e258
Include user specified MSBuild parameters when evaluating MSBuild pro…
normj Dec 16, 2024
832851c
Release 2024-12-16 (#354)
aws-sdk-dotnet-automation Dec 16, 2024
2c711df
Fix MSBuild property evaluation (#355)
martincostello Dec 19, 2024
75bf1a6
Add change file for PR https://github.com/aws/aws-extensions-for-dotn…
normj Dec 19, 2024
fa1385e
Release 2024-12-19 (#357)
aws-sdk-dotnet-automation Dec 19, 2024
b17ea62
Added logic to handle extraneous double-quotes around value for --msb…
ashishdhingra Jan 8, 2025
42720d4
release_2025-01-10
aws-sdk-dotnet-automation Jan 10, 2025
b2735be
Updated changelog
aws-sdk-dotnet-automation Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .autover/autover.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"Projects": [
{
"Name": "Amazon.ECS.Tools",
"Path": "src/Amazon.ECS.Tools/Amazon.ECS.Tools.csproj"
},
{
"Name": "Amazon.ElasticBeanstalk.Tools",
"Path": "src/Amazon.ElasticBeanstalk.Tools/Amazon.ElasticBeanstalk.Tools.csproj"
},
{
"Name": "Amazon.Lambda.Tools",
"Path": "src/Amazon.Lambda.Tools/Amazon.Lambda.Tools.csproj"
}
],
"UseCommitsForChangelog": false,
"UseSameVersionForAllProjects": false,
"DefaultIncrementType": "Patch",
"ChangeFilesDetermineIncrementType": true
}
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ body:
description: What is the problem? A clear and concise description of the bug.
validations:
required: true
- type: checkboxes
id: regression
attributes:
label: Regression Issue
description: What is a regression? If it worked in a previous version but doesn't in the latest version, it's considered a regression. In this case, please provide specific version number in the report.
options:
- label: Select this option if this issue appears to be a regression.
required: false
- type: textarea
id: expected
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aws-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
pull_request:
branches:
- main
- master
- dev
- 'feature/**'

Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/change-file-in-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Change File Included in PR

on:
pull_request:
types: [opened, synchronize, reopened, labeled]

jobs:
check-files-in-directory:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Release Not Needed') && !contains(github.event.pull_request.labels.*.name, 'Release PR') }}
name: Change File Included in PR
runs-on: ubuntu-latest

steps:
- name: Checkout PR code
uses: actions/checkout@v3

- name: Get List of Changed Files
id: changed-files
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf #v45

- name: Check for Change File(s) in .autover/changes/
run: |
DIRECTORY=".autover/changes/"
if echo "${{ steps.changed-files.outputs.all_changed_files }}" | grep -q "$DIRECTORY"; then
echo "✅ One or more change files in '$DIRECTORY' are included in this PR."
else
echo "❌ No change files in '$DIRECTORY' are included in this PR."
echo "Refer to the 'Adding a change file to your contribution branch' section of https://github.com/aws/aws-extensions-for-dotnet-cli/blob/master/CONTRIBUTING.md"
exit 1
fi
101 changes: 101 additions & 0 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# This GitHub Workflow will create a new release branch that contains the updated C# project versions and changelog.
# The workflow will also create a PR that targets `dev` from the release branch.
name: Create Release PR

# This workflow is manually triggered when in preparation for a release. The workflow should be dispatched from the `dev` branch.
on:
workflow_dispatch:
inputs:
OVERRIDE_VERSION:
description: "Override Version"
type: string
required: false

permissions:
id-token: write

jobs:
release-pr:
name: Release PR
runs-on: ubuntu-latest

env:
INPUT_OVERRIDE_VERSION: ${{ github.event.inputs.OVERRIDE_VERSION }}

steps:
# Assume an AWS Role that provides access to the Access Token
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 #v4
with:
role-to-assume: ${{ secrets.RELEASE_WORKFLOW_ACCESS_TOKEN_ROLE_ARN }}
aws-region: us-west-2
# Retrieve the Access Token from Secrets Manager
- name: Retrieve secret from AWS Secrets Manager
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
secret-ids: |
AWS_SECRET, ${{ secrets.RELEASE_WORKFLOW_ACCESS_TOKEN_NAME }}
parse-json-secrets: true
# Checkout a full clone of the repo
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
token: ${{ env.AWS_SECRET_TOKEN }}
# Install .NET8 which is needed for AutoVer
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
# Install AutoVer to automate versioning and changelog creation
- name: Install AutoVer
run: dotnet tool install --global AutoVer --version 0.0.24
# Set up a git user to be able to run git commands later on
- name: Setup Git User
run: |
git config --global user.email "[email protected]"
git config --global user.name "aws-sdk-dotnet-automation"
# Create the release branch which will contain the version changes and updated changelog
- name: Create Release Branch
id: create-release-branch
run: |
branch=releases/next-release
git checkout -b $branch
echo "BRANCH=$branch" >> $GITHUB_OUTPUT
# Update the version of projects based on the change files
- name: Increment Version
run: autover version
if: env.INPUT_OVERRIDE_VERSION == ''
# Update the version of projects based on the override version
- name: Increment Version
run: autover version --use-version "$INPUT_OVERRIDE_VERSION"
if: env.INPUT_OVERRIDE_VERSION != ''
# Update the changelog based on the change files
- name: Update Changelog
run: autover changelog
# Push the release branch up as well as the created tag
- name: Push Changes
run: |
branch=${{ steps.create-release-branch.outputs.BRANCH }}
git push origin $branch
git push origin $branch --tags
# Get the release name that will be used to create a PR
- name: Read Release Name
id: read-release-name
run: |
version=$(autover changelog --release-name)
echo "VERSION=$version" >> $GITHUB_OUTPUT
# Get the changelog that will be used to create a PR
- name: Read Changelog
id: read-changelog
run: |
changelog=$(autover changelog --output-to-console)
echo "CHANGELOG<<EOF"$'\n'"$changelog"$'\n'EOF >> "$GITHUB_OUTPUT"
# Create the Release PR and label it
- name: Create Pull Request
env:
GITHUB_TOKEN: ${{ env.AWS_SECRET_TOKEN }}
run: |
pr_url="$(gh pr create --title "${{ steps.read-release-name.outputs.VERSION }}" --body "${{ steps.read-changelog.outputs.CHANGELOG }}" --base dev --head ${{ steps.create-release-branch.outputs.BRANCH }})"
gh label create "Release PR" --description "A Release PR that includes versioning and changelog changes" -c "#FF0000" -f
gh pr edit $pr_url --add-label "Release PR"
32 changes: 32 additions & 0 deletions .github/workflows/issue-regression-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Apply potential regression label on issues
name: issue-regression-label
on:
issues:
types: [opened, edited]
jobs:
add-regression-label:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Fetch template body
id: check_regression
uses: actions/github-script@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TEMPLATE_BODY: ${{ github.event.issue.body }}
with:
script: |
const regressionPattern = /\[x\] Select this option if this issue appears to be a regression\./i;
const template = `${process.env.TEMPLATE_BODY}`
const match = regressionPattern.test(template);
core.setOutput('is_regression', match);
- name: Manage regression label
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ "${{ steps.check_regression.outputs.is_regression }}" == "true" ]; then
gh issue edit ${{ github.event.issue.number }} --add-label "potential-regression" -R ${{ github.repository }}
else
gh issue edit ${{ github.event.issue.number }} --remove-label "potential-regression" -R ${{ github.repository }}
fi
Loading
Loading