feat: add set-project-month reusable workflow#61
Merged
kevwilliams merged 4 commits intomainfrom Apr 9, 2026
Merged
Conversation
Adds a reusable workflow that automatically adds a PR to the org-level GitHub Project (project 60) and sets the Month field based on the current calendar month (e.g. 'April 2026'). Key features: - Dynamically resolves the Month field option ID at runtime — no hardcoded IDs, works month-to-month as long as the option exists - Gracefully skips with a clear log message if no matching Month option is found in the project, so PRs are never blocked - Idempotent — safe to call on reopened or ready-for-review events - Uses ORG_PROJECT_TOKEN secret for project write access Consumers opt in with a single 6-line workflow calling: uses: datum-cloud/actions/.github/workflows/set-project-month.yaml@main secrets: inherit
scotwells
approved these changes
Apr 9, 2026
3 tasks
kevwilliams
added a commit
to datum-cloud/cloud-portal
that referenced
this pull request
Apr 10, 2026
## Summary - Adds the `set-project-month` reusable workflow from `datum-cloud/actions` - Automatically adds new PRs to the org project (#60) and sets the **Month** field to the current calendar month (e.g. `May 2026`) - Triggers on `opened`, `ready_for_review`, and `reopened` events - Requires the `ORG_PROJECT_TOKEN` org secret to be set (classic PAT with `project` scope) ## Test plan - [ ] Merge datum-cloud/actions#61 first - [ ] Confirm `ORG_PROJECT_TOKEN` org secret is in place - [ ] Open a test PR and verify it appears in project #60 with the correct Month set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
April 2026)ORG_PROJECT_TOKENorg secret for project write access (classic PAT withprojectscope)Usage
Consumers opt in with a small workflow file:
```yaml
name: Set Project Month
on:
pull_request:
types: [opened, ready_for_review, reopened]
jobs:
set-month:
uses: datum-cloud/actions/.github/workflows/set-project-month.yaml@main
secrets: inherit
```
First consumer PRs will follow for:
cloud-portal,staff-portal,infra,milo.Test plan
ORG_PROJECT_TOKENorg secret is set with a PAT that hasprojectscope