Conversation
Dry-run check results |
417df2c to
c1ab92d
Compare
|
I have resolved all the comments, synced with the latest main branch and squashed commits. PR is ready for review 🙌🏻 |
|
I'm kinda confused why does this needs any permissions at all? We can just read the publicly available list of repositories without any GitHub token, right? I don't think that we need to even read private repositories; in fact this action could leak the existence of said repositories when it runs on CI (sometimes private repos can be created manually, I think, e.g. for security responses, I don't even think that That would also allow this CI workflow run completely unprivileged, which would be better in general. By the way, this will probably fail (at least) for the |
Interesting, thank you for saving us from a leak. I never realised until now that we only manage public repos using team repos. I'm glad we found it soon. I have refactored the code to use the public api. Can you please take a second look? |
Kobzol
left a comment
There was a problem hiding this comment.
It looks great, thank you!
We should eventually just switch to octocrab for the simple stuff, or at least unify the team and sync-team GitHub APIs, it's annoying to reimplement the same GitHub endpoints again and again :D
src/ci.rs
Outdated
| .iter() | ||
| .filter(|(org, repo)| { | ||
| // Skip archived repos | ||
| if repo.archived { |
There was a problem hiding this comment.
I don't think we need to skip archived repositories, we should also have those in team.
|
Opened #2180 to unblock this. |
Let's create our own common crate and not depend on octocrab, so that:
At least this is my preference. Because for example we might want to use graphql for certain calls. We could create a common crate later as a separate issue |
|
So, I agree that we should definitely have our own interface (and use that in both |
|
Can you customize it with middlewares? E.g. retry automatically on every 500? |
|
I think that you can configure it using any EDIT: I forgot that |
bc2fd68 to
e5344d3
Compare
e5344d3 to
56d9bd5
Compare
.github/workflows/dry-run.yml
Outdated
| gh pr comment ${PR} --repo rust-lang/team --body-file comment.txt \ | ||
| --edit-last \ | ||
| --create-if-none | ||
| --create-if-none No newline at end of file |
8d7c7c5 to
7e35120
Compare
Update .github/workflows/check-untracked-repos.yml Co-authored-by: Marco Ieni <11428655+marcoieni@users.noreply.github.com>
7e35120 to
558a6c2
Compare
Closes: #1863