Skip to content

[FEATURE] Sync org-level Skillset field via generic org-fields map - #76

Open
John McCall (lowlydba) wants to merge 1 commit into
mainfrom
lowlydba-support-skillset-field
Open

[FEATURE] Sync org-level Skillset field via generic org-fields map#76
John McCall (lowlydba) wants to merge 1 commit into
mainfrom
lowlydba-support-skillset-field

Conversation

@lowlydba

Copy link
Copy Markdown
Contributor

Resolves the open question in #75 in favor of the generic option: scope-org-field-id is replaced with org-fields, a newline-separated list of form-field=org-field-id pairs. Adding skillset (org field ID 45229885) is now a default entry in that map instead of a second dedicated skillset-form-field/skillset-org-field-id pair, so future org fields are a config change, not a code change.

key=value per line matches how other composite actions already take small maps as string inputs (docker/build-push-action's build-args, for one) and stays diffable in a workflow file without JSON/YAML quoting.

Behavior is otherwise unchanged: still one PATCH, still skips fields already set by manual triage, still warns instead of failing on a 422.

This replaces scope-form-field/scope-org-field-id, so it's a breaking change for any caller passing those inputs directly. Nothing in this repo does today (sync-issue-fields has no workflow callers yet), so there's no in-repo migration needed.

Fixes #75

Replace the single-purpose scope-form-field/scope-org-field-id inputs
with a generic org-fields input: newline-separated form-field=org-field-id
pairs, matching the key=value multi-line convention other composite
actions use for map-shaped string inputs (e.g. docker/build-push-action's
build-args). Defaults to OvertureMaps' Scope and Skillset fields, so
Skillset now syncs out of the box without any caller changes.

Fixes #75

Signed-off-by: John McCall <john@overturemaps.org>
@lowlydba
John McCall (lowlydba) marked this pull request as ready for review August 6, 2026 17:48
@lowlydba
John McCall (lowlydba) requested a review from a team as a code owner August 6, 2026 17:48
Copilot AI lite review requested due to automatic review settings August 6, 2026 17:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the sync-issue-fields composite action to support syncing multiple issue form dropdown answers into org-level issue fields using a single org-fields mapping.

Changes:

  • Replaced single Scope mapping inputs with a newline-delimited org-fields mapping (form-field → org field ID).
  • Updated the action script to compute and apply multiple org field updates in one PATCH.
  • Updated README documentation and examples for the new configuration.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/actions/sync-issue-fields/action.yml Reworks inputs and script to support syncing multiple org-level fields via org-fields.
.github/actions/sync-issue-fields/README.md Documents the new org-fields input and updates usage guidance/examples.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/actions/sync-issue-fields/action.yml
Comment thread .github/actions/sync-issue-fields/action.yml
Comment thread .github/actions/sync-issue-fields/action.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support the org-level Skillset field in sync-issue-fields

3 participants