Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5677fb0
feat: add support for `/stdlib todo` slash command
anandkaranubc May 9, 2026
7bf24b8
Merge branch 'develop' into stdlib-todo-bot
anandkaranubc May 9, 2026
d62e280
Merge branch 'develop' into stdlib-todo-bot
anandkaranubc May 14, 2026
2cce346
chore: require org membership
anandkaranubc May 14, 2026
572ac55
chore: use a reusable workflow
anandkaranubc May 15, 2026
92f0294
chore: move logic to a script
anandkaranubc May 15, 2026
b3b6379
Merge branch 'develop' into stdlib-todo-bot
anandkaranubc May 15, 2026
cdbb42c
chore: restore accidentally deleted tsconfig.json
anandkaranubc May 15, 2026
bc4dd12
feat: add support for `/stdlib todo` slash command on commits
anandkaranubc May 15, 2026
fd8cfc0
refactor: use source_type and source_ref inputs instead of two option…
anandkaranubc May 15, 2026
d0aaee8
fix: error body
anandkaranubc May 15, 2026
ab4b3ed
chore: restore comment update
anandkaranubc May 15, 2026
6cb9d18
chore: update copyright years
anandkaranubc May 16, 2026
d1a70e2
chore: order variable names by length
anandkaranubc May 16, 2026
ad9dcf2
fix: support arbitrary issue tag prefixes
anandkaranubc May 16, 2026
30e1e16
fix: verify commenter membership before processing comment body
anandkaranubc May 16, 2026
c5eb660
fix: remove inaccessible secret fallback
anandkaranubc May 16, 2026
5ac79f4
chore: update copyright years
anandkaranubc May 16, 2026
a5c351d
Merge branch 'develop' into stdlib-todo-bot
anandkaranubc May 16, 2026
a3bcdb4
chore: follow project conventions
anandkaranubc May 16, 2026
7b570a1
chore: follow project conventions
anandkaranubc May 16, 2026
298ff5b
chore: follow project conventions
anandkaranubc May 16, 2026
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
106 changes: 106 additions & 0 deletions .github/workflows/create_todo_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
#/
# @license Apache-2.0
#
# Copyright (c) 2026 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#/

# Workflow name:
name: create_todo_issue

# Workflow triggers:
on:
# Allow the workflow to be triggered by other workflows:
workflow_call:
# Define the input parameters for the workflow:
inputs:
source_type:
description: 'Source context type: ''pr'' (pull request comment) or ''commit'' (commit comment)'
required: true
type: string
source_ref:
description: 'Pull request number when source_type is ''pr''; commit SHA when source_type is ''commit'''
required: true
type: string
comment_body:
description: 'Body of the slash command comment'
required: true
type: string
user:
description: 'GitHub login of the commenter'
required: true
type: string

# Define the secrets accessible by the workflow:
secrets:
STDLIB_BOT_GITHUB_TOKEN:
description: 'stdlib-bot GitHub token with permission to create issues and comments'
required: true

# Allow the workflow to be manually triggered:
workflow_dispatch:
inputs:
source_type:
description: 'Source context type: ''pr'' (pull request comment) or ''commit'' (commit comment)'
required: true
type: string
source_ref:
description: 'Pull request number when source_type is ''pr''; commit SHA when source_type is ''commit'''
required: true
type: string
comment_body:
description: 'Body of the slash command comment'
required: true
type: string
user:
description: 'GitHub login of the commenter'
required: true
type: string

# Workflow jobs:
jobs:

# Define a job for creating a new todo issue:
create_todo_issue:

# Define a display name:
name: 'Create a new todo issue'

# Define the type of virtual host machine:
runs-on: ubuntu-latest

# Define the job's steps:
steps:
# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# Ensure we have access to the scripts directory:
sparse-checkout: |
.github/workflows/scripts
sparse-checkout-cone-mode: false
timeout-minutes: 10

# Create a new todo issue:
- name: 'Create a new todo issue'
env:
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
COMMENT_BODY: ${{ inputs.comment_body }}
COMMENTER: ${{ inputs.user }}
SOURCE_TYPE: ${{ inputs.source_type }}
SOURCE_REF: ${{ inputs.source_ref }}
run: |
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_todo_issue/run"
timeout-minutes: 10
Loading