mirror of
https://github.com/developersIndia/deviras.git
synced 2024-12-22 08:09:49 +05:30
fix token name
This commit is contained in:
parent
a6f3ed1b92
commit
ef6dabe4e6
@ -17,6 +17,10 @@ Used for changing the text below total members & live members count in a subredd
|
||||
|
||||
Used for updating the Advent of Code leaderboard in the [post](https://www.reddit.com/r/developersIndia/comments/1889ar3/advent_of_code_rdevelopersindia_leaderboard_year/).
|
||||
|
||||
### [community-threads-grabber](https://github.com/developersIndia/deviras/tree/main/community-threads-grabber)
|
||||
|
||||
Used for grabbing the posts from [community threads collection](https://www.reddit.com/r/developersIndia/collection/958aef35-f9cb-414d-ab33-08bc639e47de/) and updating the [wiki](https://www.reddit.com/r/developersIndia/wiki/community-threads/).
|
||||
|
||||
### [job_thread](https://github.com/developersIndia/deviras/blob/job_thread)
|
||||
|
||||
Used for creating [hiring threads](https://www.reddit.com/r/developersIndia/?f=flair_name%3A%22Hiring%22) in the subreddit that gets the job from our [job board](https://developersindia.in/job-board/).
|
||||
|
@ -14,7 +14,6 @@ sub = "developersIndia"
|
||||
|
||||
|
||||
def get_gist_content(gist_id):
|
||||
token = os.environ["GITHUB_TOKEN"]
|
||||
headers = {
|
||||
"Authorization": f"token {token}",
|
||||
"Accept": "application/vnd.github.v3+json",
|
||||
@ -26,7 +25,6 @@ def get_gist_content(gist_id):
|
||||
|
||||
|
||||
def update_gist(gist_id, filename, content, description=""):
|
||||
token = os.environ["GITHUB_TOKEN"]
|
||||
headers = {
|
||||
"Authorization": f"token {token}",
|
||||
"Accept": "application/vnd.github.v3+json",
|
||||
|
Loading…
Reference in New Issue
Block a user