GithubHelp home page GithubHelp logo

Comments (8)

estrada9166 avatar estrada9166 commented on August 16, 2024 2

@ibakshay You can use

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      if: github.event.action == 'closed' || github.event.action == 'opened'

from toolkit.

xt0rted avatar xt0rted commented on August 16, 2024

I was told that this is the syntax you'd use to do this, but I haven't tried it myself yet.

on:
  pull_request:
    types: [labeled, assigned]

from toolkit.

ibakshay avatar ibakshay commented on August 16, 2024

Hi @xt0rted, Thank you for your quick response. I just checked, and unfortunately, this extra flag types is not triggering the workflow.
I managed to add checks when consuming GitHub APIs, But it would be really nice If this flag types works :).

from toolkit.

ibakshay avatar ibakshay commented on August 16, 2024

@estrada9166, Thank you very much 💯 .
And just one more thing, I believe the issue_comment event will be triggered for both issues and pull_request comments.

If I want to trigger a workflow based on issue_comment event only for the pull_request comments but not for the issues comments, then how should I configure the workflow file ?.

from toolkit.

jclem avatar jclem commented on August 16, 2024

I just checked, and unfortunately, this extra flag types is not triggering the workflow.

@ibakshay The types filter should still be working (I've just tested it). Can you point me to workflow where they don't seem to be working?

from toolkit.

jclem avatar jclem commented on August 16, 2024

I'm going to close this issue since it's not directly related to the Toolkit itself (but rather the workflow configuration syntax), but feel free to reply to me here anyway, @ibakshay.

from toolkit.

ibakshay avatar ibakshay commented on August 16, 2024

Hi @jclem, here is the workflow file https://github.com/ibakshay/Wireless-Weather-Station-/blob/master/.github/workflows/issue_created.yml which I was testing and types filter doesn't seem to work for me.

from toolkit.

jclem avatar jclem commented on August 16, 2024

@ibakshay What event types were workflow runs happening on that weren't opened and closed? Just trying to get a clear understanding of exactly what's happening that's not supposed to.

from toolkit.

Related Issues (20)

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.