Mostly `s/@master/@main` in numerous `.yml` files.
Keep `master` in `weekly.yml` as it refers to `xla` repo and in `test_trymerge.py` as it refers to a branch PR originates from.
This has been bugging me for a while as I'm working on these Python scripts and they are not tracked by ufmt linter. So I add these script into that linter.
```
[[linter]]
code = 'UFMT'
include_patterns = [
'.github/**/*.py',
'test/run_test.py',
```
This change should just work and not break anything as ufmt (black + usort) linter is very safe to use for standalone util scripts.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97588
Approved by: https://github.com/kit1980
For https://github.com/pytorch/pytorch/issues/82033
Only update the pinned hash if the new hash is strictly newer than the old hash. This should allow us to use commits on PRs as the pinned hash, which helps with fixes in XLA. General hash update behavior (looking at hash on branch, trying to update + pushing, creating pr) should be unchanged.
If the currently pinned hash is newer than the hash we are trying to update to, the existing pr will be closed if it exists.
Also changes the hash update time to 12:37am PST (7:37am UTC).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82173
Approved by: https://github.com/ZainRizvi, https://github.com/huydhn