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

Support for Github Environments #607

Closed
niraj8 opened this issue Jul 5, 2022 · 4 comments · Fixed by #671
Closed

Support for Github Environments #607

niraj8 opened this issue Jul 5, 2022 · 4 comments · Fixed by #671

Comments

@niraj8
Copy link

niraj8 commented Jul 5, 2022

Prerequisites:

  • If the functionality is not yet available in the API, it would be helpful if you
    contacted support (https://support.github.com/) or posted in the Community Forum (https://github.community/). Please
    include a link to the forum post if you create one or a copy of the response from support.

New Feature

Please describe the desired new functionality:
Add support to manage Github environments with settings.yml

@niraj8
Copy link
Author

niraj8 commented Jul 5, 2022

Example settings.yml

  name: example-repo
  has_wiki: false
  ...

  branches:
    - name: main
      protection:
        ...

  environments:
    - name: dev
      reviewers: [] # or null
      protected_branches: null # set to null to allow deployments from all branches
    - name: prod
      reviewers: [ "@org/team", "user" ]
      protected_branches: true # deployments only from main branch allowed, in this example

Also whenever protected_branches is set to true, custom_branch_policies needs to be set to false. ref

Let me know if this looks good and I can try and put together a PR for this.

@niraj8
Copy link
Author

niraj8 commented Jul 8, 2022

@gr2m wdyt?

@celliott
Copy link

@gr2m do you have any thoughts on this issue? thx

rlmartin added a commit to rlmartin/repository-settings-app that referenced this issue Nov 22, 2022
rlmartin added a commit to rlmartin/repository-settings-app that referenced this issue Nov 22, 2022
rlmartin added a commit to rlmartin/repository-settings-app that referenced this issue Nov 22, 2022
rlmartin added a commit to rlmartin/repository-settings-app that referenced this issue Dec 15, 2022
rlmartin added a commit to rlmartin/repository-settings-app that referenced this issue Jan 30, 2023
@travi travi closed this as completed in #671 Feb 2, 2023
travi pushed a commit that referenced this issue Feb 2, 2023
Co-authored-by: Matt Travi <github@travi.org>
Fixes #607
@github-actions
Copy link

github-actions bot commented Feb 2, 2023

🎉 This issue has been resolved in version 2.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

2 participants