Skip to content
file-plus

GitHub Action

Beta Project Issue Adder + Labeler

1.0 Latest version

Beta Project Issue Adder + Labeler

file-plus

Beta Project Issue Adder + Labeler

When an issue is created on your repo, this action automatically labels it and adds it to a specified beta project

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Beta Project Issue Adder + Labeler

uses: somnolentPumpkin/issue-card-creator-and-labeler@1.0

Learn more about this action in somnolentPumpkin/issue-card-creator-and-labeler

Choose a version

Label Issue and Add to Project

This GitHub Action is written in JavaScript, though its purpose is fairly specific. For organization-level GitHub projects that specifically use the projects beta, it will automatically take issues as they're created, label them, and then add them to the project.

Note: It requires you to set have an organization-level secret called ACCESS_TOKEN, and the value should be an access token that allows you to read at the organization level, and write at the individual repo level.

Example YML:

on:
  issues:
    types: [opened]

jobs:
  issue_creator_job:
    runs-on: ubuntu-latest
    name: Label issue and add to project
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Label issue and add to project
        uses: somnolentPumpkin/issue-card-creator-and-labeler@0.96
        id: hello
        with:
          github-token: ${{ secrets.ACCESS_TOKEN }}
          actions: '{"data": [
            {
              "label": "Bugs",
              "project": "1",
              "repo": "your-repo",
              "org": "your-org-name"
            }
          ]}'