stale icon indicating copy to clipboard operation
stale copied to clipboard

add ability to pass a different repo-owner and repo-name

Open amenocal opened this issue 1 year ago • 9 comments

Description: This PR adds the ability to pass a different repo-owner and repo-name than using the context variable.

This may allow users to specify to run stale on other repositories* (i.e. an Organization Admin marking stale issues / PRs from a centralized repository)

*granted they have the appropriate PAT

Related issue: #849 It's closed but this has been requested by customers.

Check list:

  • [x] Mark if documentation changes are required.
  • [ ] Mark if tests were added or updated to cover the changes.

amenocal avatar Aug 22 '23 22:08 amenocal

Hello @amenocal , thank you for the suggestion, we start to estimate the value of this feature

dsame avatar Aug 28 '23 08:08 dsame

@dsame sounds good! I am aware I did this in the most simple approach, but happy to help if there are better methods on approaching this 😄

amenocal avatar Aug 28 '23 14:08 amenocal

This is exactly what I needed, thanks for this!

andrewwise avatar Sep 11 '23 08:09 andrewwise

I would like to know if this PR could be reviewed. There is kind of proposal behind that are interesting, and that use this patch.

benoittgt avatar Dec 21 '23 15:12 benoittgt

👍 We also have a use case where we have multiple Github organizations with hundreds of repos that we'd like to run this action for. The current approach of adding a workflow to every repo is pretty tedious and hard to maintain if there were any configuration changes. Adding the ability to target a repo allows us to have a single workflow cron that can iterate through all of our organizations and repos (and uses a custom access token) and run the stale action with a set of standardized options.

Please consider merging this change!

j3tan avatar Jan 10 '24 18:01 j3tan

For you information. I made a feature request for Github also. https://github.com/orgs/community/discussions/85004

benoittgt avatar Jan 11 '24 10:01 benoittgt

Hi @dsame I am sorry for bothering you, but it is already 9 months after last message from you and you stated that you started estimation process. Do you have any news about that? We really need that stuff too =(

keramblock avatar Jun 19 '24 11:06 keramblock

@actions/setup-actions-team Please review and merge if no issues found. This feature would be very helpful to orgs with many repos. Currently, it's a huge pain to copy workflows to every repo.

It could help resolve:

#849 #1089 #1128

ReenigneArcher avatar Jul 20 '24 20:07 ReenigneArcher

This is something my organization needs, too. We want to run this in a matrix job in a single workflow for our repos.

xaviergmail avatar Jul 25 '24 20:07 xaviergmail