You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create PR from tag backmerge branch to develop (or reuse if exists)
67
+
run: |
68
+
set -euo pipefail
69
+
70
+
TITLE="Backmerge: ${{ steps.vars.outputs.tag }} into develop"
71
+
72
+
BODY="⚠️ This PR is created automatically for backmerge of a new release tag commit \`${{ steps.vars.outputs.tag }}\` into \`develop\`.
73
+
74
+
It is labeled '[maintainer] auto-pull-request' and is excluded from release notes and version bump logic."
75
+
76
+
if gh pr view --repo "${{ github.repository }}" --head "${{ steps.vars.outputs.branch }}" >/dev/null 2>&1; then
77
+
echo "PR already exists for head=${{ steps.vars.outputs.branch }}"
78
+
else
79
+
gh pr create \
80
+
--repo "${{ github.repository }}" \
81
+
--base develop \
82
+
--head "${{ steps.vars.outputs.branch }}" \
83
+
--title "$TITLE" \
84
+
--label "[maintainer] auto-pull-request" \
85
+
--body "$BODY"
86
+
fi
87
+
env:
88
+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
32
89
33
-
- name: Create PR from ${{ env.DEFAULT_BRANCH }} to develop
90
+
- name: Enable auto-merge using MERGE COMMIT
34
91
run: |
35
-
gh pr create \
36
-
--base develop \
37
-
--head ${{ env.DEFAULT_BRANCH }} \
38
-
--title "Backmerge: ${{ env.DEFAULT_BRANCH }} into develop" \
39
-
--label "[maintainer] auto-pull-request" \
40
-
--body "⚠️ This PR is created automatically for backmerges changes from \`${{ env.DEFAULT_BRANCH }}\` into \`develop\`, following a new release tag push.
41
-
42
-
It is labeled \`[maintainer] auto-pull-request\` and is excluded from release notes and version bump logic."
pixi run interrogate -c pyproject.toml --fail-under=0 ../worktree-$BRANCH/src > reports/$BRANCH/coverage-docstring.txt
59
+
pixi run interrogate -c pyproject.toml --fail-under=0 ../$BRANCH/src > reports/$BRANCH/coverage-docstring.txt
58
60
echo "Cyclomatic complexity for branch $BRANCH"
59
-
pixi run radon cc -s -j ../worktree-$BRANCH/src --exclude ../worktree-$BRANCH/src/easydiffraction/crystallography/space_group_lookup_table.py > reports/$BRANCH/cyclomatic-complexity.json
61
+
pixi run radon cc -s -j ../$BRANCH/src > reports/$BRANCH/cyclomatic-complexity.json
60
62
echo "Maintainability index for branch $BRANCH"
61
-
pixi run radon mi -j ../worktree-$BRANCH/src --exclude ../worktree-$BRANCH/src/easydiffraction/crystallography/space_group_lookup_table.py > reports/$BRANCH/maintainability-index.json
63
+
pixi run radon mi -j ../$BRANCH/src > reports/$BRANCH/maintainability-index.json
62
64
echo "Raw metrics for branch $BRANCH"
63
-
pixi run radon raw -s -j ../worktree-$BRANCH/src --exclude ../worktree-$BRANCH/src/easydiffraction/crystallography/space_group_lookup_table.py > reports/$BRANCH/raw-metrics.json
65
+
pixi run radon raw -s -j ../$BRANCH/src > reports/$BRANCH/raw-metrics.json
0 commit comments