Git Product home page Git Product logo

dependent-issues's People

Contributors

dependabot[bot] avatar felixbrucker avatar johncardiologs avatar mathias-schwaller avatar mmdriley avatar skitt avatar z0al avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dependent-issues's Issues

Compact comment footer

Can the comment footer be either configurable or at least more compact? I.e. can the separating line:

πŸ’‘ To add or remove a dependency please update this issue/PR description.

Brought to you by Dependent Issues (robot ). Happy coding!

be removed so the footer takes 2 instead of 3 lines? Or even better, can it be compacted into just one line, like:

πŸ’‘ Dependent Issues: To add or remove a dependency please update this issue/PR description.

PS: the trailing space in "robot" is not needed (and I think "bot" fits here better than "robot").

Workflow minimum permissions

I'd like to limit the permissions of the dependent issue job in the workflow?

Could you help me understand what are the minimum permissions required for checking for dependent pull-request? This includes pull-requests from branches internal to the repository as well as forks.

Error: env.GITHUB_TOKEN must not be empty

Copied definition from readme, replaced secret with my own, which I already use for different hook (this other hook runs just fine).

But I'm still getting this error no matter what I try. Even if I replace the secret with hardcoded random value I still get this error

Block by PR

Hello,

I wonder if your bot could work by Pull Requests instead of issues as not everyone uses Github issues

Thanks

Request: Allow for separate comment when all dependencies met

I'm currently using a template like this:


Warning
Pull request will not be mergeable until its dependencies are resolved.

Dependencies:

  • yada yada
  • this that

and it would be nice to be able to show something different once all the dependencies were to make sure its clear the comment & check are in sync:


βœ… All dependencies have been satisfied πŸŽ‰

Dependencies:

  • yada yada
  • this that

So being able to specify a 'success' comment would be great!

Unconditional blocker

Can you add unconditional blocker to your action? If description contains specified string, then PR is blocked as long as this keyword exist. I'd then have and use i.e. DO_NOT_MERGE

Status remains pending even after closing the dependent issue

The issue is in the same repository.
Here are the used config:

name: Dependent Issues

on:
  issues:
    types:
      - opened
      - edited
      - closed
      - reopened
  pull_request_target:
    types:
      - opened
      - edited
      - closed
      - reopened
      # Makes sure we always add status check for PRs. Useful only if
      # this action is required to pass before merging. Otherwise, it
      # can be removed.
      - synchronize

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: z0al/dependent-issues@v1
        env:
          # (Required) The token to use to make API calls to GitHub.
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          # (Optional) The token to use to make API calls to GitHub for remote repos.
          GITHUB_READ_TOKEN: ${{ secrets.ASSEM_REPO_ACCESS_FOR_ACTIONS }}

        with:
          # (Optional) The label to use to mark dependent issues
          label: dependent

          # (Optional) Enable checking for dependencies in issues.
          # Enable by setting the value to "on". Default "off"
          check_issues: off

          # (Optional) A comma-separated list of keywords. Default
          # "depends on, blocked by"
          keywords: depends on, blocked by

image

Question: Does it remove the changes from dependant PRs when reviewing in the Files section ?

Scenario:

feature A depends on feature B

I make PR to master from B and then make another PR to master from A.

Usually what happens at this point is that if I go and review the file changes in A I will see the changes from B plus the changes of A.

The desired/expected behavior with this bot would be that If I go to the file changes of A I should not see the changes from B.
Is this the behavior of this bot?

dependabot issues are ignored, but don’t need to be

dependabot issues are ignored, with https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/ as justification β€” however that blog post says that jobs run with pull_request_target from a dependabot PR do get a read-write token.

I checked this on submariner-io/lighthouse#608 and as you can see, dependent-issues was able to add its comment.

Would it be possible to remove the check? Or am I misunderstanding the issue?

Allow for keywords on comments as well

I want to track the dependencies of e.g. feature requests by the community. Thus, I can/want to add a comment with Depends on #123 to make dependencies.

As far as I understand the code of this action, only the major body of the issue (aka the feature request itself) is checked for the keywords. I just get the message No dependencies found. Running clean-up for all issues.

If this is out of scope of this action it would be useful to state that in the action description as I thought it should work but only after having a glance at the source, I am pretty (?) sure, it is not implemented.

Does not work with merge queues

I have setup a workflow that runs this action. The check created by this action is required for the branch protection. I tried using the new merge queues but the queue fails to recognise the check created by this action, even if the correct workflow trigger is set (there is a new merge_group: trigger).

HttpError: Not Found

Repeatedly saw this error in a workflow run:

HttpError: Not Found
    at /home/runner/work/_actions/z0al/dependent-issues/v1/webpack:/dependent-issues/node_modules/@octokit/request/dist-node/index.js:86:1
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Using latest version.

Backreferences?

I wonder if it would be useful to have this bot manage backreferences: If in PR #12 I say it depends on PR #10, then the bots’ comment at #10 could maybe say something like

The following PRs are depending on this one…

and/or a label blocking-other-PRs could be added to #10.

Update workflow documentation

The main documentation of the workflow is outdated. The ignore_dependabot seems no longer be a valid input option. Also the example is referencing an old version (@v1) of the workflow.

HttpError: API rate limit exceeded for installation ID 9256508

I get this error HttpError: API rate limit exceeded for installation ID 9256508 on all our workflows after i added this workflow to our repo. It tries to check every open issue and PR for dependencies and i assume that is the reason why we are exceeding the api limit.

i had these usecases in mind when i merged over the workflow in our repo.

  1. PR1 is dependent on PR2 (PR2 has to be merged/closed first in order to get PR1 merged). This one is pretty straight forward.

  2. PR1 is dependent on issue1 (issue1 has to be closed first in order to get PR1 merged). This can be helpful when someone already created PR1 but u want issue1 to get addressed first but nobody has created a PR for it yet.

  3. issue1 is dependent on PR1 (PR1 has to be merged/closed first in order to close issue1). This can be helpful when somebody forgets to link PR1 as dependency when they create PR2 for issue1

  4. issue1 is dependent on issue2 (issue2 has to be closed first in order to close issue1). This can be helpful when there are no PR's yet that addresses one of the issues.

Are the usecases above valid for this workflow? if so is there a way to not hit the api limit so fast?

edit: i've just closed an issue because it was a duplicate and the workflow ran and gave the error again https://github.com/FreeTubeApp/FreeTube/runs/5979395780?check_suite_focus=true

why did it ran the workflow and can i prevent this?

Deprecated node warning

I see the following error on my runs:

Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: z0al/dependent-issues@v1. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

It looks like we would need to bump to node v. 16.

How to get this to work with PRs from private repos?

Is there a way to allow this action to be able to see the issues and PRs of private repos that I have access to?
I've tried using a Personal Access Token that has these permissions:
Screen Shot 2021-01-12 at 12 45 43 PM
But this still doesn't work; the action still fails with Error: Not Found.
Any tips on what I'm doing wrong?

Dependency Checker Triggers.

A question about this cool GitHub Action. I'm trying it out in a throwaway repo I have, and I tested it here:

mathomp4/labeltest#6

In this repo, I made main a protected branch, and set Dependent Issues as a required status check under the branch protections. So I had two PRs (5 and 6) and closed and merged 5. And eventually the bot seemed to report to 6 that 5 closed. I then created a new PR, 7:

mathomp4/labeltest#7

and after opening it, I added a comment saying "Blocked by 6". This didn't seem to trigger the bot.

So I guess my question is: is this one of those actions that only the daily crontab sweep will pick up? Maybe there's something I can add to the pull_request_target to act on... pull request comments?

Trigger workflow from remote repo

Hello, a month ago, I played a bit with your action. I found out, that its possible to use a repository disptach to trigger the workflow from another workflow by using a PAT. What about adding this to the Readme.md? Here is an example. And the handler for that can be found in the main project

I hope you like that idea.
luwol03

Error: Not found

Hi @z0al!

Thank you for this nice action! I'm trying to use it but I'm getting the following error:

image

I've verified and confirmed that the secret is available to use in the action. Can you please share any tips or point me in the right direction to solve this issue? Thank you!!

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.