Skip to content

Repository files navigation

github-actions

Reusable GitHub Actions workflows for the datasciencecampus GitHub organization.

This repository contains workflows that depend on datasciencecampus organization-scoped credentials and policies. For broadly reusable workflows that do not require this organization-specific boundary, use ONSdigital/ons-github-actions.

Overview

This repository currently provides two public reusable workflows:

  • add-issue-to-projects: add new issues to one or more datasciencecampus ProjectsV2 boards.
  • add-pr-to-projects: add new pull requests to one or more datasciencecampus ProjectsV2 boards and set configured field values.

Each public reusable workflow has a matching internal implementation workflow. The public workflow is the caller-facing contract; the internal workflow owns the privileged workflow_dispatch path and project mutation logic.

Workflow Catalog

add-issue-to-projects

Adds opened issues to one or more datasciencecampus Projects by project number, with optional field updates.

add-pr-to-projects

Adds opened pull requests to datasciencecampus Projects and sets configured field values, for example Status = Review.

Consumption Model

Consumers should call the public reusable workflows from other repositories using uses:.

  • By default, the reusable workflows dispatch the release tag recorded in metadata stored alongside the invoked workflow revision.
  • Set implementation_ref only when you need to override that release-managed dispatch target with a specific branch or tag.

Important

Public repositories that trigger these workflows automatically from issue or pull request creation events must restrict those events to trusted actors, for example by allowing only collaborators to open issues or pull requests. Configure this in the caller repository at https://github.com/<owner>/<repo>/settings under Settings > General > Features, then use Issues > Issue permissions or Pull requests > Pull request permissions as appropriate.

The full caller-facing contract, including required inputs and implementation_ref behavior, is documented in docs/reference/reusable-workflows.md.

Documentation

About

Reusable workflows for the Data Science Campus GitHub organisation.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors