Skip to content
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

Periodic orcid citation update failing due to approver requirements #71

Open
vincerubinetti opened this issue Jan 6, 2023 · 6 comments

Comments

@vincerubinetti
Copy link
Contributor

https://github.com/greenelab/greenelab.com/actions/runs/3819357107

remote: error: At least 1 approving review is required by reviewers with write access.

It makes sense that you'd want an approver for pull requests, but unfortunately that means the GitHub Action that periodically runs the automatic citation process to update e.g. ORCID papers will fail because it doesn't have permissions.

Apparently there is no way to make an exception for GitHub Actions (yet, but it is a heavily requested feature):
community/community#13836

I could maybe make it such that the action opens a PR instead of committing directly to main, but then I'd imagine them really piling up over time. Maybe I could try to check if a PR for that is already open and update/add to it instead of creating a new one, but that gets a lot more complex.

@cgreene Thoughts? I'm not just thinking about greenelab.com, but the template in general.

I'm thinking we just bet on GitHub implementing the Actions exception within the next year (since it's so heavily requested), and until then, say that people can't have both branch protection rules and scheduled action runs.

@cgreene
Copy link
Member

cgreene commented Jan 6, 2023

I agree with the current bet:

I'm thinking we just bet on GitHub implementing the Actions exception within the next year (since it's so heavily requested), and until then, say that people can't have both branch protection rules and scheduled action runs.

If the deploy happened off github pages and only the main was protected, that'd avoid this issue (which, likely, is why manubot manuscripts don't get hit by it). However, that's a lot of additional work and setup would be more painful.

@cgreene
Copy link
Member

cgreene commented Jan 6, 2023

We can unprotect this repo - no concerns on that. I'm also ok with opening a PR

@cgreene
Copy link
Member

cgreene commented Jan 7, 2023

I unprotected the branch, but I'm also coming around to the idea of opening a pull request so it becomes obvious what is being added.

@vincerubinetti
Copy link
Contributor Author

vincerubinetti commented Jan 7, 2023

Maybe we can try it in greenelab.com as a pilot and see how it goes. I would probably want to reduce the frequency from weekly to monthly if we're opening up PRs. Given how I've seen other people use/maintain their website, I think most people wouldn't keep up with weekly.

Maybe you could do a twitter poll?

Question regarding Lab Website Template. Which of these more closely matches how would you want your latest papers automatically pulled in from ORCID (or other meta-sources):

A) Weekly, and committed directly to the main branch of your website
B) Monthly, in a new opened pull request

Hopefully this action will make it easy, so I could include both methods in the workflow and just comment one out by default (whichever is less popular).

@cgreene
Copy link
Member

cgreene commented Jan 11, 2023

@cgreene
Copy link
Member

cgreene commented Jan 11, 2023

I have used that action - happy to help out if you want it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants