Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into releases/v2 #1046

Merged
merged 41 commits into from
Apr 27, 2022
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
9885f86
Re-enable waiting for processing by default, using the new API semant…
chrisgavin Mar 30, 2022
792bbfe
Update changelog and version after v2.1.8
invalid-email-address Apr 8, 2022
0c80741
Update checked-in dependencies
invalid-email-address Apr 8, 2022
2d80fe8
Merge pull request #1029 from github/mergeback/v2.1.8-to-main-1ed14374
edoardopirovano Apr 8, 2022
b0c570e
autobuild: add working-directory input
cklin Apr 8, 2022
6f17408
Add autobuild workind-directory test
cklin Apr 8, 2022
baf90d1
Merge pull request #1024 from cklin/autobuild-working-dir
cklin Apr 8, 2022
780f4ee
Add codeql-python as CODEOWNERS
RasmusWL Apr 12, 2022
9f20add
Update CODEOWNERS
RasmusWL Apr 12, 2022
7a12645
Merge pull request #1030 from github/RasmusWL/pyton-setup-codeowners
henrymercer Apr 12, 2022
e7869d5
Merge main into wait-for-processing-2.
chrisgavin Apr 14, 2022
c5c5bda
Merge pull request #1007 from github/wait-for-processing-2
chrisgavin Apr 14, 2022
f6312f1
Commit any conflicts during v1 backport to simplify release process
henrymercer Apr 13, 2022
b3bf557
Merge branch 'main' into henrymercer/handle-merge-conflicts-in-releases
henrymercer Apr 14, 2022
bac9320
Update description of "Tag release and merge back" workflow
henrymercer Apr 12, 2022
fce4a01
Update the major version tag within the release process
henrymercer Apr 12, 2022
bce749b
Improve consistency of variable references in Bash
henrymercer Apr 12, 2022
9daf1de
Update references to release branches
henrymercer Apr 12, 2022
3962f1b
Bump glob from 7.1.7 to 8.0.1
dependabot[bot] Apr 14, 2022
0ba58d8
Update checked-in dependencies
invalid-email-address Apr 14, 2022
8b2f5d7
Merge pull request #1034 from github/dependabot/npm_and_yarn/glob-8.0.1
henrymercer Apr 14, 2022
faf9d4b
Merge branch 'main' into henrymercer/use-tags-for-releases
henrymercer Apr 14, 2022
5b5ed44
Add a PR check to check for conflict markers
henrymercer Apr 14, 2022
808c292
Support Pipfile without Pipfile.lock
kojiromike Apr 8, 2022
b9577df
python-setup: refactor Pipenv without lockfile
RasmusWL Apr 12, 2022
e6e3277
Merge pull request #1026 from kojiromike/patch-1
aeisenberg Apr 18, 2022
23b7196
Bump default CodeQL version to 2.9.0
hmakholm Apr 21, 2022
e87e2d8
Merge branch 'main' into henrymercer/use-tags-for-releases
henrymercer Apr 25, 2022
ce63ab5
Merge pull request #1033 from github/henrymercer/use-tags-for-releases
henrymercer Apr 25, 2022
074853a
Suggest resolving conflicts by adding new commits vs amending the mer…
henrymercer Apr 25, 2022
2b8fdb3
Merge branch 'main' into henrymercer/handle-merge-conflicts-in-releases
henrymercer Apr 25, 2022
80771fd
Merge branch 'main' into hmakholm/pr/2.9.0
hmakholm Apr 26, 2022
95b49c3
Merge pull request #1038 from github/hmakholm/pr/2.9.0
hmakholm Apr 26, 2022
d2d14ad
Merge branch 'main' into henrymercer/handle-merge-conflicts-in-releases
henrymercer Apr 26, 2022
bf4ba69
README: Replace git.io shortlink with full link
adityasharad Apr 26, 2022
c76f0b5
Merge pull request #1032 from github/henrymercer/handle-merge-conflic…
henrymercer Apr 26, 2022
eed184a
Merge branch 'main' into adityasharad/readme/replace-git-io
henrymercer Apr 26, 2022
ff8b365
Merge pull request #1044 from github/adityasharad/readme/replace-git-io
henrymercer Apr 26, 2022
6dd9baf
Fix status reporting error on Windows
cklin Apr 25, 2022
7286114
Merge pull request #1042 from cklin/windows-status-report-error
cklin Apr 26, 2022
cbce00d
Update changelog for v2.1.9
invalid-email-address Apr 27, 2022
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
Prev Previous commit
Next Next commit
Improve consistency of variable references in Bash
  • Loading branch information
