GithubHelp home page GithubHelp logo

ttomsu / last-assigned Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lee-dohm/last-assigned

0.0 2.0 0.0 636 KB

A GitHub Action that gets the person assigned to the most recently created issue that matches a query

License: MIT License

TypeScript 34.80% JavaScript 65.20%

last-assigned's Introduction

Last Assigned

A GitHub Action that gets the person assigned to the most recently created issue or pull request that matches a query.

Use

For example:

# .github/workflows/weekly-issue
on:
  schedule:
  - cron: 0 20 * * 2
name: Create weekly issue
jobs:
  stuff:
    steps:
      - uses: lee-dohm/last-assigned@v1
        with:
          query: 'label:weekly-issue'
          token: ${{ secrets.GITHUB_TOKEN }}
        id: assigned
      - uses: lee-dohm/team-rotation@v1
        with:
          last: ${{ steps.assigned.outputs.last }}
          include: octocat lee-dohm
        id: rotation
      - uses: JasonEtco/create-an-issue@v2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          filename: .github/weekly-issue-template.md
          assignees: ${{ steps.rotation.outputs.next }}

This workflow:

  1. Gets the person that was assigned to the last issue opened that matches the query label:weekly-issue
  2. Determines the next person in the team rotation after the person found in step 1
  3. Creates a new issue based on the .github/weekly-issue-template.md template and assigns the person found in step 2

Inputs

  • query -- Search query used to match issues or pull requests
  • token -- Token to use to execute the query

Outputs

  • last -- GitHub handle of the person assigned to the most recently created issue or pull request matching query

License

MIT

last-assigned's People

Contributors

lee-dohm avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.