@thegpvc/gp-foundry 0.2.4 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -198,6 +198,23 @@ runs:
|
|
|
198
198
|
git commit -m "$COMMIT_MSG"
|
|
199
199
|
fi
|
|
200
200
|
|
|
201
|
+
- name: Resolve push branch
|
|
202
|
+
id: pushbranch
|
|
203
|
+
shell: bash
|
|
204
|
+
env:
|
|
205
|
+
INPUT_BRANCH: ${{ inputs.branch }}
|
|
206
|
+
run: |
|
|
207
|
+
# The workflow pre-creates and checks out INPUT_BRANCH, but an agent may
|
|
208
|
+
# have run `git checkout -b` onto a branch of its own and committed there.
|
|
209
|
+
# Push and PR must follow the branch that actually holds the commits
|
|
210
|
+
# (HEAD) — otherwise we push an empty INPUT_BRANCH and open a PR with no
|
|
211
|
+
# diff (#12566). Fall back to the input when HEAD is detached.
|
|
212
|
+
CURRENT="$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo HEAD)"
|
|
213
|
+
if [ "$CURRENT" = "HEAD" ] || [ -z "$CURRENT" ]; then
|
|
214
|
+
CURRENT="$INPUT_BRANCH"
|
|
215
|
+
fi
|
|
216
|
+
echo "branch=$CURRENT" >> "$GITHUB_OUTPUT"
|
|
217
|
+
|
|
201
218
|
- name: Check for changes
|
|
202
219
|
id: check
|
|
203
220
|
shell: bash
|
|
@@ -218,7 +235,7 @@ runs:
|
|
|
218
235
|
COMMENT_BODY: ${{ inputs.no-changes-comment }}
|
|
219
236
|
COMMENT_TARGET: ${{ inputs.comment-target }}
|
|
220
237
|
ISSUE_NUMBER: ${{ inputs.issue-number }}
|
|
221
|
-
BRANCH: ${{
|
|
238
|
+
BRANCH: ${{ steps.pushbranch.outputs.branch }}
|
|
222
239
|
run: |
|
|
223
240
|
if [ "$COMMENT_TARGET" = "issue" ] && [ -n "$ISSUE_NUMBER" ]; then
|
|
224
241
|
gh issue comment "$ISSUE_NUMBER" --body "$COMMENT_BODY"
|
|
@@ -234,7 +251,7 @@ runs:
|
|
|
234
251
|
shell: bash
|
|
235
252
|
env:
|
|
236
253
|
GH_TOKEN: ${{ inputs.token }}
|
|
237
|
-
BRANCH: ${{
|
|
254
|
+
BRANCH: ${{ steps.pushbranch.outputs.branch }}
|
|
238
255
|
run: |
|
|
239
256
|
git push origin "$BRANCH"
|
|
240
257
|
|
|
@@ -246,7 +263,7 @@ runs:
|
|
|
246
263
|
PR_TITLE: ${{ inputs.pr-title }}
|
|
247
264
|
PR_BODY: ${{ inputs.pr-body }}
|
|
248
265
|
PR_LABEL: ${{ inputs.pr-label }}
|
|
249
|
-
BRANCH: ${{
|
|
266
|
+
BRANCH: ${{ steps.pushbranch.outputs.branch }}
|
|
250
267
|
BASE_BRANCH: ${{ inputs.base-branch }}
|
|
251
268
|
AGENT_NAME: ${{ inputs.agent-name }}
|
|
252
269
|
ISSUE_NUMBER: ${{ inputs.issue-number }}
|
|
@@ -119,6 +119,17 @@ requiredChecks: # must be PRESENT and green on the head
|
|
|
119
119
|
labels:
|
|
120
120
|
needsHuman: "needs-human"
|
|
121
121
|
rebaseNeeded: "rebase-needed"
|
|
122
|
+
awaitingApproval: "awaiting-approval" # optional: label a ready-but-unapproved PR
|
|
123
|
+
# instead of skipping it silently. Must NOT
|
|
124
|
+
# be in blockingLabels; removed on approval.
|
|
125
|
+
|
|
126
|
+
# Dependabot lane (optional). PRs authored by `dependabot[bot]` (verified by
|
|
127
|
+
# author, not branch name) are scored separately: no human approval, but only
|
|
128
|
+
# the listed semver levels auto-merge, and only with green CI and no protected
|
|
129
|
+
# paths. Major / unparseable / failing / protected-path updates get needsHuman.
|
|
130
|
+
# Omit the block to leave dependabot PRs untouched.
|
|
131
|
+
dependabot:
|
|
132
|
+
autoMerge: ["patch", "minor"]
|
|
122
133
|
|
|
123
134
|
# who may approve (see "Who can approve"):
|
|
124
135
|
botLogin: "my-agent[bot]"
|