Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

[WIP] Add script to create release on github #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ch3LL
Copy link
Contributor

@Ch3LL Ch3LL commented Jul 3, 2018

I have only tested this on my personal repo's. So will need to refine this script going forward and test it on salts repo.

Added in the script what still needs to be done.

@@ -0,0 +1,36 @@
from github import Github
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this from PyGithub? Let's document that as a requirement/dependency somewhere.

That import should probably be moved to a separate # Import 3rd party libs line too, just to keep things organized. I know that is picky, but might as well start off that way :)

repo = Github(opts['GITHUB_TOKEN']).get_repo('saltstack/salt')

# create release
# todo: make sure the tag we are about to create a release for already exists
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is a first pass, but I'd like to see this kind of validation happen before this script is merged in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k i'll add the [WIP] for now until i can get to this again. might be a while.

@Ch3LL Ch3LL changed the title Add script to create release on github [WIP] Add script to create release on github Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants