-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into cleanup-warnings
- Loading branch information
Showing
31 changed files
with
555 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Draft release pull request | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Select version bump" | ||
default: "minor" | ||
type: choice | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
- alpha | ||
- beta | ||
- preview | ||
- dev | ||
|
||
jobs: | ||
generate-changelog: | ||
name: Create a PR to update version and release notes | ||
runs-on: sfdc-ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
cache: pip | ||
- name: Install build tool | ||
run: python -m pip install hatch | ||
- name: Bump version | ||
run: hatch version $VERSION | ||
env: | ||
VERSION: ${{ inputs.version }} | ||
- name: Generate release notes | ||
id: changelog | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
PREVIOUS_VERSION=$(gh release view --json tagName --jq .tagName) | ||
NEXT_VERSION="v$(hatch version)" | ||
echo "## $NEXT_VERSION ($(date -I))" > changelog.md | ||
gh api \ | ||
--method POST \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
/repos/SFDO-Tooling/CumulusCI/releases/generate-notes \ | ||
-f previous_tag_name=$PREVIOUS_VERSION \ | ||
-f target_commitish='main' \ | ||
-f tag_name=$NEXT_VERSION \ | ||
--jq '.body' | | ||
sed -e 's_\(https.*\/\)\([0-9]*\)$_[#\2](\1\2)_' \ | ||
-e 's_by @\(.*\) in_by [@\1](https://github.com/\1) in_' >> changelog.md | ||
python utility/update-history.py | ||
- name: Commit changes | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git switch -c "release-$(hatch version)" | ||
git add docs/history.md cumulusci/__about__.py | ||
git commit -m "Update changelog (automated)" | ||
git push origin "release-$(hatch version)" | ||
- name: Commit changes and open PR | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh pr create --title "Release v$(hatch version)" --fill --label 'auto-pr' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,83 @@ | ||
*.py[cod] | ||
.*.swp | ||
.*.swo | ||
venv/ | ||
# OS cruft | ||
.DS_Store | ||
cli/help.txt | ||
cli/help.md | ||
cli/help_clean.md | ||
.swp | ||
pybuild | ||
cumulusci.egg-info | ||
build/ | ||
dist/ | ||
|
||
# CumulusCI config and output | ||
.cci | ||
docs/api/ | ||
docs/_build/ | ||
docs/tasks.rst | ||
docs/flows.rst | ||
.eggs/ | ||
.idea/ | ||
.tox/ | ||
tags | ||
.vscode/ | ||
github_release_notes.html | ||
tmp | ||
|
||
# Distribution / packaging | ||
*.egg | ||
*.egg-info/ | ||
.Python | ||
.installed.cfg | ||
develop-eggs/ | ||
dist/ | ||
eggs/ | ||
env/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
pip-wheel-metadata | ||
sdist/ | ||
var/ | ||
|
||
# Miscellaneous Python cruft | ||
.pdbrc | ||
.pdbrc.py | ||
.python-version | ||
venv/ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*.pkl | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
.cache/ | ||
.coverage | ||
.coverage.* | ||
.python-version | ||
robot/CumulusCI/results/ | ||
*.webm | ||
playwright-log.txt | ||
.mypy_cache/ | ||
.pytest_cache/ | ||
.tox/ | ||
cov.xml | ||
htmlcov/ | ||
large_cassettes/ | ||
.noseids | ||
nosetests.xml | ||
pytestdebug.log | ||
results_junit.xml | ||
test_results.json | ||
log.html | ||
report.html | ||
output.xml | ||
|
||
# Robot | ||
*.webm | ||
.pabotsuitenames | ||
geckodriver*.log | ||
pabot_results/ | ||
playwright-log.txt | ||
robot/CumulusCI/results/ | ||
|
||
# Salesforce | ||
**/.sfdx | ||
htmlcov/ | ||
.pytest_cache/ | ||
pip-wheel-metadata | ||
.mypy_cache/ | ||
/docs/_build | ||
.sf | ||
|
||
# direnv | ||
.direnv | ||
.envrc | ||
|
||
# Editors | ||
*~ | ||
.cci | ||
results_junit.xml | ||
test_results.json | ||
pabot_results/ | ||
.pabotsuitenames | ||
large_cassettes/ | ||
github_release_notes.html | ||
tmp | ||
pytestdebug.log | ||
.*.swp | ||
.*.swo | ||
.vscode/ | ||
.idea/ | ||
tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See docs/contributing.md |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "3.78.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.