henrymercer committed Apr 14, 2022
commit bce749b10f3bd8b6b463c7753915deeac5158bba
44 changes: 22 additions & 22 deletions .github/workflows/post-release-mergeback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: '${{ toJson(github) }}'
run: echo "$GITHUB_CONTEXT"
run: echo "${GITHUB_CONTEXT}"

- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -47,39 +47,39 @@ jobs:
id: getVersion
run: |
VERSION="v$(jq '.version' -r 'package.json')"
SHORT_SHA="${GITHUB_SHA:0:8}"
echo "::set-output name=version::$VERSION"
NEW_BRANCH="mergeback/${VERSION}-to-${BASE_BRANCH}-${SHORT_SHA}"
echo "::set-output name=newBranch::$NEW_BRANCH"
echo "::set-output name=version::${VERSION}"
short_sha="${GITHUB_SHA:0:8}"
NEW_BRANCH="mergeback/${VERSION}-to-${BASE_BRANCH}-${short_sha}"
echo "::set-output name=newBranch::${NEW_BRANCH}"


- name: Dump branches
env:
NEW_BRANCH: "${{ steps.getVersion.outputs.newBranch }}"
run: |
echo "BASE_BRANCH $BASE_BRANCH"
echo "HEAD_BRANCH $HEAD_BRANCH"
echo "NEW_BRANCH $NEW_BRANCH"
echo "BASE_BRANCH ${BASE_BRANCH}"
echo "HEAD_BRANCH ${HEAD_BRANCH}"
echo "NEW_BRANCH ${NEW_BRANCH}"

- name: Create mergeback branch
env:
NEW_BRANCH: "${{ steps.getVersion.outputs.newBranch }}"
run: |
git checkout -b "$NEW_BRANCH"
git checkout -b "${NEW_BRANCH}"

- name: Check for tag
id: check
env:
VERSION: "${{ steps.getVersion.outputs.version }}"
run: |
set +e # don't fail on an errored command
git ls-remote --tags origin | grep "$VERSION"
EXISTS="$?"
if [ "$EXISTS" -eq 0 ]; then
echo "Tag $TAG exists. Not going to re-release."
git ls-remote --tags origin | grep "${VERSION}"
exists="$?"
if [ "${exists}" -eq 0 ]; then
echo "Tag ${VERSION} exists. Not going to re-release."
echo "::set-output name=exists::true"
else
echo "Tag $TAG does not exist yet."
echo "Tag ${VERSION} does not exist yet."
fi

# we didn't tag the release during the update-release-branch workflow because the
Expand Down Expand Up @@ -113,25 +113,25 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
set -exu
PR_TITLE="Mergeback $VERSION $HEAD_BRANCH into $BASE_BRANCH"
PR_BODY="Updates version and changelog."
pr_title="Mergeback ${VERSION} ${HEAD_BRANCH} into ${BASE_BRANCH}"
pr_body="Updates version and changelog."

# Update the version number ready for the next release
npm version patch --no-git-tag-version

# Update the changelog
perl -i -pe 's/^/## \[UNRELEASED\]\n\nNo user facing changes.\n\n/ if($.==3)' CHANGELOG.md
git add .
git commit -m "Update changelog and version after $VERSION"
git commit -m "Update changelog and version after ${VERSION}"

git push origin "$NEW_BRANCH"
git push origin "${NEW_BRANCH}"

# PR checks won't be triggered on PRs created by Actions. Therefore mark the PR as draft
# so that a maintainer can take the PR out of draft, thereby triggering the PR checks.
gh pr create \
--head "$NEW_BRANCH" \
--base "$BASE_BRANCH" \
--title "$PR_TITLE" \
--head "${NEW_BRANCH}" \
--base "${BASE_BRANCH}" \
--title "${pr_title}" \
--label "Update dependencies" \
--body "$PR_BODY" \
--body "${pr_body}" \
--draft