@plainconceptsplatform/workflows 0.25.0 → 0.27.0

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.
@@ -68,11 +68,6 @@ runs:
68
68
 
69
69
  [ "$(jq -r '.state' <<<"$pr")" = "OPEN" ] || none "PR #$PR_NUMBER is not open"
70
70
 
71
- # Use GitHub's bot flag because App login formats differ across APIs.
72
- if [ "$(jq -r '.author.is_bot' <<<"$pr")" != "true" ]; then
73
- none "PR #$PR_NUMBER was authored by $(jq -r '.author.login' <<<"$pr"), a human."
74
- fi
75
-
76
71
  issue="$LINKED_ISSUE"
77
72
 
78
73
  if [ -z "$issue" ]; then
@@ -81,6 +81,8 @@ checkout:
81
81
  fetch: ["*"]
82
82
  fetch-depth: 0
83
83
 
84
+ permissions: read-all
85
+
84
86
  steps:
85
87
  - name: Check out the pull request branch
86
88
  env:
@@ -10,71 +10,92 @@ name: "All Work Router"
10
10
  run-name: >-
11
11
  ${{ github.event_name == 'issues'
12
12
  && github.event.action == 'opened'
13
- && format('Issue opened: {0} (#{1}) by {2}', github.event.issue.title, github.event.issue.number, github.actor)
13
+ && format('Event: Issue opened — #{0} {1} by {2}', github.event.issue.number, github.event.issue.title, github.actor)
14
14
  || github.event_name == 'issues'
15
15
  && github.event.label.name == 'bot-working'
16
16
  && contains(github.event.issue.labels.*.name, 'implement')
17
- && format('Working (Implement): {0} (#{1})', github.event.issue.title, github.event.issue.number)
17
+ && format('Agent: Implement — #{0} {1}', github.event.issue.number, github.event.issue.title)
18
18
  || github.event_name == 'issues'
19
19
  && github.event.label.name == 'bot-working'
20
20
  && contains(github.event.issue.labels.*.name, 'refine')
21
- && format('Working (Refine): {0} (#{1})', github.event.issue.title, github.event.issue.number)
21
+ && format('Agent: Refine — #{0} {1}', github.event.issue.number, github.event.issue.title)
22
22
  || github.event_name == 'issues'
23
23
  && github.event.label.name == 'bot-working'
24
24
  && contains(github.event.issue.labels.*.name, 'direct')
25
- && format('Working (Direct): {0} (#{1})', github.event.issue.title, github.event.issue.number)
25
+ && format('Working: Direct — #{0} {1}', github.event.issue.number, github.event.issue.title)
26
26
  || github.event_name == 'issues'
27
27
  && github.event.label.name == 'bot-working'
28
28
  && contains(github.event.issue.labels.*.name, 'triage')
29
- && format('Working (Triage): {0} (#{1})', github.event.issue.title, github.event.issue.number)
29
+ && format('Agent: Triage — #{0} {1}', github.event.issue.number, github.event.issue.title)
30
30
  || github.event_name == 'issues'
31
31
  && github.event.label.name == 'bot-working'
32
- && format('Working: {0} (#{1})', github.event.issue.title, github.event.issue.number)
32
+ && format('Working: #{0} {1}', github.event.issue.number, github.event.issue.title)
33
33
  || github.event_name == 'issues'
34
34
  && github.event.label.name == 'implement'
35
35
  && endsWith(github.actor, '[bot]')
36
- && format('Working (Implement): {0} (#{1})', github.event.issue.title, github.event.issue.number)
36
+ && format('Agent: Implement — #{0} {1}', github.event.issue.number, github.event.issue.title)
37
37
  || github.event_name == 'issues'
38
38
  && github.event.label.name == 'refine'
39
39
  && endsWith(github.actor, '[bot]')
40
- && format('Working (Refine): {0} (#{1})', github.event.issue.title, github.event.issue.number)
40
+ && format('Agent: Refine — #{0} {1}', github.event.issue.number, github.event.issue.title)
41
41
  || github.event_name == 'issues'
42
42
  && github.event.label.name == 'direct'
43
43
  && endsWith(github.actor, '[bot]')
44
- && format('Working (Direct): {0} (#{1})', github.event.issue.title, github.event.issue.number)
44
+ && format('Working: Direct — #{0} {1}', github.event.issue.number, github.event.issue.title)
45
45
  || github.event_name == 'issues'
46
- && format('{0} label on #{1} by {2}', github.event.label.name, github.event.issue.number, github.actor)
46
+ && format('Event: {0} on #{1} by {2}', github.event.label.name, github.event.issue.number, github.actor)
47
47
  || github.event_name == 'issue_comment'
48
- && format('comment on #{0} by {1}', github.event.issue.number, github.actor)
48
+ && format('Event: Comment on #{0} by {1}', github.event.issue.number, github.actor)
49
49
  || github.event_name == 'pull_request_review'
50
- && format('review on PR #{0} by {1}', github.event.pull_request.number, github.actor)
50
+ && format('Event: Review on PR #{0} by {1}', github.event.pull_request.number, github.actor)
51
51
  || github.event_name == 'pull_request_review_comment'
52
- && format('review comment on PR #{0} by {1}', github.event.pull_request.number, github.actor)
52
+ && format('Event: Review comment on PR #{0} by {1}', github.event.pull_request.number, github.actor)
53
53
  || github.event_name == 'pull_request_target'
54
- && format('PR #{0} {1} by {2}', github.event.pull_request.number, github.event.action, github.actor)
54
+ && format('Event: PR #{0} {1} by {2}', github.event.pull_request.number, github.event.action, github.actor)
55
55
  || github.event_name == 'workflow_run'
56
- && format('CI {0} on {1}', github.event.workflow_run.conclusion, github.event.workflow_run.head_branch)
56
+ && format('Event: CI {0} on {1}', github.event.workflow_run.conclusion, github.event.workflow_run.head_branch)
57
57
  || github.event_name == 'workflow_dispatch'
58
58
  && inputs.operation == 'triage'
59
- && format('Working (Triage): #{0}', inputs.issue-number)
59
+ && format('Agent: Triage — #{0}', inputs.issue-number)
60
60
  || github.event_name == 'workflow_dispatch'
61
61
  && inputs.operation == 'refine'
62
- && format('Working (Refine): #{0}', inputs.issue-number)
62
+ && format('Agent: Refine — #{0}', inputs.issue-number)
63
63
  || github.event_name == 'workflow_dispatch'
64
64
  && inputs.operation == 'implement'
65
- && format('Working (Implement): #{0}', inputs.issue-number)
65
+ && format('Agent: Implement — #{0}', inputs.issue-number)
66
66
  || github.event_name == 'workflow_dispatch'
67
67
  && inputs.operation == 'merge-gate'
68
- && format('Working (Merge Gate): PR #{0}', inputs.pr-number)
68
+ && format('Agent: Merge Gate — PR #{0}', inputs.pr-number)
69
69
  || github.event_name == 'workflow_dispatch'
70
70
  && inputs.operation == 'visual-verify'
71
- && format('Working (Visual Verify): PR #{0}', inputs.pr-number)
71
+ && format('Agent: Visual Verify — PR #{0}', inputs.pr-number)
72
72
  || github.event_name == 'workflow_dispatch'
73
73
  && inputs.operation == 'batch'
74
- && format('Working (Batch): #{0}', inputs.issue-number)
74
+ && format('Working: Batch — #{0}', inputs.issue-number)
75
+ || github.event_name == 'workflow_dispatch'
76
+ && inputs.operation == 'audit'
77
+ && format('Agent: Audit — manual')
78
+ || github.event_name == 'workflow_dispatch'
79
+ && inputs.operation == 'release'
80
+ && format('Agent: Release')
75
81
  || github.event_name == 'workflow_dispatch'
76
82
  && format('dispatch: {0}', inputs.operation)
77
83
  || github.event_name == 'schedule'
84
+ && github.event.schedule == '17 1 * * 1'
85
+ && format('Agent: Audit — weekly')
86
+ || github.event_name == 'schedule'
87
+ && github.event.schedule == '43 3 * * *'
88
+ && format('Agentics: Audit Close — daily')
89
+ || github.event_name == 'schedule'
90
+ && github.event.schedule == '0 6 * * *'
91
+ && format('Agentics: Cleanup — daily')
92
+ || github.event_name == 'schedule'
93
+ && github.event.schedule == '17 * * * *'
94
+ && format('Agentics: Reconcile — hourly')
95
+ || github.event_name == 'schedule'
96
+ && github.event.schedule == '23 */6 * * *'
97
+ && format('Agentics: Maintenance — 6h')
98
+ || github.event_name == 'schedule'
78
99
  && format('schedule {0}', github.event.schedule)
79
100
  || github.event_name }}
80
101
 
@@ -684,10 +705,10 @@ jobs:
684
705
  # pull_request_target. Two entry points:
685
706
  # opened / reopened / synchronize → check the pull request that changed. Gated to this
686
707
  # repository's own branches so a fork PR never starts this App-token job.
687
- # closed & merged → the target branch moved, so re-check every open bot
708
+ # closed & merged → the target branch moved, so re-check every open
688
709
  # pull request that may have just become conflicted (the "main changed after another PR
689
710
  # merged" case). A merge into the default branch is an inherently trusted internal event.
690
- # It dispatches only for bot-authored, open, non-draft pull requests whose head is this
711
+ # It dispatches only for open, non-draft pull requests whose head is this
691
712
  # repository AND whose CI has already concluded (dispatching while CI is still pending would
692
713
  # make the gate read a 'pending' verdict and prematurely ask for human review; that PR is
693
714
  # covered by the CI-completion route instead). The gate's subject job re-validates ownership
@@ -732,8 +753,8 @@ jobs:
732
753
  run: |
733
754
  set -euo pipefail
734
755
 
735
- # Dispatch the Merge Gate for one pull request when it is a red-CI open, non-draft,
736
- # bot-authored pull request on this repository whose CI has concluded — the
756
+ # Dispatch the Merge Gate for one pull request when it is a red-CI open, non-draft
757
+ # pull request on this repository whose CI has concluded — the
737
758
  # conflict case is one arm of that, because a conflicting PR never gets a fresh
738
759
  # CI run of its own; a merge conflict with red or concluded CI is the same
739
760
  # "needs the gate" signal. A green non-conflicting PR is left for the merge belt
@@ -777,7 +798,6 @@ jobs:
777
798
  [ -n "$meta" ] || return 0
778
799
  if [ "$(jq -r '.state' <<<"$meta")" != "open" ] \
779
800
  || [ "$(jq -r '.draft' <<<"$meta")" != "false" ] \
780
- || [ "$(jq -r '.bot' <<<"$meta")" != "Bot" ] \
781
801
  || [ "$(jq -r '.head' <<<"$meta")" != "$REPO" ]; then
782
802
  return 0
783
803
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plainconceptsplatform/workflows",
3
- "version": "0.25.0",
3
+ "version": "0.27.0",
4
4
  "description": "Install and update Platform GitHub agentic workflows.",
5
5
  "keywords": [
6
6
  "github-actions",