GithubHelp home page GithubHelp logo

tip's People

Contributors

derlin avatar eine avatar lazka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tip's Issues

Update section 'Development' of the README

Since a bundler (webpack) is used now, creation of new release branches is easier. Only four files need to be published (README.md, action.yml, main.js, and main.js.map). Instructions in https://github.com/1138-4EB/tip#development should be updated accordingly. I.e., there is no need to remove items explicitly (git rm -rf *.json *config.js *.lock .github .gitignore __tests__ ts); it should be remove everything except 'dist'.

Tag release is not pushed back to the top of `Releases` page

I have two workflows running. One is the tip release, and another for tagged releases (tagged with a v... tag).

For some reason, the tip release isn't bumped back to the top of the Releases page, making it hard to find. Is there a way to push it back to the top?

I don't understand why. I expect that github is sorting on tag date. But while the tip is shown at the top in my terminal, it's not on the Releases page.

git log --tags --simplify-by-decoration --pretty="format:%ci %d" | head -n 5

2020-03-04 13:39:21 +0100  (HEAD -> master, tag: tip, origin/master)
2020-03-04 13:27:19 +0100  (tag: v1.6.0)
2020-03-04 10:21:24 +0100  (tag: v1.5.0)
2020-03-04 10:13:25 +0100  (tag: v1.4.0)
2020-03-04 09:45:48 +0100  (tag: v1.3.0)

Make `tag` configurable

It would be nice if we could provide the tag name to use. Currently, it's called tip. I would favor a tag latest or nightly instead.

If the tag is configurable, I can even imagine using various cronjobs with different tags.

Fails on empty files

If there are empty files to be uploaded I get:

2020-07-29T20:55:10.6028756Z · Get GitHub API handler (authenticate)
2020-07-29T20:55:10.6029018Z · Get Repository handler
2020-07-29T20:55:10.6029268Z · Get Release handler
2020-07-29T20:55:10.6029492Z · Upload artifacts
2020-07-29T20:55:10.6379916Z  > artifact/failed/mingw-w64-i686-bison-3.0.4-2.failed
2020-07-29T20:55:10.6380250Z    - uploading...
2020-07-29T20:55:10.6384266Z Traceback (most recent call last):
2020-07-29T20:55:10.6387648Z   File "/tip.py", line 130, in <module>
2020-07-29T20:55:10.6387774Z     gh_release.upload_asset(artifact)
2020-07-29T20:55:10.6388280Z   File "/usr/local/lib/python3.8/site-packages/github/GitRelease.py", line 256, in upload_asset
2020-07-29T20:55:10.6388437Z     resp_headers, data = self._requester.requestBlobAndCheck(
2020-07-29T20:55:10.6389094Z   File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 333, in requestBlobAndCheck
2020-07-29T20:55:10.6389221Z     return self.__check(
2020-07-29T20:55:10.6389513Z   File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 342, in __check
2020-07-29T20:55:10.6389632Z     raise self.__createException(status, responseHeaders, output)
2020-07-29T20:55:10.6389999Z github.GithubException.GithubException: 400 {"message": "Bad Content-Length: ", "request_id": "0442:0DFD:62693:78B10:5F21E22E"}

I'd guess this is really rare, so not sure if that needs to be handled..

enable specification of content_type for uploading assets

Related with discussion started here: pypi/warehouse#10234

Assets uploaded without content type specified seem to cause trouble, e.g.:

  • SVG graphics fail to display as inline images
  • image proxies fail to handle the assets correctly (HTTP 404 in the case described in the above issue)

IIUC, if we could pass somehow the content_type, which is accepted by git release python API (https://pygithub.readthedocs.io/en/latest/github_objects/GitRelease.html), the problem should not appear?

Of course, the question is how to specify it for multiple different files... perhaps automatically by default:

# For MIME types
import magic
mime = magic.Magic(mime=True)
mime.from_file("testdata/test.pdf") # 'application/pdf'

(https://stackoverflow.com/questions/43580/how-to-find-the-mime-type-of-a-file-in-python)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.