Skip to content

Github bot used primarily by rubyforgood/casa for github project issue management

Notifications You must be signed in to change notification settings

rubyforgood/add-label-to-cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add Label to Cards

Adds a label to all card issues in a column of a project.

Parameters

columns_labels:

A JSON Array of objects containing keys

  • "labels" An array of all the labels as strings
    Either
  • "column_id" The id of a column as an integer
    or
  • "column_name" The name of the column
  • "project_name" The name of the project containing the column

Example Usage

on:
  schedule:
    - cron:  '0 * * * *' # Run every hour

jobs:
  add_help_wanted_labels:
    runs-on: ubuntu-latest
    name: Add help wanted labels
    steps:
      - name: Add help wanted labels
        uses: rubyforgood/[email protected]
        id: add-help-wanted-labels
        with:
          token: ${{secrets.GITHUB_TOKEN}}
          columns_labels: >
            [
              {
                "column_name": "To do",
                "labels": ["Help Wanted"],
                "project_name": "Test"
              },
              {
                "column_name": "Second Column",
                "labels": ["Help Wanted"],
                "project_name": "Test"
              },
              {
                "column_id": 16739169,
                "labels": ["Help Wanted"]
              },
            ]