-
Notifications
You must be signed in to change notification settings - Fork 776
Add cron schedule for 8 am CT & 1 pm CT, and exclude dependabot & tgonzalezorlandoarm #16375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,14 +2,20 @@ name: Add Open External Contributor PRs and Issues to PyTorch Org Project 136 | |||||
|
|
||||||
| on: | ||||||
| workflow_dispatch: | ||||||
| pull_request: | ||||||
| paths: | ||||||
| .github/workflows/add-unanswered-to-project.yml | ||||||
| schedule: | ||||||
| # GitHub Actions cron uses UTC. These run at: | ||||||
| # - 14:00 UTC -> 08:00 CST (UTC-6) | ||||||
| # - 19:00 UTC -> 13:00 CST (UTC-6) | ||||||
| - cron: "0 14 * * *" | ||||||
| - cron: "0 19 * * *" | ||||||
| pull_request: | ||||||
| paths: | ||||||
| - .github/workflows/add-unanswered-to-project.yml | ||||||
| jobs: | ||||||
| add_to_project: | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - name: Add open issues and open, non-draft PRs to org project (excluding certain authors) | ||||||
| - name: Add open issues and open, non-draft PRs to org project (excluding certain authors and bots) | ||||||
| uses: actions/github-script@v7 | ||||||
| with: | ||||||
| github-token: ${{ secrets.ET_EXT_CONTRIB }} | ||||||
|
|
@@ -41,13 +47,26 @@ jobs: | |||||
| "app/dependabot", "Erik-Lundell", "zingo", "AdrianLundell", "oscarandersson8218", "per", "Sebastian-Larsson", "SaoirseARM", | ||||||
| "robell", "mansnils", "martinlsm", "freddan80", "YufengShi-dudu", "tom-arm", "perheld", "Jerry-Ge", "gggekov", "fumchin", | ||||||
| "wwwind", "benkli01", "Tessil", "maddun01", "Michiel-Olieslagers", "armwaheed", "agrima1304", "emmakujala", "annietllnd", | ||||||
| "MatthiasHertel80", "AlexTawseArm", "jmahbs", "morgolock", "Christoffer-JL", "ArmRyan", "xingguo01", "haowhsu-quic", | ||||||
| "shewu-quic", "winskuo-quic", "chunit-quic", "DannyYuyang-quic", "chuntl", "thchenqti", "jethroqti", "chenweng-quic", | ||||||
| "cymbalrush", "DenisVieriu97", "billmguo", "StrycekSimon", "jirioc", "robert-kalmar", "skywall", "MartinPavella", | ||||||
| "roman-janik-nxp", "novak-vaclav ", "neuropilot-captain", "dijopaul", "cad-rlc", "cad-audio", "ynimmaga", "daniil-lyakhov", | ||||||
| "emmanuel-ferdman", "cavusmustafa", "anzr299", "Jiseong-oh", "alexdean08" | ||||||
| "MatthiasHertel80", "AlexTawseArm", "jmahbs", "morgolock", "Christoffer-JL", "ArmRyan", "xingguo01", "tgonzalezorlandoarm", | ||||||
| "haowhsu-quic", "shewu-quic", "winskuo-quic", "chunit-quic", "DannyYuyang-quic", "chuntl", "thchenqti", "jethroqti", | ||||||
| "chenweng-quic", "cymbalrush", "DenisVieriu97", "billmguo", "StrycekSimon", "jirioc", "robert-kalmar", "skywall", | ||||||
| "MartinPavella", "roman-janik-nxp", "novak-vaclav", "neuropilot-captain", "dijopaul", "cad-rlc", "cad-audio", "ynimmaga", | ||||||
| "daniil-lyakhov", "emmanuel-ferdman", "cavusmustafa", "anzr299", "Jiseong-oh", "alexdean08", | ||||||
| // explicitly include the dependabot bot login seen in PRs | ||||||
| "dependabot[bot]" | ||||||
nil-is-all marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| ]); | ||||||
|
|
||||||
| function isBotOrExcluded(user) { | ||||||
| if (!user) return false; | ||||||
| // GitHub sometimes marks bots with user.type === "Bot" | ||||||
| if (user.type && user.type.toLowerCase() === "bot") return true; | ||||||
| // Some bots use logins that end with [bot], e.g. dependabot[bot] | ||||||
| if (user.login && user.login.endsWith("[bot]")) return true; | ||||||
| // Explicit excluded list | ||||||
| if (excludedAuthors.has(user.login)) return true; | ||||||
|
||||||
| if (excludedAuthors.has(user.login)) return true; | |
| if (user.login && excludedAuthors.has(user.login)) return true; |
Uh oh!
There was an error while loading. Please reload this page.